Online Sensor plugin

Posted on
Mon Jun 08, 2020 3:17 pm
dkillmer offline
Posts: 39
Joined: Feb 23, 2015

Re: Online Sensor plugin

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)))

Posted on
Tue Jun 09, 2020 12:59 pm
kmarkley offline
Posts: 174
Joined: Nov 15, 2016

Re: Online Sensor plugin

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.

Posted on
Mon Aug 03, 2020 2:41 pm
jstewart30 offline
Posts: 15
Joined: Jul 03, 2014

Re: Online Sensor plugin

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!

Posted on
Thu Apr 08, 2021 3:53 am
racarter offline
User avatar
Posts: 312
Joined: Jun 18, 2016
Location: North Yorkshire, UK

Re: Online Sensor plugin

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

Posted on
Fri Apr 09, 2021 6:46 pm
ryanbuckner offline
Posts: 716
Joined: Oct 08, 2011

Re: Online Sensor plugin

Getting the following error every few minutes:

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

Posted on
Sat Apr 10, 2021 11:59 am
kmarkley offline
Posts: 174
Joined: Nov 15, 2016

Re: Online Sensor plugin

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.

Posted on
Sun Apr 11, 2021 3:36 pm
ryanbuckner offline
Posts: 716
Joined: Oct 08, 2011

Re: Online Sensor plugin

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

Posted on
Fri Mar 18, 2022 12:07 pm
Liptrot offline
Posts: 4
Joined: Feb 07, 2017

Re: Online Sensor plugin

The Online Sensor plug-in Speedtest device has started giving HTTP 503 errors .

Is there any way to work around this ?


Thanks !!!!

Posted on
Sat May 14, 2022 8:37 pm
DVDDave offline
Posts: 412
Joined: Feb 26, 2006
Location: San Jose, CA

Re: Online Sensor plugin

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

Who is online

Users browsing this forum: No registered users and 1 guest