Skip to content

Instantly share code, notes, and snippets.

@moonblade
Last active February 25, 2016 06:09
Show Gist options
  • Save moonblade/f9beb6d9a4b08d5ac54f to your computer and use it in GitHub Desktop.
Save moonblade/f9beb6d9a4b08d5ac54f to your computer and use it in GitHub Desktop.
{
"code": 1,
"buildingList": [{
"buildingId": "1",
"buildingName": "Sensomate",
"buildingDescription": "An okay sort of company",
"floorList": [{
"floorId": "1",
"pictureURL": "http://192.168.0.122/sensomate/BLENavigation/pictures/1234/",
"size": {
"x": 4000,
"y": 4000
},
"floorName": "Ground Floor",
"floorDescription": "It just has one floor, why would you need a description",
"nodeList": [{
"nodeId": "1",
"parentBuilding": "1",
"parentFloor": "1",
"nodeName": "top left Corner",
"nodeDescription": "Top Left Corner of office, you know, depending on how you see the map",
"coordinate": {
"x": 150,
"y": 1250
}
}, {
"nodeId": "2",
"parentBuilding": "1",
"parentFloor": "1",
"nodeName": "top Right Corner",
"nodeDescription": "Top Right Corner of office, Try not to spill the water",
"coordinate": {
"x": 2600,
"y": 1250
}
}, {
"nodeId": "3",
"parentBuilding": "1",
"parentFloor": "1",
"nodeName": "Door to Switch",
"nodeDescription": "Press doorbell to release door, keep your hands an antennas out of range",
"coordinate": {
"x": 2600,
"y": 2000
}
}, {
"nodeId": "4",
"parentBuilding": "1",
"parentFloor": "1",
"nodeName": "Airlock",
"nodeDescription": "It feels stuffy in here, lots of switches too",
"coordinate": {
"x": 2600,
"y": 2650
}
}, {
"nodeId": "5",
"parentBuilding": "1",
"parentFloor": "1",
"nodeName": "Switchboard",
"nodeDescription": "What does this button do?",
"coordinate": {
"x": 3250,
"y": 2650
}
}, {
"nodeId": "7",
"parentBuilding": "1",
"parentFloor": "1",
"nodeName": "T joint",
"nodeDescription": "Its just a small office, you can see for everywhere for the love of god",
"coordinate": {
"x": 2100,
"y": 2000
}
}, {
"nodeId": "8",
"parentBuilding": "1",
"parentFloor": "1",
"nodeName": "To the md",
"nodeDescription": "Basically the door to a partitioned office",
"coordinate": {
"x": 635,
"y": 2000
}
}, {
"nodeId": "9",
"parentBuilding": "1",
"parentFloor": "1",
"nodeName": "The corner",
"nodeDescription": "Look out for falling A/C's",
"coordinate": {
"x": 150,
"y": 2000
}
}, {
"nodeId": "10",
"parentBuilding": "1",
"parentFloor": "1",
"nodeName": "Looking window",
"nodeDescription": "Look at the scenic hallways",
"coordinate": {
"x": 2100,
"y": 2650
}
}, {
"nodeId": "11",
"parentBuilding": "1",
"parentFloor": "1",
"nodeName": "storage",
"nodeDescription": "It smells electronics here",
"coordinate": {
"x": 1080,
"y": 2650
}
}, {
"nodeId": "12",
"parentBuilding": "1",
"parentFloor": "1",
"nodeName": "Md punishment corner",
"nodeDescription": "Go to the corner and reflect on what you did",
"coordinate": {
"x": 635,
"y": 2650
}
}, {
"nodeId": "13",
"parentBuilding": "1",
"parentFloor": "1",
"nodeName": "Md",
"nodeDescription": "The iron throne awaits the brave",
"coordinate": {
"x": 150,
"y": 2650
}
}]
}, {
"floorId": "2",
"pictureURL": "http://192.168.0.122/sensomate/BLENavigation/pictures/1234/",
"size": {
"x": 4000,
"y": 4000
},
"floorName": "First Floor",
"floorDescription": "It's a dummy floor to scare people",
"nodeList": [{
"nodeId": "6",
"parentBuilding": "1",
"parentFloor": "2",
"nodeName": "Door",
"nodeDescription": "Fresh Air and freedom awaits, apperently now in another floor",
"coordinate": {
"x": 3250,
"y": 1890
}
}]
}]
}],
"edgeList": [{
"edgeId": "1",
"fromNodeId": "1",
"toNodeId": "2",
"distance": 2450,
"beaconList": [{
"beaconId": "1",
"parentEdge": "1",
"parentFloor": "1",
"parentBuilding": "1",
"coordinate": {
"x": 150,
"y": 1450
},
"beaconName": "sm06",
"beaconDescription": "Oh so you decided to stick me in the corner I see",
"beaconMacId": "14:58:00:04:33:1D"
}, {
"beaconId": "2",
"parentEdge": "1",
"parentFloor": "1",
"parentBuilding": "1",
"coordinate": {
"x": 550,
"y": 1450
},
"beaconName": "sm05",
"beaconDescription": "Meh, at least i'm not in the corner",
"beaconMacId": "14:58:00:04:32:95"
}, {
"beaconId": "3",
"parentEdge": "1",
"parentFloor": "1",
"parentBuilding": "1",
"coordinate": {
"x": 950,
"y": 1450
},
"beaconName": "sm04",
"beaconDescription": "I hate being in the middle",
"beaconMacId": "14:58:00:04:33:99"
}, {
"beaconId": "4",
"parentEdge": "1",
"parentFloor": "1",
"parentBuilding": "1",
"coordinate": {
"x": 1350,
"y": 1450
},
"beaconName": "sm03",
"beaconDescription": "I love being in the middle",
"beaconMacId": "14:58:00:04:32:98"
}, {
"beaconId": "5",
"parentEdge": "1",
"parentFloor": "1",
"parentBuilding": "1",
"coordinate": {
"x": 1750,
"y": 1450
},
"beaconName": "sm02",
"beaconDescription": "I'm so tall, I can see over mountains",
"beaconMacId": "14:58:00:04:32:0"
}, {
"beaconId": "6",
"parentEdge": "1",
"parentFloor": "1",
"parentBuilding": "1",
"coordinate": {
"x": 2150,
"y": 1450
},
"beaconName": "sm01",
"beaconDescription": "Bah, I don't understand",
"beaconMacId": "14:58:00:04:32:E6"
}]
}, {
"edgeId": "2",
"fromNodeId": "2",
"toNodeId": "3",
"distance": 750,
"beaconList": [{
"beaconId": "7",
"parentEdge": "2",
"parentFloor": "1",
"parentBuilding": "1",
"coordinate": {
"x": 2941,
"y": 1270
},
"beaconName": "water",
"beaconDescription": "Ah the sound of fresh refreshingly cool water",
"beaconMacId": "14:58:00:04:32:2"
}]
}, {
"edgeId": "3",
"fromNodeId": "3",
"toNodeId": "4",
"distance": 650
}, {
"edgeId": "4",
"fromNodeId": "4",
"toNodeId": "5",
"distance": 600,
"beaconList": [{
"beaconId": "8",
"parentEdge": "4",
"parentFloor": "1",
"parentBuilding": "1",
"coordinate": {
"x": 3550,
"y": 2690
},
"beaconName": "Switch",
"beaconDescription": "Do i press this, or this, or maybe this",
"beaconMacId": "14:58:00:04:32:3"
}]
}, {
"edgeId": "5",
"fromNodeId": "5",
"toNodeId": "6",
"distance": 600,
"connector": true,
"beaconList": [{
"beaconId": "9",
"parentEdge": "5",
"parentFloor": "2",
"parentBuilding": "1",
"coordinate": {
"x": 3250,
"y": 1890
},
"beaconName": "Door",
"beaconDescription": "Oh sweet freedom on another floor, here i come",
"beaconMacId": "14:58:00:04:32:4"
}]
}, {
"edgeId": "6",
"fromNodeId": "3",
"toNodeId": "7",
"distance": 500,
"beaconList": [{
"beaconId": "10",
"parentEdge": "6",
"parentFloor": "1",
"parentBuilding": "1",
"coordinate": {
"x": 2150,
"y": 1900
},
"beaconName": "sm07",
"beaconDescription": "Possibly a brainiac, emby approves",
"beaconMacId": "14:58:00:04:32:5"
}]
}, {
"edgeId": "7",
"fromNodeId": "7",
"toNodeId": "10",
"distance": 650
}, {
"edgeId": "8",
"fromNodeId": "7",
"toNodeId": "8",
"distance": 1525,
"beaconList": [{
"beaconId": "11",
"parentEdge": "8",
"parentFloor": "1",
"parentBuilding": "1",
"coordinate": {
"x": 1750,
"y": 1900
},
"beaconName": "sm08",
"beaconDescription": "A lot of empty space in this cabin",
"beaconMacId": "14:58:00:04:32:6"
}, {
"beaconId": "12",
"parentEdge": "8",
"parentFloor": "1",
"parentBuilding": "1",
"coordinate": {
"x": 1350,
"y": 1900
},
"beaconName": "sm09",
"beaconDescription": "Bah someone will use it",
"beaconMacId": "14:58:00:04:32:7"
}, {
"beaconId": "13",
"parentEdge": "8",
"parentFloor": "1",
"parentBuilding": "1",
"coordinate": {
"x": 950,
"y": 1900
},
"beaconName": "sm10",
"beaconDescription": "I smell electronics, and teamviewer",
"beaconMacId": "14:58:00:04:33:92"
}, {
"beaconId": "14",
"parentEdge": "8",
"parentFloor": "1",
"parentBuilding": "1",
"coordinate": {
"x": 1565,
"y": 2150
},
"beaconName": "sm13",
"beaconDescription": "Stickies galore",
"beaconMacId": "14:58:00:04:33:76"
}, {
"beaconId": "15",
"parentEdge": "8",
"parentFloor": "1",
"parentBuilding": "1",
"coordinate": {
"x": 1080,
"y": 2150
},
"beaconName": "sm14",
"beaconDescription": "Aswin Dev was here",
"beaconMacId": "14:58:00:04:33:18"
}]
}, {
"edgeId": "9",
"fromNodeId": "9",
"toNodeId": "8",
"distance": 350,
"beaconList": [{
"beaconId": "16",
"parentEdge": "9",
"parentFloor": "1",
"parentBuilding": "1",
"coordinate": {
"x": 550,
"y": 1900
},
"beaconName": "sm11",
"beaconDescription": "Its almost like storage, aint it",
"beaconMacId": "14:58:00:04:32:11"
}, {
"beaconId": "17",
"parentEdge": "9",
"parentFloor": "1",
"parentBuilding": "1",
"coordinate": {
"x": 150,
"y": 1900
},
"beaconName": "printer",
"beaconDescription": "All hail the inky king who spews typed paper",
"beaconMacId": "14:58:00:04:32:12"
}]
}, {
"edgeId": "10",
"fromNodeId": "12",
"toNodeId": "8",
"distance": 650,
"beaconList": [{
"beaconId": "18",
"parentEdge": "10",
"parentFloor": "1",
"parentBuilding": "1",
"coordinate": {
"x": 500,
"y": 2290
},
"beaconName": "guest1",
"beaconDescription": "Sit there and don't move till i tell you",
"beaconMacId": "14:58:00:04:32:13"
}, {
"beaconId": "19",
"parentEdge": "10",
"parentFloor": "1",
"parentBuilding": "1",
"coordinate": {
"x": 500,
"y": 2470
},
"beaconName": "guest2",
"beaconDescription": "Now mister perera where were we?",
"beaconMacId": "14:58:00:04:32:14"
}]
}, {
"edgeId": "11",
"fromNodeId": "12",
"toNodeId": "13",
"distance": 350,
"beaconList": [{
"beaconId": "20",
"parentEdge": "11",
"parentFloor": "1",
"parentBuilding": "1",
"coordinate": {
"x": 150,
"y": 2450
},
"beaconName": "md",
"beaconDescription": "Everything the light, touches is our kingdom, Its dark in here.",
"beaconMacId": "14:58:00:04:32:15"
}]
}, {
"edgeId": "12",
"fromNodeId": "10",
"toNodeId": "11",
"distance": 1080,
"beaconList": [{
"beaconId": "21",
"parentEdge": "12",
"parentFloor": "1",
"parentBuilding": "1",
"coordinate": {
"x": 1550,
"y": 2150
},
"beaconName": "sm15",
"beaconDescription": "Something Mumble or Murmer",
"beaconMacId": "14:58:00:04:32:16"
},{
"beaconId": "22",
"parentEdge": "12",
"parentFloor": "1",
"parentBuilding": "1",
"coordinate": {
"x": 1080,
"y": 2150
},
"beaconName": "storage",
"beaconDescription": "Can't someone clean this up already",
"beaconMacId": "14:58:00:04:32:17"
}]
}],
"errorMessage": "When Code is 0, send Error message here"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment