Python Plugin: PiMonitor Topic is solved

Python and python framework

Moderator: leecollings

User avatar
McMelloW
Posts: 427
Joined: Monday 20 November 2017 17:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.1
Location: Harderwijk, NL
Contact:

Re: Python Plugin: PiMonitor

Post by McMelloW »

No errors after the update to v3.9054. Good job
Greetings McMelloW
Xorfor

Re: Python Plugin: PiMonitor

Post by Xorfor »

McMelloW wrote: Sunday 25 March 2018 22:31 No errors after the update to v3.9054. Good job
Thnx :) !!!
User avatar
McMelloW
Posts: 427
Joined: Monday 20 November 2017 17:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.1
Location: Harderwijk, NL
Contact:

Re: Python Plugin: PiMonitor

Post 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
Greetings McMelloW
pigloox
Posts: 22
Joined: Tuesday 09 February 2016 23:02
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: France
Contact:

Re: Python Plugin: PiMonitor

Post 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?
RPI3 Stretch (Hard disk)
-RFXtrx433 USB
-OpenZwave USB
-Teleinfo USB
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Python Plugin: PiMonitor

Post by waaren »

Xorfor wrote: Tuesday 09 January 2018 22:22 A small plugin available for the Raspberry Pi:

https://github.com/Xorfor/Domoticz-PiMonitor-Plugin

To monitor CPU speed, usage, temperature, etc.
@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.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Xorfor

Re: Python Plugin: PiMonitor

Post 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 :)
DarkG
Posts: 89
Joined: Friday 15 September 2017 18:54
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10076
Location: Germany
Contact:

Re: Python Plugin: PiMonitor

Post by DarkG »

Can you add Voltage to the Plugin?
RPi4 Shelly1 Shelly2.5 ESPEasy Tuya Domoticz Beta Dashticz 3.6
Xorfor

Re: Python Plugin: PiMonitor

Post 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
Xorfor

Re: Python Plugin: PiMonitor

Post by Xorfor »

DarkG wrote: Thursday 08 November 2018 15:32 Can you add Voltage to the Plugin?
Done
Xorfor

Re: Python Plugin: PiMonitor

Post by Xorfor »

Version 2.0.0 is out
  • Fixed loading images (hopefully)
  • Added memory usage Domoticz
  • Added voltage devices
  • Reformatting code, for better maintenance
RueDesButtes
Posts: 17
Joined: Monday 26 March 2018 10:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: PiMonitor

Post 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
Latest Beta on RPI3B+
RFX, Rflink,RM Pro, Xiaomi devices, Hue bridge, Onkyo, Harmony
Xorfor

Re: Python Plugin: PiMonitor

Post 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.
qwerk
Posts: 222
Joined: Tuesday 22 July 2014 7:21
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Netherlands
Contact:

Re: Python Plugin: PiMonitor

Post 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
RueDesButtes
Posts: 17
Joined: Monday 26 March 2018 10:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: PiMonitor

Post 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)
Latest Beta on RPI3B+
RFX, Rflink,RM Pro, Xiaomi devices, Hue bridge, Onkyo, Harmony
Xorfor

Re: Python Plugin: PiMonitor

Post 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.
pretendor
Posts: 9
Joined: Thursday 21 March 2019 21:22
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: PiMonitor

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

Re: Python Plugin: PiMonitor

Post 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 :)
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: Python Plugin: PiMonitor

Post 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?
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
Xorfor

Re: Python Plugin: PiMonitor

Post 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!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest