Beacon: a Geohopper/Beecon plugin
Re: Beacon: a Geohopper/Beecon plugin
Bump...anyone know how to test the webserver without using Geohopper?
Thanks,
Carl
Thanks,
Carl
Re: Beacon: a Geohopper/Beecon plugin
Yeah, there's something wrong with my use of Python's BaseHTTPRequestHandler, seems like it stops listening after some time. I can't find anything wrong with it, but I'm looking into it.howartp wrote:Yes, I've had problems with Beacon recently. Disabling and re-enabling the plugin sorts it out, but it goes wrong again at some point.
Sent from my iPhone using Tapatalk
Re: Beacon: a Geohopper/Beecon plugin
Cool, good to know you're aware of it.
As I hadn't had time to test what was happening and whether it was my system, I didn't report it (yet).
Sent from my iPhone using Tapatalk
As I hadn't had time to test what was happening and whether it was my system, I didn't report it (yet).
Sent from my iPhone using Tapatalk
Re: Beacon: a Geohopper/Beecon plugin
Inexplicably, it started working again today. +1000 on native Touch location tracking.
Carl
Carl
Re: Beacon: a Geohopper/Beecon plugin
Regarding the plug-in not working after a certain period of time, until reloaded. The Google SMS plug-in has the same issue. The work around is to reload the plug-in every few hours. I have mine set to reload every 3 hours; maybe that would help with this plug-in?
Create a repeating scheduled event that has it's action as the below embedded python code.
Be aware, you will need to replace the reverse domain text with the one for this plug-in .
I'v tried using this plug-in with a couple of the apps, and could not get it to work. However, I have had really good luck using Apple's Find Friends app, espeically with the improvements they added last year. I have it send notification emails to Indigo every time I arrive and depart home. I was able to improve the email triggers over the weekend using the Better Email plug-in.
Create a repeating scheduled event that has it's action as the below embedded python code.
Be aware, you will need to replace the reverse domain text with the one for this plug-in .
The python code to reload the Google SMS is:com.chrisandlynette.indigoplugin.googleVoiceSMS
Code: Select all
plugin = indigo.server.getPlugin("com.chrisandlynette.indigoplugin.googleVoiceSMS")
if plugin.isEnabled():
plugin.restart()Re: Beacon: a Geohopper/Beecon plugin
If you run the following command in a terminal window once the plugin stops responding you will notice that the port is in a CLOSE_WAIT state and stays like that until restarted.flic wrote: Yeah, there's something wrong with my use of Python's BaseHTTPRequestHandler, seems like it stops listening after some time. I can't find anything wrong with it, but I'm looking into it.
Code: Select all
netstat -atp tcpIain
Re: Beacon: a Geohopper/Beecon plugin
I'm testing a new version of the plugin that uses a threaded HTTP listener instead of the old single-thread version. Looks good so far!
Try it: https://github.com/flic/Beacon
Try it: https://github.com/flic/Beacon
Re: Beacon: a Geohopper/Beecon plugin
Hey flic,
I installed the latest build from GitHub, I'll let you know if I experience anything unusual.
For some reason as I travelled yesterday my phone did not notify Indigo of my exiting then entering my Home (region). Apple's Find Friends app did not send the notification emails, nor did the geo-fencing app I'm testing make the http calls. I added some local notifications (push messages) to the geofencing app, so I know what it is doing, without having to make it active.
Rycardo
I installed the latest build from GitHub, I'll let you know if I experience anything unusual.
For some reason as I travelled yesterday my phone did not notify Indigo of my exiting then entering my Home (region). Apple's Find Friends app did not send the notification emails, nor did the geo-fencing app I'm testing make the http calls. I added some local notifications (push messages) to the geofencing app, so I know what it is doing, without having to make it active.
Rycardo
-
philipbasile
- Posts: 126
- Joined: Thu Jan 08, 2015 8:59 pm
- Location: NJ
Re: Beacon: a Geohopper/Beecon plugin
Hi Flic,
Awesome plugin !
I'm running with geohopper since the indigo apple script bug started and crippled my geohopper apple script.
I love that your plugin auto creates the devices when it gets an event from a new location !
Even though you have the Any Device State Change for the trigger it looks like I still need to know which of the location devices I'm going to work with for the next step, either a condition or to set a variable to the current location
.
Would it be possible to have a non-location specific device that has a state of something like CurrentLocation. When you enter a location it gets set to the location name and when you leave that location it gets set to Unknown and another state LastLocation that gets set to the location you last exited.
This way I would need only one device and then a single trigger can assess the locations and actions.
Let me know.
Thanks
Philip
Awesome plugin !
I'm running with geohopper since the indigo apple script bug started and crippled my geohopper apple script.
I love that your plugin auto creates the devices when it gets an event from a new location !
Even though you have the Any Device State Change for the trigger it looks like I still need to know which of the location devices I'm going to work with for the next step, either a condition or to set a variable to the current location
.
Would it be possible to have a non-location specific device that has a state of something like CurrentLocation. When you enter a location it gets set to the location name and when you leave that location it gets set to Unknown and another state LastLocation that gets set to the location you last exited.
This way I would need only one device and then a single trigger can assess the locations and actions.
Let me know.
Thanks
Philip
Re: Beacon: a Geohopper/Beecon plugin
Thanks Philip.philipbasile wrote: Would it be possible to have a non-location specific device that has a state of something like CurrentLocation. When you enter a location it gets set to the location name and when you leave that location it gets set to Unknown and another state LastLocation that gets set to the location you last exited.
This way I would need only one device and then a single trigger can assess the locations and actions.
Interesting idea, let me think about that!
Re: Beacon: a Geohopper/Beecon plugin
Hi!
Everything is working great BUT from time to time my GeoFency app decides to change the ID and I get new devices in Indigo w/ the new ID and the old one stops working. Is this just me or what? It happens on both my iPhone and my wife's iPhone. I think it may depend on GeoFency app updates but I have seen it other times to.
I guess it's a GeoFency bug and not a Beacon bugg but I would like to hear if some one else is experiencing this!
Best regards, L
Everything is working great BUT from time to time my GeoFency app decides to change the ID and I get new devices in Indigo w/ the new ID and the old one stops working. Is this just me or what? It happens on both my iPhone and my wife's iPhone. I think it may depend on GeoFency app updates but I have seen it other times to.
I guess it's a GeoFency bug and not a Beacon bugg but I would like to hear if some one else is experiencing this!
Best regards, L
Re: Beacon: a Geohopper/Beecon plugin
Hi DrLove,
Yes, I suffer about the same problem deviceID changing on some GeoFency app upgrades.
I have sent an email to [email protected]. But, still no answer from the developer.
I am sure is not Beacon a plugin bug.
Yes, I suffer about the same problem deviceID changing on some GeoFency app upgrades.
I have sent an email to [email protected]. But, still no answer from the developer.
I am sure is not Beacon a plugin bug.
-
philipbasile
- Posts: 126
- Joined: Thu Jan 08, 2015 8:59 pm
- Location: NJ
Re: Beacon: a Geohopper/Beecon plugin
Flic,
Have you thought about my idea to have a non-location specific device? it would be user specific, just not location specific. it would really make a big difference in the way I could track individuals locations and Infer destinations like "it looks like I'm on my way home". It would also streamline and reduce the number of devices and triggers.
It looks like you already have all the pieces in place to implement it.
Thanks,
Philip
Have you thought about my idea to have a non-location specific device? it would be user specific, just not location specific. it would really make a big difference in the way I could track individuals locations and Infer destinations like "it looks like I'm on my way home". It would also streamline and reduce the number of devices and triggers.
It looks like you already have all the pieces in place to implement it.
Thanks,
Philip
Re: Beacon: a Geohopper/Beecon plugin
I have. I'm a little bit short on time, but I'm working on som changes re devices and device types so this fits right in. I haven't really decided on how to handle it yet though. We all tend to set up things very differently so I'm trying to come up with a way that's as generic as possible. For example, your idea of a user-specific device wouldn't really work for me as I tend to be in multiple places at once. I might be on my bike, in the garage for example.philipbasile wrote:Have you thought about my idea to have a non-location specific device? it would be user specific, just not location specific. it would really make a big difference in the way I could track individuals locations and Infer destinations like "it looks like I'm on my way home". It would also streamline and reduce the number of devices and triggers.
One solution to solve your specific case is to use the generic triggers, Beacon event -> Device state change (any), and then do some scripting, but I don't know how comfortable you are with doing that?
Anyway, I'm thinking about it!
Re: Beacon: a Geohopper/Beecon plugin
New version 1.4.0.
Firstly, I've changed the device type from the old custom device to a standard On/Off sensor device type. This enables the use of Indigo Virtual Devices. For example, you can now create a virtual device group for all family member's home location, enabling you to easily trigger jobs when the house is empty. The downside, all old devices needs to be re-created! Sorry about that.
I've done some work on the triggers, it's now possible to create a trigger (enter/exit/any) and filter on the device address or parts of the device address. For instance, if you want a trigger for all check-ins from user fredrik on any location you can filter for "fredrik*". Or, if you want to filter for all check-ins at location home you enter "*@@home". The filter is case-insensitive.
There's also a new option to create three new variables, "Beacon_deviceID", "Beacon_name" and "Beacon_location". (Needs to be enabled in config.) These variables gets updated at check-in and can be used in conjunction with the generic trigger above. It's not exactly what Philip asked for, but it might be a start.
https://github.com/flic/Beacon/
Firstly, I've changed the device type from the old custom device to a standard On/Off sensor device type. This enables the use of Indigo Virtual Devices. For example, you can now create a virtual device group for all family member's home location, enabling you to easily trigger jobs when the house is empty. The downside, all old devices needs to be re-created! Sorry about that.
I've done some work on the triggers, it's now possible to create a trigger (enter/exit/any) and filter on the device address or parts of the device address. For instance, if you want a trigger for all check-ins from user fredrik on any location you can filter for "fredrik*". Or, if you want to filter for all check-ins at location home you enter "*@@home". The filter is case-insensitive.
There's also a new option to create three new variables, "Beacon_deviceID", "Beacon_name" and "Beacon_location". (Needs to be enabled in config.) These variables gets updated at check-in and can be used in conjunction with the generic trigger above. It's not exactly what Philip asked for, but it might be a start.
https://github.com/flic/Beacon/