Beacon: a Geohopper/Beecon plugin
-
stuartcolman
- Posts: 81
- Joined: Sun Nov 01, 2015 2:56 pm
- Location: Essex, United Kingdom
Re: Beacon: a Geohopper/Beecon plugin
What are the value needed by Beacon to change the device state? Does it just take a JSON input?
Re: Beacon: a Geohopper/Beecon plugin
I support a few different applications and so a few different ways of doing it:
Geofancy:
User agent must include "Geofancy". ctype "application/x-www-form-urlencoded", POST device, id and trigger.
Geofency:
User agent must include "Geofency". ctype "application/json". POST JSON-formatted device, name, entry.
Beecon:
User agent must include "Beecon". POST region and action.
Geohopper:
ctype "application/json". POST JSON-formatted sender, location and event.
Trigger/event/entry/action can be one of the following: LocationEnter/enter/1, LocationExit/exit/ 0, LocationTest/test
Geofancy:
User agent must include "Geofancy". ctype "application/x-www-form-urlencoded", POST device, id and trigger.
Geofency:
User agent must include "Geofency". ctype "application/json". POST JSON-formatted device, name, entry.
Beecon:
User agent must include "Beecon". POST region and action.
Geohopper:
ctype "application/json". POST JSON-formatted sender, location and event.
Trigger/event/entry/action can be one of the following: LocationEnter/enter/1, LocationExit/exit/ 0, LocationTest/test
Re: Beacon: a Geohopper/Beecon plugin
Simple example on how to trigger Beacon from the command line:
Code: Select all
curl -H "Content-Type: application/json" -X POST -d '{"sender":"fredrik","location":"home","event":"LocationEnter"}' http://localhost:6192-
stuartcolman
- Posts: 81
- Joined: Sun Nov 01, 2015 2:56 pm
- Location: Essex, United Kingdom
Re: Beacon: a Geohopper/Beecon plugin
what would the relevant device in Indigo look like to use that code? would it be fredrik@@home as the address?
Re: Beacon: a Geohopper/Beecon plugin
Yes, exactly
Skickat från min iPhone med Tapatalk
Skickat från min iPhone med Tapatalk
Re: Beacon: a Geohopper/Beecon plugin
Interesting to see:
http://www.engadget.com/2015/11/11/blue ... ents-2016/
Will be great for a whole-house home/away zone.
Sent from my iPhone using Tapatalk
http://www.engadget.com/2015/11/11/blue ... ents-2016/
Will be great for a whole-house home/away zone.
Sent from my iPhone using Tapatalk
Re: Beacon: a Geohopper/Beecon plugin
Hey all,
This has been working great for me but recently I seem to get multiple triggers for exit and entrance of a zone.
Can see no obvious reason for this; any suggestions?
Cheers
This has been working great for me but recently I seem to get multiple triggers for exit and entrance of a zone.
Can see no obvious reason for this; any suggestions?
Cheers
Re: Beacon: a Geohopper/Beecon plugin
Hi flic,
Running Beacon 1.4.3
I've just bought three new RadBeacons and added them to GeoFency.
Before adding them, I "duplicated" an existing Beacon device in Indigo, then edited the Address to what I was about to create in GeoFency.
But when I activate the Webhook in GeoFency, your plugin insists on creating a new device instead of using the one I duplicated.
Is this intentional?
Peter
Running Beacon 1.4.3
I've just bought three new RadBeacons and added them to GeoFency.
Before adding them, I "duplicated" an existing Beacon device in Indigo, then edited the Address to what I was about to create in GeoFency.
But when I activate the Webhook in GeoFency, your plugin insists on creating a new device instead of using the one I duplicated.
Is this intentional?
Peter
Re: Beacon: a Geohopper/Beecon plugin
Are you sure you didn't just edit the name? I wasn't aware that it was possible to edit the address. Either way, no it's not intentional. If the address match an existing device no new device is created.
Skickat från min iPhone med Tapatalk
Skickat från min iPhone med Tapatalk
Re: Beacon: a Geohopper/Beecon plugin
Definitely the address.
Sent from my iPhone using Tapatalk
Sent from my iPhone using Tapatalk
Re: Beacon: a Geohopper/Beecon plugin
I'll take a look at it, see if you found a bug
Skickat från min iPhone med Tapatalk
Skickat från min iPhone med Tapatalk
Re: Beacon: a Geohopper/Beecon plugin
Yep, definitely a bug! Fixed in 1.4.4.
Re: Beacon: a Geohopper/Beecon plugin
Can you fix it a bit quicker next time? 
Sent from my iPhone using Tapatalk
Sent from my iPhone using Tapatalk
Re: Beacon: a Geohopper/Beecon plugin
Yeah I know, I'm slipping...
I'm on the sofa with my laptop, recuperating from knee surgery and bored out of my mind, that helps some!
I'm on the sofa with my laptop, recuperating from knee surgery and bored out of my mind, that helps some!
Re: Beacon: a Geohopper/Beecon plugin
Ah! 
I'll test it as soon as I can grab my dads phone to add the new ones - about half an hour.
A new idea if you want something to think about: I've got a RadBeacon USB in my PC at work, which activates when I arrive.
It deactivates whenever I leave the office (it's a school campus so pretty big).
I'd like to turn off the 'Exit' webhook in GeoFency, but that means the Beacon device will be permanently on.
It would be good to be able to turn off a Beacon device using regular Indigo commands such as after 30 minutes of not-being-in-the-office, or when I get in the car (there's a USB in there as well)?
Sent from my iPhone using Tapatalk
I'll test it as soon as I can grab my dads phone to add the new ones - about half an hour.
A new idea if you want something to think about: I've got a RadBeacon USB in my PC at work, which activates when I arrive.
It deactivates whenever I leave the office (it's a school campus so pretty big).
I'd like to turn off the 'Exit' webhook in GeoFency, but that means the Beacon device will be permanently on.
It would be good to be able to turn off a Beacon device using regular Indigo commands such as after 30 minutes of not-being-in-the-office, or when I get in the car (there's a USB in there as well)?
Sent from my iPhone using Tapatalk