Page 3 of 3

Re: Python Plugin: Speedtest

Posted: Wednesday 28 March 2018 20:09
by emeyedeejay
.

Re: Python Plugin: Speedtest

Posted: Wednesday 28 March 2018 20:12
by emeyedeejay
OK - might be this...

Code: Select all

pi@bart:~/domoticz/plugins $ python -V
Python 2.7.13
pi@bart:~/domoticz/plugins $ python3 -V
Python 3.5.3
Not sure which one will be used or whihc versions are required. Serious learning curve on the go here! :D

Thanks!

Re: Python Plugin: Speedtest

Posted: Wednesday 28 March 2018 20:26
by Xorfor
@ emeyedeejay

I was able to reproduce your problem! Probably you switched off the EventSystem. Please check the following:

Setup => Settings
Other tab
Check that EventSystem (Lua/Blockly/Scripts) is enabled
And restart Domoticz

Re: Python Plugin: Speedtest

Posted: Thursday 29 March 2018 15:08
by emeyedeejay
How did you fathom that out! OK - it was disabled (I have no idea how though)...

I now see this in the log:
2018-03-29 15:06:22.322 EventSystem: reset all events...
2018-03-29 15:06:22.322 EventSystem: reset all device statuses...
2018-03-29 15:06:22.331 EventSystem - Python: Failed dynamic library load, install the latest libpython3.x library that is available for your platform.
2018-03-29 15:06:22.331 EventSystem: Started
2018-03-29 15:06:22.331 EventSystem: Queue thread started...

Is that related to Python version?

Thank you!

Re: Python Plugin: Speedtest

Posted: Thursday 29 March 2018 15:23
by emeyedeejay
Rebooted and all up and running again - fantastic - thank you!

MIDJ

Re: Python Plugin: Speedtest

Posted: Thursday 29 March 2018 23:19
by Xorfor
:)

Re: Python Plugin: Speedtest

Posted: Sunday 15 April 2018 20:11
by capman
I have sudenly this error in my log.
internet speed.JPG
internet speed.JPG (58.74 KiB) Viewed 2855 times
Should this be a domoticz, python or plugin issue ?
I run domoticz on a synology with beta version 3.9208

edit: Now (may) version 3.9317

Re: Python Plugin: Speedtest

Posted: Sunday 15 April 2018 20:47
by andersbz
Same for me

Running on beta 3.9227 and python 3.4.2

2018-04-15 20:25:40.883 Error: (Speedtest) 'onHeartbeat' failed 'FileNotFoundError'.
2018-04-15 20:25:40.883 Error: (Speedtest) ----> Line 156 in /home/pi/domoticz/plugins/xfr_speedtest/plugin.py, function onHeartbeat
2018-04-15 20:25:40.883 Error: (Speedtest) ----> Line 105 in /home/pi/domoticz/plugins/xfr_speedtest/plugin.py, function onHeartbeat
2018-04-15 20:25:40.883 Error: (Speedtest) ----> Line 884 in /usr/lib/python3.4/subprocess.py, function __init__
2018-04-15 20:25:40.883 Error: (Speedtest) ----> Line 1457 in /usr/lib/python3.4/subprocess.py, function _execute_child

Re: Python Plugin: Speedtest

Posted: Friday 04 May 2018 22:00
by EdwinK
Me too. Although the linenumbers are a bit different
2018-05-04 21:54:06.785 Error: (SpeedTest) 'onHeartbeat' failed 'FileNotFoundError'.
2018-05-04 21:54:06.785 Error: (SpeedTest) ----> Line 156 in /home/pi/domoticz/plugins/SpeedTest/plugin.py, function onHeartbeat
2018-05-04 21:54:06.785 Error: (SpeedTest) ----> Line 105 in /home/pi/domoticz/plugins/SpeedTest/plugin.py, function onHeartbeat
2018-05-04 21:54:06.786 Error: (SpeedTest) ----> Line 701 in /usr/lib/python3.5/subprocess.py, function __init__
2018-05-04 21:54:06.786 Error: (SpeedTest) ----> Line 1282 in /usr/lib/python3.5/subprocess.py, function _execute_child

Re: Python Plugin: Speedtest

Posted: Wednesday 29 August 2018 23:36
by videodrome
Xorfor wrote: Tuesday 27 March 2018 19:18 @Ventron,

This Python plugin is using a option, which is not available in your Domoticz.
You have 2 options:

1. Update to the latest beta version of Domoticz. If you are planning to use more plugins, this is the recommended option.

or

2. Change the Speedtest plugin:
a. Open the plugin.py in an editor
b. Goto to line 177, the UpdateDevice procedure:
I prefer use the 3.8153 version, not beta or new stable? version, thanx for the tip

Re: Python Plugin: Speedtest

Posted: Wednesday 19 September 2018 10:32
by boboz2
Hello,

Thanks for the plugin but it doesn't work on my system.
You can see the log below.
SpeedTest.PNG
SpeedTest.PNG (143.71 KiB) Viewed 2214 times

Re: Python Plugin: Speedtest

Posted: Friday 21 September 2018 13:16
by Xorfor
@boboz2:
These messages are not coming from the plugin. I guess that these messages are generated by PP-Manager?

Re: Python Plugin: Speedtest

Posted: Tuesday 25 September 2018 21:08
by 1kke
Hello,

This plugin looks great, but unfortunately it's not working on my system.
I'm running Domoticz in an Alpine docker container in OMV4, I installed speedtest cli and this is working when running in the SSH terminal.
The speedtest plugin runs without error in the Domoticz log but it doesn't trigger the speedtest.

In the spoiler are the speedtest messages from Domoticz's log:
Spoiler: show
2018-09-25 20:57:04.739 (Speedtest) onHeartbeat called, run again in 28 heartbeats.
2018-09-25 20:57:14.716 (Speedtest) Pushing 'onHeartbeatCallback' on to queue
2018-09-25 20:57:14.758 (Speedtest) Processing 'onHeartbeatCallback' message
2018-09-25 20:57:14.758 (Speedtest) Calling message handler 'onHeartbeat'.
2018-09-25 20:57:14.758 (Speedtest) onHeartbeat called
2018-09-25 20:57:14.758 (Speedtest) onHeartbeat called, run again in 27 heartbeats.
2018-09-25 20:57:24.718 (Speedtest) Pushing 'onHeartbeatCallback' on to queue
2018-09-25 20:57:24.731 (Speedtest) Processing 'onHeartbeatCallback' message
2018-09-25 20:57:24.731 (Speedtest) Calling message handler 'onHeartbeat'.
2018-09-25 20:57:24.731 (Speedtest) onHeartbeat called
2018-09-25 20:57:24.731 (Speedtest) onHeartbeat called, run again in 26 heartbeats.
2018-09-25 20:57:34.720 (Speedtest) Pushing 'onHeartbeatCallback' on to queue
2018-09-25 20:57:34.755 (Speedtest) Processing 'onHeartbeatCallback' message
2018-09-25 20:57:34.755 (Speedtest) Calling message handler 'onHeartbeat'.
2018-09-25 20:57:34.755 (Speedtest) onHeartbeat called
2018-09-25 20:57:34.756 (Speedtest) onHeartbeat called, run again in 25 heartbeats.
2018-09-25 20:57:44.722 (Speedtest) Pushing 'onHeartbeatCallback' on to queue
2018-09-25 20:57:44.727 (Speedtest) Processing 'onHeartbeatCallback' message
2018-09-25 20:57:44.727 (Speedtest) Calling message handler 'onHeartbeat'.
2018-09-25 20:57:44.727 (Speedtest) onHeartbeat called
2018-09-25 20:57:44.727 (Speedtest) onHeartbeat called, run again in 24 heartbeats.
2018-09-25 20:57:54.725 (Speedtest) Pushing 'onHeartbeatCallback' on to queue
2018-09-25 20:57:54.748 (Speedtest) Processing 'onHeartbeatCallback' message
2018-09-25 20:57:54.748 (Speedtest) Calling message handler 'onHeartbeat'.
2018-09-25 20:57:54.748 (Speedtest) onHeartbeat called
2018-09-25 20:57:54.748 (Speedtest) onHeartbeat called, run again in 23 heartbeats.
2018-09-25 20:58:04.727 (Speedtest) Pushing 'onHeartbeatCallback' on to queue
2018-09-25 20:58:04.771 (Speedtest) Processing 'onHeartbeatCallback' message
2018-09-25 20:58:04.771 (Speedtest) Calling message handler 'onHeartbeat'.
2018-09-25 20:58:04.772 (Speedtest) onHeartbeat called
2018-09-25 20:58:04.772 (Speedtest) onHeartbeat called, run again in 22 heartbeats.
2018-09-25 20:58:14.729 (Speedtest) Pushing 'onHeartbeatCallback' on to queue
2018-09-25 20:58:14.744 (Speedtest) Processing 'onHeartbeatCallback' message
2018-09-25 20:58:14.744 (Speedtest) Calling message handler 'onHeartbeat'.
2018-09-25 20:58:14.744 (Speedtest) onHeartbeat called
2018-09-25 20:58:14.744 (Speedtest) onHeartbeat called, run again in 21 heartbeats.
2018-09-25 20:58:24.732 (Speedtest) Pushing 'onHeartbeatCallback' on to queue
2018-09-25 20:58:24.768 (Speedtest) Processing 'onHeartbeatCallback' message
2018-09-25 20:58:24.768 (Speedtest) Calling message handler 'onHeartbeat'.
2018-09-25 20:58:24.768 (Speedtest) onHeartbeat called
2018-09-25 20:58:24.768 (Speedtest) onHeartbeat called, run again in 20 heartbeats.
2018-09-25 20:58:34.734 (Speedtest) Pushing 'onHeartbeatCallback' on to queue
2018-09-25 20:58:34.742 (Speedtest) Processing 'onHeartbeatCallback' message
2018-09-25 20:58:34.742 (Speedtest) Calling message handler 'onHeartbeat'.
2018-09-25 20:58:34.742 (Speedtest) onHeartbeat called
2018-09-25 20:58:34.742 (Speedtest) onHeartbeat called, run again in 19 heartbeats.
2018-09-25 20:58:44.736 (Speedtest) Pushing 'onHeartbeatCallback' on to queue
2018-09-25 20:58:44.768 (Speedtest) Processing 'onHeartbeatCallback' message
2018-09-25 20:58:44.768 (Speedtest) Calling message handler 'onHeartbeat'.
2018-09-25 20:58:44.769 (Speedtest) onHeartbeat called
2018-09-25 20:58:44.769 (Speedtest) onHeartbeat called, run again in 18 heartbeats.
2018-09-25 20:58:54.738 (Speedtest) Pushing 'onHeartbeatCallback' on to queue
2018-09-25 20:58:54.774 (Speedtest) Processing 'onHeartbeatCallback' message
2018-09-25 20:58:54.774 (Speedtest) Calling message handler 'onHeartbeat'.
2018-09-25 20:58:54.774 (Speedtest) onHeartbeat called
2018-09-25 20:58:54.774 (Speedtest) onHeartbeat called, run again in 17 heartbeats.
2018-09-25 20:59:04.741 (Speedtest) Pushing 'onHeartbeatCallback' on to queue
2018-09-25 20:59:04.747 (Speedtest) Processing 'onHeartbeatCallback' message
2018-09-25 20:59:04.747 (Speedtest) Calling message handler 'onHeartbeat'.
2018-09-25 20:59:04.747 (Speedtest) onHeartbeat called
2018-09-25 20:59:04.748 (Speedtest) onHeartbeat called, run again in 16 heartbeats.
2018-09-25 20:59:14.743 (Speedtest) Pushing 'onHeartbeatCallback' on to queue
2018-09-25 20:59:14.768 (Speedtest) Processing 'onHeartbeatCallback' message
2018-09-25 20:59:14.768 (Speedtest) Calling message handler 'onHeartbeat'.
2018-09-25 20:59:14.768 (Speedtest) onHeartbeat called
2018-09-25 20:59:14.768 (Speedtest) onHeartbeat called, run again in 15 heartbeats.
2018-09-25 20:59:24.745 (Speedtest) Pushing 'onHeartbeatCallback' on to queue
2018-09-25 20:59:24.791 (Speedtest) Processing 'onHeartbeatCallback' message
2018-09-25 20:59:24.791 (Speedtest) Calling message handler 'onHeartbeat'.
2018-09-25 20:59:24.791 (Speedtest) onHeartbeat called
2018-09-25 20:59:24.791 (Speedtest) onHeartbeat called, run again in 14 heartbeats.
2018-09-25 20:59:34.747 (Speedtest) Pushing 'onHeartbeatCallback' on to queue
2018-09-25 20:59:34.763 (Speedtest) Processing 'onHeartbeatCallback' message
2018-09-25 20:59:34.763 (Speedtest) Calling message handler 'onHeartbeat'.
2018-09-25 20:59:34.763 (Speedtest) onHeartbeat called
2018-09-25 20:59:34.763 (Speedtest) onHeartbeat called, run again in 13 heartbeats.
2018-09-25 20:59:44.749 (Speedtest) Pushing 'onHeartbeatCallback' on to queue
2018-09-25 20:59:44.784 (Speedtest) Processing 'onHeartbeatCallback' message
2018-09-25 20:59:44.784 (Speedtest) Calling message handler 'onHeartbeat'.
2018-09-25 20:59:44.784 (Speedtest) onHeartbeat called
2018-09-25 20:59:44.784 (Speedtest) onHeartbeat called, run again in 12 heartbeats.
2018-09-25 20:59:54.751 (Speedtest) Pushing 'onHeartbeatCallback' on to queue
2018-09-25 20:59:54.752 (Speedtest) Processing 'onHeartbeatCallback' message
2018-09-25 20:59:54.752 (Speedtest) Calling message handler 'onHeartbeat'.
2018-09-25 20:59:54.752 (Speedtest) onHeartbeat called
2018-09-25 20:59:54.752 (Speedtest) onHeartbeat called, run again in 11 heartbeats.
2018-09-25 21:00:04.753 (Speedtest) Pushing 'onHeartbeatCallback' on to queue
2018-09-25 21:00:04.772 (Speedtest) Processing 'onHeartbeatCallback' message
2018-09-25 21:00:04.772 (Speedtest) Calling message handler 'onHeartbeat'.
2018-09-25 21:00:04.772 (Speedtest) onHeartbeat called
2018-09-25 21:00:04.772 (Speedtest) onHeartbeat called, run again in 10 heartbeats.
2018-09-25 21:00:14.755 (Speedtest) Pushing 'onHeartbeatCallback' on to queue
2018-09-25 21:00:14.793 (Speedtest) Processing 'onHeartbeatCallback' message
2018-09-25 21:00:14.793 (Speedtest) Calling message handler 'onHeartbeat'.
2018-09-25 21:00:14.793 (Speedtest) onHeartbeat called
2018-09-25 21:00:14.793 (Speedtest) onHeartbeat called, run again in 9 heartbeats.
2018-09-25 21:00:24.757 (Speedtest) Pushing 'onHeartbeatCallback' on to queue
2018-09-25 21:00:24.766 (Speedtest) Processing 'onHeartbeatCallback' message
2018-09-25 21:00:24.766 (Speedtest) Calling message handler 'onHeartbeat'.
2018-09-25 21:00:24.766 (Speedtest) onHeartbeat called
2018-09-25 21:00:24.766 (Speedtest) onHeartbeat called, run again in 8 heartbeats.
2018-09-25 21:00:34.760 (Speedtest) Pushing 'onHeartbeatCallback' on to queue
2018-09-25 21:00:34.791 (Speedtest) Processing 'onHeartbeatCallback' message
2018-09-25 21:00:34.791 (Speedtest) Calling message handler 'onHeartbeat'.
2018-09-25 21:00:34.791 (Speedtest) onHeartbeat called
2018-09-25 21:00:34.791 (Speedtest) onHeartbeat called, run again in 7 heartbeats.
2018-09-25 21:00:44.762 (Speedtest) Pushing 'onHeartbeatCallback' on to queue
2018-09-25 21:00:44.765 (Speedtest) Processing 'onHeartbeatCallback' message
2018-09-25 21:00:44.765 (Speedtest) Calling message handler 'onHeartbeat'.
2018-09-25 21:00:44.765 (Speedtest) onHeartbeat called
2018-09-25 21:00:44.765 (Speedtest) onHeartbeat called, run again in 6 heartbeats.
2018-09-25 21:00:54.764 (Speedtest) Pushing 'onHeartbeatCallback' on to queue
2018-09-25 21:00:54.785 (Speedtest) Processing 'onHeartbeatCallback' message
2018-09-25 21:00:54.785 (Speedtest) Calling message handler 'onHeartbeat'.
2018-09-25 21:00:54.786 (Speedtest) onHeartbeat called
2018-09-25 21:00:54.786 (Speedtest) onHeartbeat called, run again in 5 heartbeats.
2018-09-25 21:01:04.766 (Speedtest) Pushing 'onHeartbeatCallback' on to queue
2018-09-25 21:01:04.809 (Speedtest) Processing 'onHeartbeatCallback' message
2018-09-25 21:01:04.809 (Speedtest) Calling message handler 'onHeartbeat'.
2018-09-25 21:01:04.810 (Speedtest) onHeartbeat called
2018-09-25 21:01:04.810 (Speedtest) onHeartbeat called, run again in 4 heartbeats.
2018-09-25 21:01:14.768 (Speedtest) Pushing 'onHeartbeatCallback' on to queue
2018-09-25 21:01:14.780 (Speedtest) Processing 'onHeartbeatCallback' message
2018-09-25 21:01:14.780 (Speedtest) Calling message handler 'onHeartbeat'.
2018-09-25 21:01:14.781 (Speedtest) onHeartbeat called
2018-09-25 21:01:14.781 (Speedtest) onHeartbeat called, run again in 3 heartbeats.
2018-09-25 21:01:24.771 (Speedtest) Pushing 'onHeartbeatCallback' on to queue
2018-09-25 21:01:24.804 (Speedtest) Processing 'onHeartbeatCallback' message
2018-09-25 21:01:24.804 (Speedtest) Calling message handler 'onHeartbeat'.
2018-09-25 21:01:24.804 (Speedtest) onHeartbeat called
2018-09-25 21:01:24.805 (Speedtest) onHeartbeat called, run again in 2 heartbeats.
2018-09-25 21:01:34.773 (Speedtest) Pushing 'onHeartbeatCallback' on to queue
2018-09-25 21:01:34.779 (Speedtest) Processing 'onHeartbeatCallback' message
2018-09-25 21:01:34.780 (Speedtest) Calling message handler 'onHeartbeat'.
2018-09-25 21:01:34.780 (Speedtest) onHeartbeat called
2018-09-25 21:01:34.780 (Speedtest) onHeartbeat called, run again in 1 heartbeats.
2018-09-25 21:01:44.775 (Speedtest) Pushing 'onHeartbeatCallback' on to queue
2018-09-25 21:01:44.801 (Speedtest) Processing 'onHeartbeatCallback' message
2018-09-25 21:01:44.802 (Speedtest) Calling message handler 'onHeartbeat'.
2018-09-25 21:01:44.802 (Speedtest) onHeartbeat called
2018-09-25 21:01:54.778 (Speedtest) Pushing 'onHeartbeatCallback' on to queue
2018-09-25 21:01:54.825 (Speedtest) Processing 'onHeartbeatCallback' message
2018-09-25 21:01:54.825 (Speedtest) Calling message handler 'onHeartbeat'.
2018-09-25 21:01:54.825 (Speedtest) onHeartbeat called
2018-09-25 21:01:54.826 (Speedtest) onHeartbeat called, run again in 359 heartbeats.
2018-09-25 21:02:04.780 (Speedtest) Pushing 'onHeartbeatCallback' on to queue
2018-09-25 21:02:04.800 (Speedtest) Processing 'onHeartbeatCallback' message
2018-09-25 21:02:04.800 (Speedtest) Calling message handler 'onHeartbeat'.
2018-09-25 21:02:04.800 (Speedtest) onHeartbeat called
2018-09-25 21:02:04.800 (Speedtest) onHeartbeat called, run again in 358 heartbeats.
Somehow there was something wrong with my speedtest-cli, but there's another speedtest in my container (speedtest without -cli)
Changed _COMMAND = "speedtest-cli" in _COMMAND = "speedtest" in the Plugin.py and it's working.


kr.,
1kke

Re: Python Plugin: Speedtest

Posted: Thursday 29 November 2018 8:58
by jeroenkl
capman wrote: Sunday 15 April 2018 20:11 I have sudenly this error in my log.
internet speed.JPG
Should this be a domoticz, python or plugin issue ?
I run domoticz on a synology with beta version 3.9208

edit: Now (may) version 3.9317
Exactly the same for me. Latest beta on Synology. Other python plugins are working fine.
Anyone with a fix available?

Re: Python Plugin: Speedtest

Posted: Wednesday 14 April 2021 11:36
by berserk
hi,

i have a problem with the plugin. Since 1 week the plugin doesn't work. Python with lib is ok. Script lua was enable.

speedtest-cli --single work perfectly:

Code: Select all

Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by KEYYO (Paris) [1.88 km]: 89.427 ms
Testing download speed................................................................................
Download: 7.88 Mbit/s
Testing upload speed................................................................................................
Upload: 6.91 Mbit/s
But

Code: Select all

2021-04-14 11:34:07.565 (internet) onHeartbeat called
2021-04-14 11:34:07.565 (internet) onHeartbeat called, run again in 340 heartbeats.
2021-04-14 11:34:17.529 (internet) Pushing 'onHeartbeatCallback' on to queue
2021-04-14 11:34:17.534 (internet) Processing 'onHeartbeatCallback' message
2021-04-14 11:34:17.534 (internet) Calling message handler 'onHeartbeat'.
2021-04-14 11:34:17.534 (internet) onHeartbeat called
2021-04-14 11:34:17.534 (internet) onHeartbeat called, run again in 339 heartbeats.
2021-04-14 11:34:27.530 (internet) Pushing 'onHeartbeatCallback' on to queue
2021-04-14 11:34:27.563 (internet) Processing 'onHeartbeatCallback' message
2021-04-14 11:34:27.563 (internet) Calling message handler 'onHeartbeat'.
2021-04-14 11:34:27.563 (internet) onHeartbeat called
2021-04-14 11:34:27.564 (internet) onHeartbeat called, run again in 338 heartbeats.
2021-04-14 11:34:37.532 (internet) Pushing 'onHeartbeatCallback' on to queue
2021-04-14 11:34:37.582 (internet) Processing 'onHeartbeatCallback' message
2021-04-14 11:34:37.582 (internet) Calling message handler 'onHeartbeat'.
2021-04-14 11:34:37.582 (internet) onHeartbeat called
2021-04-14 11:34:37.582 (internet) onHeartbeat called, run again in 337 heartbeats.
2021-04-14 11:34:47.534 (internet) Pushing 'onHeartbeatCallback' on to queue
2021-04-14 11:34:47.550 (internet) Processing 'onHeartbeatCallback' message
2021-04-14 11:34:47.550 (internet) Calling message handler 'onHeartbeat'.
2021-04-14 11:34:47.550 (internet) onHeartbeat called
2021-04-14 11:34:47.550 (internet) onHeartbeat called, run again in 336 heartbeats.
2021-04-14 11:34:57.536 (internet) Pushing 'onHeartbeatCallback' on to queue
2021-04-14 11:34:57.568 (internet) Processing 'onHeartbeatCallback' message
2021-04-14 11:34:57.568 (internet) Calling message handler 'onHeartbeat'.
2021-04-14 11:34:57.568 (internet) onHeartbeat called
2021-04-14 11:34:57.568 (internet) onHeartbeat called, run again in 335 heartbeats.
2021-04-14 11:35:07.538 (internet) Pushing 'onHeartbeatCallback' on to queue
2021-04-14 11:35:07.568 (internet) Processing 'onHeartbeatCallback' message
2021-04-14 11:35:07.568 (internet) Calling message handler 'onHeartbeat'.
2021-04-14 11:35:07.568 (internet) onHeartbeat called
2021-04-14 11:35:07.568 (internet) onHeartbeat called, run again in 334 heartbeats.
I have no idea...... Sorry for my basic english.


Best regard

Re: Python Plugin: Speedtest

Posted: Saturday 17 April 2021 13:20
by jeroen1985
i run domoticz on nuc and debian 10 and i had the same issue so i uninstall speedtest.cli en restart and again installing speedtest.cli