Xorfor wrote: ↑Monday 15 January 2018 21:27
That is also the reason that I wrote the Disc usage plugin (https://github.com/Xorfor/Domoticz-Disc-usage-Plugin). The standard Motherboard sensors only displays some directories. With the Disc usage plugin, I am able to also monitor mounted disks.
Question on using Dusic-usage-Plugin. There in not much information in the README.md about it.
Can I enter more then one disk in the hardware - device field? Something like this /dev/sda1;/dev/sda2
At this moment trying to monitor th Rpi SDcard by/dev/root. Set the interval to 2 minutes. Device stays at 0% See also a part of the added log. I hope you can give me some hints
Thanks for your reply. It is working now. At least I see a percentage.
Disk Usage - 29.5665%; Df - 27%; motherboard sensor - 25.3%; RPi-Monitor (webinterface) 25.3% Which one is the right value???
Bare in mind!
If you update the hardware the device is not updated.
You have to delete the device first. After activating the hardware again a new device is created.
2018-03-18 20:02:39.746 Error: (Pi-Monitor) 'onHeartbeat' failed 'KeyError'.
2018-03-18 20:02:39.746 Error: (Pi-Monitor) ----> Line 190 in /home/pi/domoticz/plugins/xfr-pimonitor/plugin.py, function onHeartbeat
2018-03-18 20:02:39.746 Error: (Pi-Monitor) ----> Line 144 in /home/pi/domoticz/plugins/xfr-pimonitor/plugin.py, function onHeartbeat
I have Domoticz v3.8976, please could you help me? thanks
Strange error message! Is the Up Time still updated?
If you still have these problems, please update Domoticz to the latest beta version. When I wrote this plugin, I found some minor bugs in the Domoticz Python interface in changing the options from a device. They are already fixed a couple of weeks ago by one of the Domoticz developers.
2018-03-20 21:14:44.475 Error: (Domoticz RPi Monitor) ----> Line 190 in /home/pi/domoticz/plugins/PiMonitor/plugin.py, function onHeartbeat
2018-03-20 21:14:44.475 Error: (Domoticz RPi Monitor) ----> Line 144 in /home/pi/domoticz/plugins/PiMonitor/plugin.py, function onHeartbeat
Ok, I removed the debug line, on which you got the error message. Hopefully this will solve the problem.
Also did some modifications in the declaration of the units.
@jumping:
A while ago I had the same problem with an other plugin. Domoticz has problems to get the icons for this plugin. Please do the following:
1. Remove the Hardware where you used the PiMonitor plugin
2. Goto to Setup -> More Options -> Custom Icons
3. Select the PiMonitor icon
4. Click Delete
5. Add the Hardware again
@assenzuid:
You are still using the 'old' plugin. Please update to the latest plugin version.
Xorfor wrote: ↑Friday 23 March 2018 20:09@jumping:
A while ago I had the same problem with an other plugin. Domoticz has problems to get the icons for this plugin. Please do the following:
1. Remove the Hardware where you used the PiMonitor plugin
2. Goto to Setup -> More Options -> Custom Icons
3. Select the PiMonitor icon
4. Click Delete
5. Add the Hardware again
@assenzuid:
You are still using the 'old' plugin. Please update to the latest plugin version.
No, using the latest version. Yesterday I downloaded the latest version of the plugin from GitHub
2018-03-24 14:38:23.067 Error: (Domoticz RPi Monitor) 'onStart' failed 'KeyError'.
2018-03-24 14:38:23.067 Error: (Domoticz RPi Monitor) ----> Line 164 in /home/pi/domoticz/plugins/PiMonitor/plugin.py, function onStart
2018-03-24 14:38:23.067 Error: (Domoticz RPi Monitor) ----> Line 59 in /home/pi/domoticz/plugins/PiMonitor/plugin.py, function onStart
Capture.PNG
@assenzuid
On Domoticz version V3.9052 and RPi Monitor 21-03-2018 (Version is still 1.1.0)
I get exact the same errors after a reboot or a Domoticz restart, but only once. After that no more errors.. I don't know or RPi Monitor is working OK after that.
2018-03-24 14:38:23.067 Error: (Domoticz RPi Monitor) 'onStart' failed 'KeyError'.
2018-03-24 14:38:23.067 Error: (Domoticz RPi Monitor) ----> Line 164 in /home/pi/domoticz/plugins/PiMonitor/plugin.py, function onStart
2018-03-24 14:38:23.067 Error: (Domoticz RPi Monitor) ----> Line 59 in /home/pi/domoticz/plugins/PiMonitor/plugin.py, function onStart
Capture.PNG
@assenzuid
On Domoticz version V3.9052 and RPi Monitor 21-03-2018 (Version is still 1.1.0)
I get exact the same errors after a reboot or a Domoticz restart, but only once. After that no more errors.. I don't know or RPi Monitor is working OK after that.
Error is indeed once logged after ra reboot, plugin is working.
The error @line 59 is a different error. For some reason Domoticz is not able to find the icons in the database. It does not influence the working of the plugin. I is possible that the devices from this plugin does display the default Domoticz icon.
To remove this error or display the plugin icons, do the following as described in a previous post:
1. Remove the Hardware where you used the PiMonitor plugin
2. Goto to Setup -> More Options -> Custom Icons
3. Select the PiMonitor icon
4. Click Delete
5. Add the Hardware again
Xorfor wrote: ↑Saturday 24 March 2018 20:08
The error @line 59 is a different error. For some reason Domoticz is not able to find the icons in the database. It does not influence the working of the plugin. I is possible that the devices from this plugin does display the default Domoticz icon.
To remove this error or display the plugin icons, do the following as described in a previous post:
1. Remove the Hardware where you used the PiMonitor plugin
2. Goto to Setup -> More Options -> Custom Icons
3. Select the PiMonitor icon
4. Click Delete
5. Add the Hardware again
Else you can ignore this error.
Followed the steps 1-5. For me the problem is solved. Don't forget to update the version number when you make changes.
Last edited by McMelloW on Sunday 25 March 2018 12:50, edited 1 time in total.
This plugin is especially written for the RPi and also to monitor my development RPi during testing plugins. I don't have any intention to make it working on other hardware. Else I have to use a tool like 'psutil', which I don't want.
But if you have any suggestions to improve the plugin with standard Linux commands, please contact me.