Page 3 of 4
Re: Python Plugin: PiMonitor
Posted: Sunday 25 March 2018 22:31
by McMelloW
No errors after the update to v3.9054. Good job
Re: Python Plugin: PiMonitor
Posted: Sunday 25 March 2018 22:35
by Xorfor
McMelloW wrote: ↑Sunday 25 March 2018 22:31
No errors after the update to v3.9054. Good job
Thnx

!!!
Re: Python Plugin: PiMonitor
Posted: Friday 30 March 2018 11:26
by McMelloW
When you change the icons of some devices to another one then the PiMonitors' original. You will receive the errors again after a restart of Domoticz, but only once.
Code: Select all
2018-03-30 11:15:08.631 Error: (RPi Monitor) 'onStart' failed 'KeyError'.
2018-03-30 11:15:08.631 Error: (RPi Monitor) ----> Line 164 in /home/pi/domoticz/plugins/PiMonitor/plugin.py, function onStart
2018-03-30 11:15:08.631 Error: (RPi Monitor) ----> Line 59 in /home/pi/domoticz/plugins/PiMonitor/plugin.py, function onStart
It is not surprising. Replace the icons with the originals again the errors don't appears with a restart of Domoticz.
So there is something sensitive about the way you handle the icons. But this is just a cosmetic issue
Re: Python Plugin: PiMonitor
Posted: Saturday 14 April 2018 17:49
by pigloox
Hello
Is it possible to include the monitoring of another raspberry present on the network as with the Jeedom plugin?
Is this possibility studied or will not be develloped?
Re: Python Plugin: PiMonitor
Posted: Tuesday 17 July 2018 23:13
by waaren
@Xorfor,
I use this plugin on my Pi systems and it is working great. I have a feature request to add another virtual sensor that shows the amount of memory used by domoticz.
I am no linux expert, so not sure it will give an accurate result but found
Code: Select all
sudo pmap $(cat /var/run/domoticz.pid) | grep total
as a method to get the amount of memory in use by domoticz.
Re: Python Plugin: PiMonitor
Posted: Thursday 19 July 2018 23:21
by Xorfor
@waaren
I use this plugin on my Pi systems and it is working great. I have a feature request to add another virtual sensor that shows the amount of memory used by domoticz.
Under investigation

Re: Python Plugin: PiMonitor
Posted: Thursday 08 November 2018 15:32
by DarkG
Can you add Voltage to the Plugin?
Re: Python Plugin: PiMonitor
Posted: Thursday 08 November 2018 22:42
by Xorfor
waaren wrote: ↑Tuesday 17 July 2018 23:13
I have a feature request to add another virtual sensor that shows the amount of memory used by domoticz.
Done
Re: Python Plugin: PiMonitor
Posted: Thursday 08 November 2018 22:43
by Xorfor
DarkG wrote: ↑Thursday 08 November 2018 15:32
Can you add Voltage to the Plugin?
Done
Re: Python Plugin: PiMonitor
Posted: Thursday 08 November 2018 22:48
by Xorfor
Version 2.0.0 is out
- Fixed loading images (hopefully)
- Added memory usage Domoticz
- Reformatting code, for better maintenance
Re: Python Plugin: PiMonitor
Posted: Monday 17 December 2018 19:41
by RueDesButtes
@Xorfor
Thank you for this plugin, it works fine on my RPIB3+,
Can you add the get_throttled command to your plugin?
I have many problems with the PSU,
I tried to update your plugin, but my knowledge on python is null.
If needed, It is used in the following python projects:
Regards
Re: Python Plugin: PiMonitor
Posted: Saturday 22 December 2018 21:33
by Xorfor
RueDesButtes wrote: ↑Monday 17 December 2018 19:41
Can you add the get_throttled command to your plugin?
I added the Throttled device. But I am not able to test this

. Please let me know whether this is what you want.
Re: Python Plugin: PiMonitor
Posted: Sunday 23 December 2018 9:56
by qwerk
SOLVED: I removed the plugin and icon again
allowed new devices for 5 minutes and installed PiMonitor.
Et Voila: I have devices.
posting.php?mode=edit&f=65&p=201229#
HI, I just tried to install the plugin.
running on a RPI 3 version 4.10301
downloaded and installed the latest plugin, and restarted domoticz.
the plugin does add the icons, but does not add any devices.
I tried a few times, removed plugin and icons, also py cache directory.
please advice
Qwerk
Re: Python Plugin: PiMonitor
Posted: Monday 07 January 2019 11:02
by RueDesButtes
Xorfor wrote: ↑Saturday 22 December 2018 21:33
RueDesButtes wrote: ↑Monday 17 December 2018 19:41
Can you add the get_throttled command to your plugin?
I added the Throttled device. But I am not able to test this

. Please let me know whether this is what you want.
Hello thank you.
Just updated,
So for it returns only 0, has I had not faced undervoltage since the update.
does the following will always return "0"?
Code: Select all
def vcgencmd(option):
if option in options:
cmd = "/opt/vc/bin/vcgencmd {}".format(option)
Domoticz.Debug("cmd: {}".format(cmd))
try:
res = os.popen(cmd).readline()
Domoticz.Debug("res: {}".format(res))
res = res.replace("{}=".format(options[option][0]), "")
res = res.replace("{}\n".format(options[option][1]), "")
Domoticz.Debug("res (replaced): {}".format(res))
except:
res = "0"
else:
res = "0"
return float(res)
Re: Python Plugin: PiMonitor
Posted: Monday 07 January 2019 18:48
by Xorfor
RueDesButtes wrote: ↑Monday 07 January 2019 11:02
does the following will always return "0"?
The function vcgencmd is also used for measure_temp, get_mem arm, etc. So the function certainly not always returns 0! To be sure set Debug to True and view the log. If you see something like '"res (replaced): 0", then you are sure the this is the result from get_throttled command.
Re: Python Plugin: PiMonitor
Posted: Thursday 21 March 2019 21:24
by pretendor
Sorry Guys for asking,
but could someone please tell me how i can install this plugin?
want to monitor my pi a bit better.
and git clone doesn't seems to do the trick (new to raspbian stretch lite)
Re: Python Plugin: PiMonitor
Posted: Monday 25 March 2019 20:44
by Xorfor
Re: Python Plugin: PiMonitor
Posted: Sunday 05 May 2019 20:42
by Xorfor
@Mayki:
I have seen this before. For some reason Domoticz does not like the name for my image. Fortunately it does not stop the plugin

Re: Python Plugin: PiMonitor
Posted: Wednesday 10 July 2019 8:41
by poudenes
Version: 4.10717
Build Hash: b38b49e5
Compile Date: 2019-05-09 13:04:08
dzVents Version: 2.4.19
Python Version: 3.6.4 (default, Oct 10 2018, 09:47:26) [GCC 6.3.0 20170516]
Hi ALl,
GREAT plugin !!! love it. removed the RPI Sensors hardware thats inside of Domoticz...
When I have a restart I see this line:
2019-07-10 04:00:19.299 Error: CPlugin:PyDomoticz_Status, illegal operation, Plugin has not started yet.
What can that be?
Re: Python Plugin: PiMonitor
Posted: Wednesday 10 July 2019 19:20
by Xorfor
@ poudenes
When I have a restart I see this line:
2019-07-10 04:00:19.299 Error: CPlugin:PyDomoticz_Status, illegal operation, Plugin has not started yet.
What can that be?
Fixed in the latest version!