Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

looking for an plugin.

If you have a question or need help, this is the place to be.
tjabas
Experienced User
Posts: 98
Joined: Sun Feb 07, 2016 6:28 pm

looking for an plugin.

Post by tjabas »

im looking for some sort of plugin that kan create an action if the internet connection is lost/down, is there any of that kind?

its like this, my modem(fiber) sometimes looses the connection towards the internet, and to get it to work again i need to reboot the modem, my isp cant really help me, with that, and i cant figure it out either.

I have a tellstick duo, and with that one, i could use and remote switch that i thought could kill the power to the modem and turn it back on.

So is there anything that could help me?
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: looking for an plugin.

Post by krambriw »

One way could be to use the Ping plugin.
tjabas
Experienced User
Posts: 98
Joined: Sun Feb 07, 2016 6:28 pm

Re: looking for an plugin.

Post by tjabas »

Sounds interesting, where can i find it?
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: looking for an plugin.

Post by kgschlosser »

it's apart of the standard EventGhost plugins library.

so right click your EG tree and click on add plugins. scroll down to the bottom and you should see it there.

K
If you like the work I have been doing then feel free to Image
tjabas
Experienced User
Posts: 98
Joined: Sun Feb 07, 2016 6:28 pm

Re: looking for an plugin.

Post by tjabas »

i found it, thank you.

i have tried it and in the plugin config there is this : string to match, what is this?

it seems to work with the other settings, witch action should i use, ad host or one ping now?

i have tried them both and both seem to work, i get the ping offline action when i kill the modem, and ping online action when the modem connects again.

but the problem is that when i starts the modem and the connection is being made i get the online action, but emideatley afterwards i get an offline action, and right after that i get an new online action, i think that the problem is the offline action between the online actions would kill the modem again.

Wow i hope you inderstand what i mean by this problem.

thanks
tjabas
Experienced User
Posts: 98
Joined: Sun Feb 07, 2016 6:28 pm

Re: looking for an plugin.

Post by tjabas »

Can i increase the ping time? I think if that is the problem why i get the online,offline,online actions when the connection is made.
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: looking for an plugin.

Post by krambriw »

Use Add Host action, try with www.google.com
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: looking for an plugin.

Post by krambriw »

With the Ping plugin, I have configured the 'Add Host' action like below. You should give enough time for the checks to avoid false alarms. Remember that your internet connection might be fully operational also in cases where the host is not responding. Therefore you should select a host that is likely to be available 365/24/7
Skärmklipp.JPG
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: looking for an plugin.

Post by krambriw »

An alternative way of monitoring your internet connection is described in this guide:

viewtopic.php?f=13&t=8168
tjabas
Experienced User
Posts: 98
Joined: Sun Feb 07, 2016 6:28 pm

Re: looking for an plugin.

Post by tjabas »

krambriw wrote:With the Ping plugin, I have configured the 'Add Host' action like below. You should give enough time for the checks to avoid false alarms. Remember that your internet connection might be fully operational also in cases where the host is not responding. Therefore you should select a host that is likely to be available 365/24/7
Skärmklipp.JPG

thank you for your help.

i have tried your suggestions but i still get problems, is it possible to increase the pingtime even more? i think 5000ms is maxium.

The problem is that i get more than one ping dead action, and that wont work because that action will force the modem to reboot again and im in a loop.

heres a peice of the log from eventghost.


14:49:14 TellStickDuo.modem.OFF u"selflearning-switch:nexa.90.0"
14:49:14 Ping.pingdead
14:49:22 TellStickDuo.modem.ON u"selflearning-switch:nexa.90.0"

14:50:30 Ping.pingdead

14:51:36 Ping.pingalive
14:51:36 Ping.pingalive
14:51:41 Ping.pingdead
14:51:45 Ping.pingalive

as you can see in the beginnig of the log i turn the nexa switch of, and i get the pingdead, then i turn the switch on and i get one more pingdead.

and then when the connection is made i get 2 pingalive followed by a pingdead, and that will cause a reboot again.

do you have any solution?

thanks.
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: looking for an plugin.

Post by krambriw »

This solution http://eventghost.net/forum/viewtopic.php?f=13&t=8168 has been working in my system since this morning without any 'false alarms'. It mightbe a bit more to configure.
I am not able to answer how the Ping plugin really works inside.
tjabas
Experienced User
Posts: 98
Joined: Sun Feb 07, 2016 6:28 pm

Re: looking for an plugin.

Post by tjabas »

krambriw wrote:This solution http://eventghost.net/forum/viewtopic.php?f=13&t=8168 has been working in my system since this morning without any 'false alarms'. It mightbe a bit more to configure.
I am not able to answer how the Ping plugin really works inside.

ok, im going to look more into this option then, the only thing im a bitt confused about it that Mott thing, it seems like i need a subscription of some sort?
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: looking for an plugin.

Post by krambriw »

it seems like i need a subscription of some sort?
No, you need not, just follow the guide but define your own unique topic
tjabas
Experienced User
Posts: 98
Joined: Sun Feb 07, 2016 6:28 pm

Re: looking for an plugin.

Post by tjabas »

krambriw wrote:
it seems like i need a subscription of some sort?
No, you need not, just follow the guide but define your own unique topic
ok, thanks, im at your ftp site but you have 3 different mqtt klients, wich one should i use?

i have tried the one only named MQTT klient, but that one just freezes eventghost.
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: looking for an plugin.

Post by krambriw »

Use the one named 'MQTT Client using Paho'

Did you also do this: viewtopic.php?f=9&t=5728&start=90#p40274
Post Reply