Is Connected
- kgschlosser
- Site Admin
- Posts: 5508
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: Is Connected
also. have you tried the new version of the system plugin?
viewtopic.php?f=5&t=9588
this version will show every single device that gets attached to and from the system. even the serial ports created by widcom (BT)
this may also help you to get what you want.
viewtopic.php?f=5&t=9588
this version will show every single device that gets attached to and from the system. even the serial ports created by widcom (BT)
this may also help you to get what you want.
Re: Is Connected
it seems to do what I need, the only thing that bothers me is the fact that I have to install one more apps on my phonekgschlosser wrote:ok i am going to give you exactly what you want. did you go and read that tutorial about the geofencing?
well the author of it has a beta version out that does just what you want. it uses BT transmissions as a beacon where you can set your location relative to it. and there is a plugin for his application that will send the entering or leaving events to EventGhost. you have to register for the beta to be able to use it. but it's an easy process. you would have to click on the help for his app and it will bring you to a forum and his website where there is more information about the beta version.
it's called EgiGeozoneBT


Re: Is Connected
Should I install only the plugin System 1.1.22 or your WIP setup ? I tried to install the plugin but it appears in red in the plugin list, should I simply replace it with the one located here :kgschlosser wrote:also. have you tried the new version of the system plugin?
viewtopic.php?f=5&t=9588
this version will show every single device that gets attached to and from the system. even the serial ports created by widcom (BT)
this may also help you to get what you want.
C:\Program Files (x86)\EventGhost\plugins\System ??
I'm not sure I'm doing the right thing

Thanks.
- kgschlosser
- Site Admin
- Posts: 5508
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: Is Connected
OYE!
I thought I posted an updated version of it...
Give me a day or so on it i want to walk through the current version make sure it is running right and then post it...
it is only going to work with EG 0.5 rc-2 or newer.
I have to modify a couple of bits in it to update it to be compliant with the next release of EG
it is not included in rc2
I thought I posted an updated version of it...
Give me a day or so on it i want to walk through the current version make sure it is running right and then post it...
it is only going to work with EG 0.5 rc-2 or newer.
I have to modify a couple of bits in it to update it to be compliant with the next release of EG
it is not included in rc2
- kgschlosser
- Site Admin
- Posts: 5508
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: Is Connected
@Snowbird
I added the newest version of the system plugin to link i posted earlier. so give it a go and see if that will work for you.
I added the newest version of the system plugin to link i posted earlier. so give it a go and see if that will work for you.
- kgschlosser
- Site Admin
- Posts: 5508
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: Is Connected
Yeah I know it has an issue. Unfortunately it had to be put on the back burner for a little bit. I will be revisiting it soon. It's going to be something that is pretty domb as to why it is not working. It's a pretty simple concept. Create a socket to an IP. If it refuses the connection the host is connected. If it connects the host is connected. If it times out the host is not connected. I know I had it running on my end. I don't know what I may have changed to make it stop working. As soon as I tested it. I packaged it and attached it. Only thing I could have done is packaged up a wrong version of it. I have to check. I will do this when I get home in 8 hours or so
- kgschlosser
- Site Admin
- Posts: 5508
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: Is Connected
OK I just took a look at this...
I need someone to test something for me.
when adding a device set the How long to check for to 1.5 seconds. this seems to be the sweet spot for detecting the connection properly. and if that is the case I will have to set a minimum on that control to be there if that is the case.
I need someone to test something for me.
when adding a device set the How long to check for to 1.5 seconds. this seems to be the sweet spot for detecting the connection properly. and if that is the case I will have to set a minimum on that control to be there if that is the case.
- kgschlosser
- Site Admin
- Posts: 5508
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: Is Connected
maybe try pushing that timeout higher. make it a 5 second thing and see if you get something then.
Re: Is Connected
Nope, it just doesn't work, no matter what I set there
Re: Is Connected
I was having a similar issue. Using with a vizio tv to see if it was on or not. The thing that seemed to make it work was bumping up the 'How long to check' parameter. I am not sure what is optimal but I think I just set it at 2 seconds and it seemed to be rock solid.
- kgschlosser
- Site Admin
- Posts: 5508
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: Is Connected
This is something I am going to have to tinker with a bit more. all I am doing with this plugin is making a socket connection to the device. if I get a refusal. then the device is there. if I get a connection then the device is there. if it times out then no device. I have to play around with it a bit more to figure out why sometimes i get a timeout before a refusal. it could be that if you make a query to rapidly then it will just simply ignore the request. maybe i should have it select a random port each time. this might solve the problem.
Re: Is Connected
The plugin works for me if I set my phone to a static IP. But if I use the iOS device "Name" in the "Host Name/IP Address" plugin field (i.e. with a dynamic IP), I get a Python error as pasted below. It seems to be crapping out on a non-printable character (unless I'm misinterpreting the message.)
Any thoughts on why this might be happening?
Exception in thread eg.UserPluginModule.IsConnected.My Phone:
Traceback (most recent call last):
File "threading.pyc", line 532, in __bootstrap_inner
File "threading.pyc", line 484, in run
File "C:\ProgramData\EventGhost\plugins\IsConnected\__init__.py", line 242, in run
notice_ip = _validate_ip(self.host)
File "C:\ProgramData\EventGhost\plugins\IsConnected\__init__.py", line 165, in _validate_ip
return _netbios_to_ip(ip)
File "C:\ProgramData\EventGhost\plugins\IsConnected\__init__.py", line 153, in _netbios_to_ip
data = _prepare_netbios_query(trn_id, netbios_name)
File "C:\ProgramData\EventGhost\plugins\IsConnected\__init__.py", line 84, in _prepare_netbios_query
return header + payload
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd7 in position 0: ordinal not in range(128)
Any thoughts on why this might be happening?
Exception in thread eg.UserPluginModule.IsConnected.My Phone:
Traceback (most recent call last):
File "threading.pyc", line 532, in __bootstrap_inner
File "threading.pyc", line 484, in run
File "C:\ProgramData\EventGhost\plugins\IsConnected\__init__.py", line 242, in run
notice_ip = _validate_ip(self.host)
File "C:\ProgramData\EventGhost\plugins\IsConnected\__init__.py", line 165, in _validate_ip
return _netbios_to_ip(ip)
File "C:\ProgramData\EventGhost\plugins\IsConnected\__init__.py", line 153, in _netbios_to_ip
data = _prepare_netbios_query(trn_id, netbios_name)
File "C:\ProgramData\EventGhost\plugins\IsConnected\__init__.py", line 84, in _prepare_netbios_query
return header + payload
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd7 in position 0: ordinal not in range(128)
- kgschlosser
- Site Admin
- Posts: 5508
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: Is Connected
there are several mechanisms that are used to try to determine the IP address of the device. one of them being to query netbios to achieve this if there is no dns server that can.
I would need an example of the name you are plugging in, in order to be able to figure out what is going on. but I am thinking it might be a unicode thing.
I would need an example of the name you are plugging in, in order to be able to figure out what is going on. but I am thinking it might be a unicode thing.