dnpwwo / domoticz-pinger-plugin Goto Github PK
View Code? Open in Web Editor NEWPython plugin that pings and shows response times for network devices
License: MIT License
Python plugin that pings and shows response times for network devices
License: MIT License
On my (test setup) Raspberry PI - Stretch, fully updated running Domoticz latest beta I get the following errors in the log upon installing the Pinger plugin. Any idea what I`m doing wrong?
Thanks, Mark
<2018-08-02 19:19:26.329 (Ping) Update 0:'' (Ping - 192.168.2.215)
2018-08-02 19:19:26.331 (Ping) Update 0:'' (Ping - 192.168.2.215)
2018-08-02 19:19:26.137 Status: (Ping) Started.
2018-08-02 19:19:26.324 Status: (Ping) Entering work loop.
2018-08-02 19:19:26.324 Status: (Ping) Initialized version 3.1.3, author 'dnpwwo'
2018-08-02 19:19:35.901 (Ping) Update 1:'On' (Ping - 192.168.2.215)
2018-08-02 19:19:35.903 (Ping) Update 1:'1' (Ping - 192.168.2.215)
2018-08-02 19:19:45.871 Error: (Ping) 'onHeartbeat' failed 'AttributeError':''IcmpDevice' object has no attribute 'Name''.
2018-08-02 19:19:45.871 Error: (Ping) ----> Line 187 in '/home/pi/domoticz/plugins/Domoticz-Pinger-Plugin/plugin.py, function onHeartbeat
2018-08-02 19:19:45.871 Error: (Ping) ----> Line 155 in '/home/pi/domoticz/plugins/Domoticz-Pinger-Plugin/plugin.py, function onHeartbeat
2018-08-02 19:19:55.838 Error: (Ping) 'onHeartbeat' failed 'AttributeError':''IcmpDevice' object has no attribute 'Name''.
2018-08-02 19:19:55.838 Error: (Ping) ----> Line 187 in '/home/pi/domoticz/plugins/Domoticz-Pinger-Plugin/plugin.py, function onHeartbeat
2018-08-02 19:19:55.838 Error: (Ping) ----> Line 155 in '/home/pi/domoticz/plugins/Domoticz-Pinger-Plugin/plugin.py, function onHeartbeat
2018-08-02 19:20:05.854 Error: (Ping) 'onHeartbeat' failed 'AttributeError':''IcmpDevice' object has no attribute 'Name''.
2018-08-02 19:20:05.855 Error: (Ping) ----> Line 187 in '/home/pi/domoticz/plugins/Domoticz-Pinger-Plugin/plugin.py, function onHeartbeat
2018-08-02 19:20:05.855 Error: (Ping) ----> Line 155 in '/home/pi/domoticz/plugins/Domoticz-Pinger-Plugin/plugin.py, function onHeartbeat
2018-08-02 19:20:15.870 Error: (Ping) 'onHeartbeat' failed 'AttributeError':''IcmpDevice' object has no attribute 'Name''.
2018-08-02 19:20:15.870 Error: (Ping) ----> Line 187 in '/home/pi/domoticz/plugins/Domoticz-Pinger-Plugin/plugin.py, function onHeartbeat
2018-08-02 19:20:15.870 Error: (Ping) ----> Line 155 in '/home/pi/domoticz/plugins/Domoticz-Pinger-Plugin/plugin.py, function onHeartbeat
2018-08-02 19:20:24.983 Status: (Ping) Stop directive received.
2018-08-02 19:20:25.333 Status: (Ping) Exiting work loop.
2018-08-02 19:20:55.005 Status: (Ping) Stopping threads.
2018-08-02 19:20:55.006 Status: (Ping) Stopped. >
Hello,
I am starting with Domoticz and I installed on windows 1à as a service.
I installed the plugin Pinger.
In order to validate, I used the the IP 127.0.0.1. The two devices are created .
But the process failed with several messages .
I attached the configuration screen capture and the log (see the attached pdf)
I think that the problem is the fact that the ICMP response (variable 'Data' in the onMessage callback) does not have any structure !
Did I something wrong ?
Regards
gsagsa99
Pinger Issue.pdf
Added fine as per your instructions. Created a new device "Simons phone" and it didn't "Turn On", despite the IP (10.1.0.5) responding to pings from the same server domoticz is hosted on.
Upon enabling Verbose, the following is shown.
(BTW, I think the instructions are unclear on what units the interval is for. I assume seconds (1-20) but it could be minutes and it's not defined)
Thanks. Good to see support for demoticz.
2018-01-04 13:33:09.619 Error: (Simons Phone) 'onStart' failed 'AttributeError':''Domoticz.Device' object has no attribute 'TimedOut''.
2018-01-04 13:33:09.619 Error: (Simons Phone) ----> Line 168 in /srv/domoticz/plugins/Domoticz-Pinger-Plugin/plugin.py, function onStart
2018-01-04 13:33:09.619 Error: (Simons Phone) ----> Line 105 in /srv/domoticz/plugins/Domoticz-Pinger-Plugin/plugin.py, function onStart
2018-01-04 13:33:09.619 Error: (Simons Phone) ----> Line 185 in /srv/domoticz/plugins/Domoticz-Pinger-Plugin/plugin.py, function UpdateDevice
2018-01-04 13:33:09.619 (Simons Phone) Heartbeat interval set to: 20.
2018-01-04 13:33:19.133 (Simons Phone) Calling message handler 'onHeartbeat'.
2018-01-04 13:33:19.133 (Simons Phone) Heartbeating...
2018-01-04 13:33:19.133 Error: (Simons Phone) 'onHeartbeat' failed 'IndexError':'list index out of range'.
2018-01-04 13:33:19.133 Error: (Simons Phone) ----> Line 180 in /srv/domoticz/plugins/Domoticz-Pinger-Plugin/plugin.py, function onHeartbeat
2018-01-04 13:33:19.133 Error: (Simons Phone) ----> Line 156 in /srv/domoticz/plugins/Domoticz-Pinger-Plugin/plugin.py, function onHeartbeat
Running dz 2021.1, log file returns:
2022-02-10 06:55:11.538 RFXCOM: Temp + Humidity (Fond salle cinéma)
2022-02-10 06:55:11.761 Error: Ping standard: (Ping standard) ----> Line 147 in '/home/pi/domoticz/plugins/Domoticz-Pinger-Plugin/plugin.py', function onMessage
2022-02-10 06:55:11.761 Error: Ping standard: (Ping standard) 'onMessage' failed 'AttributeError':''NoneType' object has no attribute 'Close''.
2022-02-10 06:55:11.761 Error: Ping standard: (Ping standard) ----> Line 185 in '/home/pi/domoticz/plugins/Domoticz-Pinger-Plugin/plugin.py', function onMessage
2022-02-10 06:55:11.761 Error: Ping standard: (Ping standard) ----> Line 147 in '/home/pi/domoticz/plugins/Domoticz-Pinger-Plugin/plugin.py', function onMessage
2022-02-10 06:55:11.761 Error: Ping standard: (Ping standard) 'onMessage' failed 'AttributeError':''NoneType' object has no attribute 'Close''.
2022-02-10 06:55:11.761 Error: Ping standard: (Ping standard) ----> Line 185 in '/home/pi/domoticz/plugins/Domoticz-Pinger-Plugin/plugin.py', function onMessage
2022-02-10 06:55:11.761 Error: Ping standard: (Ping standard) ----> Line 147 in '/home/pi/domoticz/plugins/Domoticz-Pinger-Plugin/plugin.py', function onMessage
2022-02-10 06:55:11.761 Error: Ping standard: (Ping standard) 'onMessage' failed 'AttributeError':''NoneType' object has no attribute 'Close''.
2022-02-10 06:55:11.761 Error: Ping standard: (Ping standard) ----> Line 185 in '/home/pi/domoticz/plugins/Domoticz-Pinger-Plugin/plugin.py', function onMessage
2022-02-10 06:55:11.761 Error: Ping standard: (Ping standard) ----> Line 147 in '/home/pi/domoticz/plugins/Domoticz-Pinger-Plugin/plugin.py', function onMessage
2022-02-10 06:55:11.761 Error: Ping standard: (Ping standard) 'onMessage' failed 'AttributeError':''NoneType' object has no attribute 'Close''.
2022-02-10 06:55:11.761 Error: Ping standard: (Ping standard) ----> Line 185 in '/home/pi/domoticz/plugins/Domoticz-Pinger-Plugin/plugin.py', function onMessage
2022-02-10 06:55:11.761 Error: Ping standard: (Ping standard) ----> Line 147 in '/home/pi/domoticz/plugins/Domoticz-Pinger-Plugin/plugin.py', function onMessage
2022-02-10 06:55:11.761 Error: Ping standard: (Ping standard) 'onMessage' failed 'AttributeError':''NoneType' object has no attribute 'Close''.
2022-02-10 06:55:11.761 Error: Ping standard: (Ping standard) ----> Line 185 in '/home/pi/domoticz/plugins/Domoticz-Pinger-Plugin/plugin.py', function onMessage
2022-02-10 06:55:11.761 Error: Ping standard: (Ping standard) ----> Line 147 in '/home/pi/domoticz/plugins/Domoticz-Pinger-Plugin/plugin.py', function onMessage
2022-02-10 06:55:13.461 rasp-petit puits: Temp (Temp RasPI puits)
2022-02-10 06:55:14.823 Ping standard: (Ping standard) Device: '192.168.21.246' returned 'destination_unreachable'.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.