Python Plugin: PiMonitor Topic is solved
Moderator: leecollings
- Solderbro
- Posts: 80
- Joined: Tuesday 18 September 2018 15:50
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.1
- Location: Hamburg, Germany
- Contact:
Re: Python Plugin: PiMonitor
Hello,
maybe this is related to raspbian buster stable. On every cold start or reboot i got a mail and found this in the log.
2019-07-22 17:41:50.351 Error: (RPI_Monitor) 'onStart' failed 'KeyError'.
2019-07-22 17:41:50.351 Error: (RPI_Monitor) ----> Line 332 in '/home/pi/domoticz/plugins/Domoticz-PiMonitor-Plugin/plugin.py'
2019-07-22 17:41:50.351 Error: (RPI_Monitor) ----> Line 154 in '/home/pi/domoticz/plugins/Domoticz-PiMonitor-Plugin/plugin.py'
These python packages are installed:
pi@domosys:~ $ dpkg -l python* | grep ii
ii python 2.7.16-1 armhf interactive high-level object-oriented language (Python2 version)
ii python-apt-common 1.8.4 all Python interface to libapt-pkg (locales)
ii python-minimal 2.7.16-1 armhf minimal subset of the Python2 language
ii python-rpi.gpio 0.7.0~buster-1 armhf Python GPIO module for Raspberry Pi
ii python-smbus:armhf 4.1-1 armhf Python bindings for Linux SMBus access through i2c-dev
ii python2 2.7.16-1 armhf interactive high-level object-oriented language (Python2 version)
ii python2-minimal 2.7.16-1 armhf minimal subset of the Python2 language
ii python2.7 2.7.16-2 armhf Interactive high-level object-oriented language (version 2.7)
ii python2.7-minimal 2.7.16-2 armhf Minimal subset of the Python language (version 2.7)
ii python3 3.7.3-1 armhf interactive high-level object-oriented language (default python3 version)
ii python3-apt 1.8.4 armhf Python 3 interface to libapt-pkg
ii python3-certifi 2018.8.24-1 all root certificates for validating SSL certs and verifying TLS hosts (python3)
ii python3-chardet 3.0.4-3 all universal character encoding detector for Python3
ii python3-debconf 1.5.71 all interact with debconf from Python 3
ii python3-dev 3.7.3-1 armhf header files and a static library for Python (default)
ii python3-distutils 3.7.3-1 all distutils package for Python 3.x
ii python3-gi 3.30.4-1 armhf Python 3 bindings for gobject-introspection libraries
ii python3-idna 2.6-1 all Python IDNA2008 (RFC 5891) handling (Python 3)
ii python3-lib2to3 3.7.3-1 all Interactive high-level object-oriented language (2to3, version 3.6)
ii python3-minimal 3.7.3-1 armhf minimal subset of the Python language (default python3 version)
ii python3-pkg-resources 40.8.0-1 all Package Discovery and Resource Access using pkg_resources
ii python3-requests 2.21.0-1 all elegant and simple HTTP library for Python3, built for human beings
ii python3-six 1.12.0-1 all Python 2 and 3 compatibility library (Python 3 interface)
ii python3-urllib3 1.24.1-1 all HTTP library with thread-safe connection pooling for Python3
ii python3.7 3.7.3-2 armhf Interactive high-level object-oriented language (version 3.7)
ii python3.7-dev 3.7.3-2 armhf Header files and a static library for Python (v3.7)
ii python3.7-minimal 3.7.3-2 armhf Minimal subset of the Python language (version 3.7)
Is it a problem that 2.7 and 3.7 is installed?
Solderbro
maybe this is related to raspbian buster stable. On every cold start or reboot i got a mail and found this in the log.
2019-07-22 17:41:50.351 Error: (RPI_Monitor) 'onStart' failed 'KeyError'.
2019-07-22 17:41:50.351 Error: (RPI_Monitor) ----> Line 332 in '/home/pi/domoticz/plugins/Domoticz-PiMonitor-Plugin/plugin.py'
2019-07-22 17:41:50.351 Error: (RPI_Monitor) ----> Line 154 in '/home/pi/domoticz/plugins/Domoticz-PiMonitor-Plugin/plugin.py'
These python packages are installed:
pi@domosys:~ $ dpkg -l python* | grep ii
ii python 2.7.16-1 armhf interactive high-level object-oriented language (Python2 version)
ii python-apt-common 1.8.4 all Python interface to libapt-pkg (locales)
ii python-minimal 2.7.16-1 armhf minimal subset of the Python2 language
ii python-rpi.gpio 0.7.0~buster-1 armhf Python GPIO module for Raspberry Pi
ii python-smbus:armhf 4.1-1 armhf Python bindings for Linux SMBus access through i2c-dev
ii python2 2.7.16-1 armhf interactive high-level object-oriented language (Python2 version)
ii python2-minimal 2.7.16-1 armhf minimal subset of the Python2 language
ii python2.7 2.7.16-2 armhf Interactive high-level object-oriented language (version 2.7)
ii python2.7-minimal 2.7.16-2 armhf Minimal subset of the Python language (version 2.7)
ii python3 3.7.3-1 armhf interactive high-level object-oriented language (default python3 version)
ii python3-apt 1.8.4 armhf Python 3 interface to libapt-pkg
ii python3-certifi 2018.8.24-1 all root certificates for validating SSL certs and verifying TLS hosts (python3)
ii python3-chardet 3.0.4-3 all universal character encoding detector for Python3
ii python3-debconf 1.5.71 all interact with debconf from Python 3
ii python3-dev 3.7.3-1 armhf header files and a static library for Python (default)
ii python3-distutils 3.7.3-1 all distutils package for Python 3.x
ii python3-gi 3.30.4-1 armhf Python 3 bindings for gobject-introspection libraries
ii python3-idna 2.6-1 all Python IDNA2008 (RFC 5891) handling (Python 3)
ii python3-lib2to3 3.7.3-1 all Interactive high-level object-oriented language (2to3, version 3.6)
ii python3-minimal 3.7.3-1 armhf minimal subset of the Python language (default python3 version)
ii python3-pkg-resources 40.8.0-1 all Package Discovery and Resource Access using pkg_resources
ii python3-requests 2.21.0-1 all elegant and simple HTTP library for Python3, built for human beings
ii python3-six 1.12.0-1 all Python 2 and 3 compatibility library (Python 3 interface)
ii python3-urllib3 1.24.1-1 all HTTP library with thread-safe connection pooling for Python3
ii python3.7 3.7.3-2 armhf Interactive high-level object-oriented language (version 3.7)
ii python3.7-dev 3.7.3-2 armhf Header files and a static library for Python (v3.7)
ii python3.7-minimal 3.7.3-2 armhf Minimal subset of the Python language (version 3.7)
Is it a problem that 2.7 and 3.7 is installed?
Solderbro
Raspi 3B+RTC, SSD 128GB, Aeotec Gen5, Eurotronic SpiritZ, Fibaro FRGBW, Zipato PIR, Everspring AN180, Neo Coolcam Plug, Fibaro FGMS, Neo Coolcam Doorsensor, Popp Z-Weather
Re: Python Plugin: PiMonitor
@Solderbro
The has nothing to do with the raspbian buster or Python versions. In the past I had the same problem, and is related to the name of the images. Probably this name gives a problem in Domoticz. It gives only an error at startup, but your devices will work.
Are you using the latest version of PiMonitor?
The
Code: Select all
onStart' failed 'KeyError'.
Are you using the latest version of PiMonitor?
- Solderbro
- Posts: 80
- Joined: Tuesday 18 September 2018 15:50
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.1
- Location: Hamburg, Germany
- Contact:
Re: Python Plugin: PiMonitor
Yes after the error everything else look fine. Using the version from 19. of july what seems to be the lastest one.
Thanks
Solderbro
Thanks
Solderbro
Raspi 3B+RTC, SSD 128GB, Aeotec Gen5, Eurotronic SpiritZ, Fibaro FRGBW, Zipato PIR, Everspring AN180, Neo Coolcam Plug, Fibaro FGMS, Neo Coolcam Doorsensor, Popp Z-Weather
-
- Posts: 7
- Joined: Thursday 11 July 2019 7:50
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.1
- Location: Poland
- Contact:
Re: Python Plugin: PiMonitor
Hi everybody
I have the same problem:
Raspian Buster
Python 3.7.3
I have the same problem:
Domoticz V4.107172019-07-22 17:41:50.351 Error: (RPI_Monitor) 'onStart' failed 'KeyError'.
2019-07-22 17:41:50.351 Error: (RPI_Monitor) ----> Line 332 in '/home/pi/domoticz/plugins/Domoticz-PiMonitor-Plugin/plugin.py'
2019-07-22 17:41:50.351 Error: (RPI_Monitor) ----> Line 154 in '/home/pi/domoticz/plugins/Domoticz-PiMonitor-Plugin/plugin.py'
Raspian Buster
Python 3.7.3
Re: Python Plugin: PiMonitor
This is only at startup of the plugin. It has to do with loading the images. I didn't find a reason why Domoticz gives this message and I can not reproduce this on my RPi. But you will see that you only gets this message once and that the plugin works fine.
Code: Select all
onStart' failed 'KeyError'
-
- Posts: 3
- Joined: Sunday 27 January 2019 9:54
- Target OS: Linux
- Domoticz version:
- Contact:
Re: Python Plugin: PiMonitor
I modify plugin.py in line 152 -164, and it run OK!elpaul wrote: ↑Wednesday 14 August 2019 15:58 Hi everybody
I have the same problem:Domoticz V4.107172019-07-22 17:41:50.351 Error: (RPI_Monitor) 'onStart' failed 'KeyError'.
2019-07-22 17:41:50.351 Error: (RPI_Monitor) ----> Line 332 in '/home/pi/domoticz/plugins/Domoticz-PiMonitor-Plugin/plugin.py'
2019-07-22 17:41:50.351 Error: (RPI_Monitor) ----> Line 154 in '/home/pi/domoticz/plugins/Domoticz-PiMonitor-Plugin/plugin.py'
Raspian Buster
Python 3.7.3
Code: Select all
# if "xfrpimonitor" not in Images:
# Domoticz.Image("xfrpimonitor.zip").Create()
# image = Images["xfrpimonitor"].ID
# Domoticz.Debug("Image created. ID: "+str(image))
# Create devices
if len(Devices) == 0:
for unit in self.__UNITS:
Domoticz.Device(Unit=unit[0],
Name=unit[1],
Type=unit[2],
Subtype=unit[3],
Options=unit[4],
Used=unit[5]).Create()
-
- Posts: 65
- Joined: Friday 06 December 2019 14:23
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.1
- Contact:
Re: Python Plugin: PiMonitor
I installed it without problems on a PiZero where my Domoticz is running on presently.
What I find strange is that I see 17 tiles in the Utility screen but only 7 devices in the setup-device screen.
Furthermore I see (after a wile) this error message
How come?
What I find strange is that I see 17 tiles in the Utility screen but only 7 devices in the setup-device screen.
Furthermore I see (after a wile) this error message
Code: Select all
2019-12-08 15:53:33.302 Error: Pi hardware (12) thread seems to have ended unexpectedly
Re: Python Plugin: PiMonitor
Hello
Could we imagine adding a switch to monitor latency to the router (for example) ?
Could we imagine adding a switch to monitor latency to the router (for example) ?
Re: Python Plugin: PiMonitor
Added device to monitor latency. The plugin will try to find the gateway, will send a ping to the gateway and retrieves the latency time.
Re: Python Plugin: PiMonitor
Hi,
I've installed domoticz-remote-Pi-Monitor on my pi and the plugin on my domoticz server.
In domoticz i've put the ip of the other pi and in the remote pi, i've put the ip of my domoticz server.
Then i get this message:
I've installed domoticz-remote-Pi-Monitor on my pi and the plugin on my domoticz server.
In domoticz i've put the ip of the other pi and in the remote pi, i've put the ip of my domoticz server.
Then i get this message:
Any idea what's wrong ?15:06:35.513 Error: (PiReMonitor) 'onHeartbeat' failed 'ConnectionRefusedError'.
2020-01-23 15:06:35.513 Error: (PiReMonitor) ----> Line 295 in '/home/pi/domoticz/plugins/domoticz-remote-Pi-Monitor/plugin.py', function onHeartbeat
2020-01-23 15:06:35.513 Error: (PiReMonitor) ----> Line 154 in '/home/pi/domoticz/plugins/domoticz-remote-Pi-Monitor/plugin.py', function onHeartbeat
-
- Posts: 49
- Joined: Thursday 31 March 2016 20:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Python Plugin: PiMonitor
Ik recently got these errors in my log:
No clue how to solve it though, can anyone give me some pointers?
Code: Select all
2020-05-05 12:29:27.907 Error: (PiMonitor) 'onHeartbeat' failed 'TypeError':''NoneType' object is not subscriptable'.
2020-05-05 12:29:27.907 Error: (PiMonitor) ----> Line 382 in '/home/pi/domoticz/plugins/xfr-pimonitor/plugin.py', function onHeartbeat
2020-05-05 12:29:27.907 Error: (PiMonitor) ----> Line 304 in '/home/pi/domoticz/plugins/xfr-pimonitor/plugin.py', function onHeartbeat
Pi3 Domoticz | RFXcom 433E | KAKU/COCO |Harmony Hub | Samsung TV | HS100 | HS110| HUE | Tradfri | Tado| Xiaomi |sensors | scripts| Pi3 Node Red | Pi2 SDS_011 + MH-Z19B | PiAware (zero) | Pi2 breadboard with Node red and Domoticz
-
- Posts: 170
- Joined: Monday 22 January 2018 21:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: PiMonitor
Did you update to the most recent version of Pimonitor?
Domoticz beta, on Raspberry Pi 3B, Raspian Buster
Zwave, Zigate, RFlink etc.
Zwave, Zigate, RFlink etc.
-
- Posts: 238
- Joined: Tuesday 18 August 2020 8:41
- Target OS: NAS (Synology & others)
- Domoticz version: 2021.1
- Location: NL
- Contact:
Re: Python Plugin: PiMonitor
Hi, it looks like that this plugin is no longer maintained.. too bad
https://github.com/Xorfor/Domoticz-PiMonitor-Plugin
But I found an other one based on the above plugin, which even does exactly what I want: monitoring of a remote Rpi (which runs Pi-Hole)
https://github.com/JVaassen/domoticz-remote-Pi-Monitor
But as I'm a kind of noob regarding Rpi and the installation of packages, I'm kind of stuck how to install this plugin.
How do I do these steps:
1.Install the python script in /usr/bin on remote server.
2.Install piremotemonitor in /etc/init.d on remote server.
The domoticz part I get ( i hope so) for installing on my Synology I have to do:
#cd /volume1/@appstore/domoticz/var/plugins
#sudo git clone https://github.com/JVaassen/domoticz-re ... onitor.git
restart domoticz via synology webGUI
Or do I first have to install the PiMonitor itself as well?
Anybody here who can help me a little bit?
https://github.com/Xorfor/Domoticz-PiMonitor-Plugin
But I found an other one based on the above plugin, which even does exactly what I want: monitoring of a remote Rpi (which runs Pi-Hole)
https://github.com/JVaassen/domoticz-remote-Pi-Monitor
But as I'm a kind of noob regarding Rpi and the installation of packages, I'm kind of stuck how to install this plugin.
How do I do these steps:
1.Install the python script in /usr/bin on remote server.
2.Install piremotemonitor in /etc/init.d on remote server.
The domoticz part I get ( i hope so) for installing on my Synology I have to do:
#cd /volume1/@appstore/domoticz/var/plugins
#sudo git clone https://github.com/JVaassen/domoticz-re ... onitor.git
restart domoticz via synology webGUI
Or do I first have to install the PiMonitor itself as well?
Anybody here who can help me a little bit?
Domoticz beta | Dashticz beta | Synology DS415+ | Wall tablet Teclast 11.6inch (Android) | TADO v3 controlled heating
-
- Posts: 238
- Joined: Tuesday 18 August 2020 8:41
- Target OS: NAS (Synology & others)
- Domoticz version: 2021.1
- Location: NL
- Contact:
Re: Python Plugin: PiMonitor
I have installed the PiRemoteMonitor according to the steps described.
But after restarting domoticz I see an error:
2021-01-21 12:11:34.295 Status: (PiRemoteMonitor) Started.
2021-01-21 12:11:34.390 Error: (jva_pimonitor) failed to load 'plugin.py', Python Path used was '/usr/local/domoticz/var/plugins/domoticz-remote-Pi-Monitor/:/var/packages/py3k/target/usr/local/lib/python38.zip:/var/packages/py3k/target/usr/local/lib/python3.8:/var/packages/py3k/target/usr/local/lib/python3.8/lib-dynload:/var/packages/py3k/target/usr/local/lib/python3.8/site-packages'.
2021-01-21 12:11:34.391 Error: (PiRemoteMonitor) Module Import failed, exception: 'ModuleNotFoundError'
2021-01-21 12:11:34.391 Error: (PiRemoteMonitor) Module Import failed: ' Name: lxml'
2021-01-21 12:11:34.391 Error: (PiRemoteMonitor) Error Line details not available.
The log file /var/log/PiRemoteMonitor.log (found on the Pi remote server) does not show any error.
Show somehow the lxml module is not working on my synology.
On my synology when running:
# python3 -m pip install python3-lxml
ERROR: Could not find a version that satisfies the requirement python3-lxml
ERROR: No matching distribution found for python3-lxml
On my synology the follwoing does not work:
sudo apt-get install python3-lxml
Not have found a sollution for this yet.
But after restarting domoticz I see an error:
2021-01-21 12:11:34.295 Status: (PiRemoteMonitor) Started.
2021-01-21 12:11:34.390 Error: (jva_pimonitor) failed to load 'plugin.py', Python Path used was '/usr/local/domoticz/var/plugins/domoticz-remote-Pi-Monitor/:/var/packages/py3k/target/usr/local/lib/python38.zip:/var/packages/py3k/target/usr/local/lib/python3.8:/var/packages/py3k/target/usr/local/lib/python3.8/lib-dynload:/var/packages/py3k/target/usr/local/lib/python3.8/site-packages'.
2021-01-21 12:11:34.391 Error: (PiRemoteMonitor) Module Import failed, exception: 'ModuleNotFoundError'
2021-01-21 12:11:34.391 Error: (PiRemoteMonitor) Module Import failed: ' Name: lxml'
2021-01-21 12:11:34.391 Error: (PiRemoteMonitor) Error Line details not available.
The log file /var/log/PiRemoteMonitor.log (found on the Pi remote server) does not show any error.
Show somehow the lxml module is not working on my synology.
On my synology when running:
# python3 -m pip install python3-lxml
ERROR: Could not find a version that satisfies the requirement python3-lxml
ERROR: No matching distribution found for python3-lxml
On my synology the follwoing does not work:
sudo apt-get install python3-lxml
Not have found a sollution for this yet.
Domoticz beta | Dashticz beta | Synology DS415+ | Wall tablet Teclast 11.6inch (Android) | TADO v3 controlled heating
Who is online
Users browsing this forum: Google [Bot] and 1 guest