I'm not very sure. I bought these thinking theory where beacons.
I think I'll have to do some more research in all this.
Announcement
Collapse
No announcement yet.
AprilBeacon iBeacons/BLE
Collapse
X
-
Originally posted by Mario from Spain View PostI tried with these: http://bbs.aprbrother.com/uploads/de..._1_500x500.jpg
Really cheap but they turn off after some minutes if not paired. :-(
A shame as they cost about $3 only.
Are these not beacons? I've never used a beacon paired? I don't have those but I've used the larger ap brother beacons without issues.
Leave a comment:
-
Originally posted by AllanMar View PostI've had good luck so far with the AprilBrother ones (cheap) which this topic was started for. Are these not working for you?
Really cheap but they turn off after some minutes if not paired. :-(
A shame as they cost about $3 only.
Leave a comment:
-
Originally posted by Mario from Spain View PostThank you!
A adapted this code to my system and it's working now. :-)
Now I have to find some small BLE tracker devices that doesn't turn off by them selves and that keeps transmitting beacons.
Leave a comment:
-
Originally posted by AllanMar View PostI started on a plugin to interface them, you can use MQTT plugin + script to decode the values also. My plugin is a bit of a mess, with too many hardcoded values currently. My plan was to clean it up and put it on github (I don't intend to sell/support it), but it may be some time before i get to that.
I use the following with Node-red to parse the beacons (in my case to log them to EmonCMS for testing).
Code:[{"id":"9646a260.9b6558","type":"function","z":"76b7035.1a2c8fc","name":"Extract Beacons","func":"var bJSON = JSON.parse(msg.payload);\nvar msgArr = [];\nvar id = bJSON.id;\nvar rawBeacons = bJSON.raw_beacons_data.split(\";\")\nfor (var b in rawBeacons) {\n if (rawBeacons[b].length !== 58)\n continue;\n msgArr.push({payload:rawBeacons[b], id:id})\n}\nreturn [msgArr,{payload:{id:id, beacons:msgArr.length}}];","outputs":"2","noerr":0,"x":484,"y":228,"wires":[["5b8b6b04.bcceec"],["d843eff1.23061"]]},{"id":"5b8b6b04.bcceec","type":"function","z":"76b7035.1a2c8fc","name":"Decode Beacon","func":"var raw = msg.payload;\nmsg.length = raw.length;\nmsg.raw = raw;\nvar data = {};\ndata.mac = raw.substring(0,12);\ndata.uuid = raw.substring(12,44);\ndata.major = parseInt(raw.substring(44,48));\ndata.minor = parseInt(raw.substring(48,52));\ndata.power = parseInt(raw.substring(52,54),16)-255;\ndata.battery = parseInt(raw.substring(54,56),16);\ndata.rssi = parseInt(raw.substring(56,58),16) -255;\nreturn {reciever: msg.id, payload: data};","outputs":1,"noerr":0,"x":728,"y":221,"wires":[["4eb67324.41c76c","3bdcb613.faf0c2"]]}]
A adapted this code to my system and it's working now. :-)
Now I have to find some small BLE tracker devices that doesn't turn off by them selves and that keeps transmitting beacons.
Leave a comment:
-
Originally posted by Mario from Spain View PostAny of you have a HS3 script to use with the Aprilbeacon receiver?
I received mine and it's now working but I have to integrate it with Homeseer.
I tried with Node-red but I'm unable to extract the data correctly.
I use the following with Node-red to parse the beacons (in my case to log them to EmonCMS for testing).
Code:[{"id":"9646a260.9b6558","type":"function","z":"76b7035.1a2c8fc","name":"Extract Beacons","func":"var bJSON = JSON.parse(msg.payload);\nvar msgArr = [];\nvar id = bJSON.id;\nvar rawBeacons = bJSON.raw_beacons_data.split(\";\")\nfor (var b in rawBeacons) {\n if (rawBeacons[b].length !== 58)\n continue;\n msgArr.push({payload:rawBeacons[b], id:id})\n}\nreturn [msgArr,{payload:{id:id, beacons:msgArr.length}}];","outputs":"2","noerr":0,"x":484,"y":228,"wires":[["5b8b6b04.bcceec"],["d843eff1.23061"]]},{"id":"5b8b6b04.bcceec","type":"function","z":"76b7035.1a2c8fc","name":"Decode Beacon","func":"var raw = msg.payload;\nmsg.length = raw.length;\nmsg.raw = raw;\nvar data = {};\ndata.mac = raw.substring(0,12);\ndata.uuid = raw.substring(12,44);\ndata.major = parseInt(raw.substring(44,48));\ndata.minor = parseInt(raw.substring(48,52));\ndata.power = parseInt(raw.substring(52,54),16)-255;\ndata.battery = parseInt(raw.substring(54,56),16);\ndata.rssi = parseInt(raw.substring(56,58),16) -255;\nreturn {reciever: msg.id, payload: data};","outputs":1,"noerr":0,"x":728,"y":221,"wires":[["4eb67324.41c76c","3bdcb613.faf0c2"]]}]
Leave a comment:
-
Any of you have a HS3 script to use with the Aprilbeacon receiver?
I received mine and it's now working but I have to integrate it with Homeseer.
I tried with Node-red but I'm unable to extract the data correctly.
Leave a comment:
-
Originally posted by AllanMar View PostThe messages are sent via MQTT but the message itself is basic JSON.
But if you would share the JSON (or string) parsing script I would appreciate it, as it reduces the amount of work I have to do.
Originally posted by AllanMar View PostI don't have fitbits but triangulation is tricky. Your main issue will be with how often they transmit a packet. You need to average several packets to get a reliable reading so if it only sends one every few seconds it would take a long time to get a reasonable fix.
This won't even be remotely close to a motion detector, but that's not the point. The point is to route messages differently and make the house behave different if we are both (or all, inkluding the kids) in the kitchen, in our beds, or outside. Say at night, if we all are upstairs during the night (detected by triangulation) and there's movement in the living room, then please alert us!
Perhaps sew a few Beacons in to the kids clothes to make me the ultimate "hide and go seek" champion.
Leave a comment:
-
The messages are sent via MQTT but the message itself is basic JSON.
I don't have fitbits but triangulation is tricky. Your main issue will be with how often they transmit a packet. You need to average several packets to get a reliable reading so if it only sends one every few seconds it would take a long time to get a reasonable fix.
Leave a comment:
-
Originally posted by AllanMar View PostI havent bothered much with the script, it just parsed the JSON and updated a device.
Which JSON are we talking about here? I thought it was MQTT? Do they give JSON results too?
Originally posted by AllanMar View PostI started making a plugin mainly to attempt to better learn that (using your sample plugin, thanks!). Its still a mess, but I don't know when i'll ever finish it so i'll try and post what I have on github soon.
Originally posted by AllanMar View PostWhat's your plan for using it as a sniffer? I've got some USB BLE sniffers i've thought about interfacing. Ever since I updated the firmware on mine I find Wifi disconnects alot.... I'm still not using these for any real application though.
Leave a comment:
-
Originally posted by Moskus View PostYeah, I would appreciate the script too!
Some good news: After I asked, it should now be possible to scan for all BLE devices, not just beacons. I'm just waiting for the hardware needed...
What's your plan for using it as a sniffer? I've got some USB BLE sniffers i've thought about interfacing. Ever since I updated the firmware on mine I find Wifi disconnects alot.... I'm still not using these for any real application though.
Leave a comment:
-
Yeah, I would appreciate the script too!
Some good news: After I asked, it should now be possible to scan for all BLE devices, not just beacons. I'm just waiting for the hardware needed...
Leave a comment:
-
Hi AllanMar,
Is it possible to share your hs script for the Aprilbeacon receiver ?
Leave a comment:
-
*bump*
Wondered if any updates were around about this AllanMar - still on the lookout for a decent detection system, and would like to know if the aircable stuff went like all the other BLE projects around here
Leave a comment:
Leave a comment: