Page 5 of 6

Re: Online Sensor plugin

PostPosted: Mon Jun 08, 2020 3:17 pm
by dkillmer
I decided to bag the plugin and write a simple script.

import speedtest

st = speedtest.Speedtest()

indigo.variable.updateValue("DownloadSpeed", str("{:.2f}".format(st.download()/1000000)))
indigo.variable.updateValue("UploadSpeed", str("{:.2f}".format(st.upload()/1000000)))

Re: Online Sensor plugin

PostPosted: Tue Jun 09, 2020 12:59 pm
by kmarkley
When the plugin was built, speedtest.py automatically tried to share the results and threw an exception if unable to. It looks like the current version makes this optional. I'll need to make a few changes to the plugin to work with the new library, but should be able to do so later this week.

Re: Online Sensor plugin

PostPosted: Mon Aug 03, 2020 2:41 pm
by jstewart30
kmarkley wrote:
When the plugin was built, speedtest.py automatically tried to share the results and threw an exception if unable to. It looks like the current version makes this optional. I'll need to make a few changes to the plugin to work with the new library, but should be able to do so later this week.


I'm having the same error about not being able to submit results to speedtest. Running 10.13 if that helps at all. Just wanted to see if you are able to implement the above change and/or if there's any other insight as to why the error is occurring. Thanks in advance!

Re: Online Sensor plugin

PostPosted: Thu Apr 08, 2021 3:53 am
by racarter
Hi

The last couple of days I've been getting errors in the event log. I switched on debug messages and I'm getting this:

8 Apr 2021 at 10:38:17
Online Sensor Debug updating states on device "Internet Connection":
Online Sensor Debug onOffState: True

8 Apr 2021 at 10:39:54
Online Sensor Debug performSpeedtest: Internet Speed
Online Sensor Error invalid literal for int() with base 10: ''
Online Sensor Debug performSpeedtest: 0.226945161819 seconds
Online Sensor Debug updating states on device "Internet Speed":
Online Sensor Debug onOffState: False

I'm guessing Speedtest is returning something bad.

I've found a solution:

https://github.com/sivel/speedtest-cli/pull/769

Re: Online Sensor plugin

PostPosted: Fri Apr 09, 2021 6:46 pm
by ryanbuckner
Getting the following error every few minutes:

Code: Select all
  Online Sensor Error             invalid literal for int() with base 10: ''

Re: Online Sensor plugin

PostPosted: Sat Apr 10, 2021 11:59 am
by kmarkley
New version 0.0.15 on the plugin store updates the speedtest.py library which should fix this issue. Also (finally) makes sharing speedtest results optional.

Re: Online Sensor plugin

PostPosted: Sun Apr 11, 2021 3:36 pm
by ryanbuckner
kmarkley wrote:
New version 0.0.15 on the plugin store updates the speedtest.py library which should fix this issue. Also (finally) makes sharing speedtest results optional.


Thanks! Just installed. I'll let you know what I see

Re: Online Sensor plugin

PostPosted: Fri Mar 18, 2022 12:07 pm
by Liptrot
The Online Sensor plug-in Speedtest device has started giving HTTP 503 errors .

Is there any way to work around this ?


Thanks !!!!

Re: Online Sensor plugin

PostPosted: Sat May 14, 2022 8:37 pm
by DVDDave
Liptrot wrote:
The Online Sensor plug-in Speedtest device has started giving HTTP 503 errors .

Is there any way to work around this ?


Thanks !!!!

Same problem here

Re: Online Sensor plugin

PostPosted: Fri Jun 03, 2022 5:37 pm
by TimH
I just starting using this plugin - some nice features, but `i too am seeing the 503 errors. I did some debugging and it appears the plug-in is failing when it attempts to share the results with speedtest.net. (although I have share unchecked? - likely some left over code) It looks like when its updating its status in plugin.py (when the tests are complete) at this line : {'key':'share_link', 'value':'r.share()' }, Its getting the 503 server busy error (sometimes). As a temp fix, I updated that line to : {'key':'share_link', 'value':'No Thanks' },. And it appears to be working well now. I hope this helps until the author can take a look and make a permanent fix. And, thanks again to the author for a handy plugin!

Re: Online Sensor plugin

PostPosted: Fri Jun 10, 2022 8:16 am
by kmarkley
I searched my logs and found a couple of these errors, but I'm not seeing them on a regular basis. The plugin needs updating to python 3 and the newest version of the speedtest library. Hopefully that will address this as well. Unfortunately it will probably be a month or two before I can get to it.

Re: Online Sensor plugin

PostPosted: Wed Aug 10, 2022 3:32 pm
by farberm
Happy to wait, I use this plugin all the time.

Re: Online Sensor plugin

PostPosted: Wed Oct 05, 2022 7:15 pm
by Dual
I use this plugin to test if my internet is working by pinging a variety of addresses. If they all fail then I have Indigo restart my modem and router. Will this plugin be updated to work with future versions of Indigo?

Re: Online Sensor plugin

PostPosted: Fri Mar 03, 2023 12:16 pm
by Different Computers
I'm taking another look at my "yellow" plugins and this is one.

Any thoughts about whether this will be updated for >2022.2?

Of all the non-compliant plugins I use, this is probably easiest to replace with some sort of python script, but this plugin is very convenient.

Re: Online Sensor plugin

PostPosted: Tue May 09, 2023 7:26 pm
by Grognard
It's starting to look like this plugin is not going to be updated to Python 3 any time soon. Any other users out there who have replaced this with a script?