Beacon: a Geohopper/Beecon plugin

Plugins that users have built. NOTE: plugins that were developed for Indigo versions older than 2022.1 will have to be updated to work with Indigo 2022.1 (Python 3 - see this blog post for details). If the plugin listed here is not in the Plugin Store (which will show updated plugins) then you will need to ask on the appropriate thread below if it has been updated and where you get get the update.
philipbasile
Posts: 126
Joined: Thu Jan 08, 2015 8:59 pm
Location: NJ

Re: Beacon: a Geohopper/Beecon plugin

Post by philipbasile »

Sounds good, no problem with the scripting, I'll check it out this weekend!

Philip
philipbasile
Posts: 126
Joined: Thu Jan 08, 2015 8:59 pm
Location: NJ

Re: Beacon: a Geohopper/Beecon plugin

Post by philipbasile »

flic,

what is the difference between the following

device name - auto creates [email]@@[location] from geohopper. If I change this then the device is not found on the next geohopper call. is that correct ?
sender name - auto creates [email]@@[location] from geohopper. If I change this then the device is not found on the next geohopper call. is that correct ?

in the indigo device list there is a column ADDRESS which corresponds to the sender field.

philip
flic
Posts: 128
Joined: Thu Nov 30, 2006 1:35 pm
Location: Lidingö, Sweden

Re: Beacon: a Geohopper/Beecon plugin

Post by flic »

Well, for starters you found a bug in the manual device creation dialog. Sender name/location name is not used anymore, it should just say address and nothing more. I've fixed that and committed 1.4.1 to github. No other changes so no real reason to upgrade if you don't usually create your devices manually.

On auto-creation both the Device Name and the Address is set to [sender]@@[location], but I only use the Address to identify the device. You can change the Device Name to whatever you want, that wont affect the functionality at all.
juntta
Posts: 150
Joined: Mon Oct 13, 2014 12:46 am
Location: Finland

Re: Beacon: a Geohopper/Beecon plugin

Post by juntta »

Hi!

I have another bug to report (minor one though ;)): if I name region in Geohopper "työpaikka" (workplace in Finnish ), Beacon wont trigger when I arrive to my office. If I replace ö-character with "o", it triggers just fine. So I guess either Beacon has trouble with character encodings or Geohopper has (or both :) )
flic
Posts: 128
Joined: Thu Nov 30, 2006 1:35 pm
Location: Lidingö, Sweden

Re: Beacon: a Geohopper/Beecon plugin

Post by flic »

juntta wrote:Hi!

I have another bug to report (minor one though ;)): if I name region in Geohopper "työpaikka" (workplace in Finnish ), Beacon wont trigger when I arrive to my office. If I replace ö-character with "o", it triggers just fine. So I guess either Beacon has trouble with character encodings or Geohopper has (or both :) )
Assuming it's me and not Geohopper I'll fix that. We umlaut-users need to stick together... ;)
flic
Posts: 128
Joined: Thu Nov 30, 2006 1:35 pm
Location: Lidingö, Sweden

Re: Beacon: a Geohopper/Beecon plugin

Post by flic »

Juntta, try upgrading to 1.4.2 now on GitHub, it should fix your umlaut problem.
juntta
Posts: 150
Joined: Mon Oct 13, 2014 12:46 am
Location: Finland

Re: Beacon: a Geohopper/Beecon plugin

Post by juntta »

Wow, that was fast! :shock: Hmm, unfortunately I didn't get it working. I replaced o's with ö's on both, Geohopper and Beacon device settings, but if I test location in Geohopper, nothing shows on Indigo log. But with o's in location name, test gets logged immediately. So can we make assumption that bug is at Geohoppers end?
flic
Posts: 128
Joined: Thu Nov 30, 2006 1:35 pm
Location: Lidingö, Sweden

Re: Beacon: a Geohopper/Beecon plugin

Post by flic »

I tried it with Geohopper, created a location with åäöÅÄÖ in the name, and that worked. I'll try to create a location with the same name as you and see what happens.
flic
Posts: 128
Joined: Thu Nov 30, 2006 1:35 pm
Location: Lidingö, Sweden

Re: Beacon: a Geohopper/Beecon plugin

Post by flic »

Looks like it's working

Code: Select all

  Beacon Debug                    New httpHandler thread: Thread-3, total threads: 3
  Beacon Debug                    Received HTTP POST
  Beacon Debug                    Sending HTTP 200 response
  Beacon Debug                    User-agent: None
  Beacon Debug                    Received JSON data: {"sender":"[email protected]","location":"työpaikka","event":"LocationTest","time":"2015-10-28 12:42:35 +0000"}
  Beacon Debug                    parseResult called
  Beacon Debug                    No device found
  Beacon Error                    Received LocationTest from [email protected]@@työpaikka but no corresponding device exists
  Beacon Debug                    deviceCreate called
  Beacon Debug                    Created new device, [email protected]@@työpaikka
  Beacon Debug                    Created device of type "beacon"
  Beacon Debug                    deviceUpdate called
  Beacon                          Test location notification received from sender/location [email protected]@@työpaikka
Could you try to delete the old device and let the plugin re-create it?
juntta
Posts: 150
Joined: Mon Oct 13, 2014 12:46 am
Location: Finland

Re: Beacon: a Geohopper/Beecon plugin

Post by juntta »

I tried to delete the device and let the plugin create it and it created the device, showed the test event on the log. Great. I tried to test it again with other location, works fine, shows up in the log, updates Beacon variables, I'm happy.

But: tried again with "työpaikka" location, now it doesnt show nothing on the log?!? Tried again and noticed it updates Beacon device id but no other signs - nothing on log, beacon name and location doesn't update. When I try with other locations, it works fine and all appropriate updates are done. Thats pretty weird :?
flic
Posts: 128
Joined: Thu Nov 30, 2006 1:35 pm
Location: Lidingö, Sweden

Re: Beacon: a Geohopper/Beecon plugin

Post by flic »

Strange, it still works for me. Can you enable debugging under Beacon config and post a debug log when it fails?

Edit: hang on, I found something. It's related to the variables, I didin't have "create variables" enabled.
flic
Posts: 128
Joined: Thu Nov 30, 2006 1:35 pm
Location: Lidingö, Sweden

Re: Beacon: a Geohopper/Beecon plugin

Post by flic »

Yes, it was related to variable creation. Try 1.4.3, see if it works for you.
juntta
Posts: 150
Joined: Mon Oct 13, 2014 12:46 am
Location: Finland

Re: Beacon: a Geohopper/Beecon plugin

Post by juntta »

Success! Now it works without issues! You showed umlauts who's the man :)
stuartcolman
Posts: 81
Joined: Sun Nov 01, 2015 2:56 pm
Location: Essex, United Kingdom

Re: Beacon: a Geohopper/Beecon plugin

Post by stuartcolman »

I have been using the Beacon plugin for a little while and had the idea of revering things slightly. Instead of using the phone as the presence device, why not use the ibeacon itself. So you carry a small beacon with you on your keyring, then on the mac something like "beaconscan" (https://bitbucket.org/twocanoes/beaconscan) could scan for your ibeacon every second. When it shows itself this is passed to the Beacon plugin and voila! iBeacons that leave the area would be cleared out after about 15 seconds.

I put an idea here (http://forums.indigodomo.com/viewtopic. ... 84#p105284), however instead of re-inventing the wheel, this may be an easy extension of the current plugin.

Thanks

Stuart
flic
Posts: 128
Joined: Thu Nov 30, 2006 1:35 pm
Location: Lidingö, Sweden

Re: Beacon: a Geohopper/Beecon plugin

Post by flic »

stuartcolman wrote:I have been using the Beacon plugin for a little while and had the idea of revering things slightly. Instead of using the phone as the presence device, why not use the ibeacon itself.
I see no real reason why this wouldn't work already. As a matter of fact, I'm already using a variant of this where I have an Estimote iBeacon on my MC and an old iPhone in the garage that senses it's presence when I arrive. If you'd prefer to use a computer you need an application that allows you to do a HTTP POST to Beacon, should be doable.
Post Reply

Return to “User Plugins”