you may have version 0.2. Version 0.4 fixed this
I had this on github since a while but did not yet published it to mios app store. this is done now but it will take some days for MCV to approve it
in the mean time you can either take the github version https://github.com/amg0/NetMonitor or install it by opening a browser with this url and ignoring the error messages
I believe I am on the latest version , at least it says 0.4. here is the log below, If I am reading this correctly , it appears to be have an error on ping and changing the ip address.
luup_log:216: NETMON: warning: Device 192.X.X.2 did not respond properly to { “type”: “ping”, “name”: “Iphone”, “ipaddr”: “192.X.X.X” } probe <0x72eb2520>
02 10/08/18 20:04:02.351 15622 updated ip 192.X.X.3 mac …
[quote=“ojovilla, post:22, topic:199119”]I believe I am on the latest version , at least it says 0.4. here is the log below, If I am reading this correctly , it appears to be have an error on ping and changing the ip address.
luup_log:216: NETMON: warning: Device 192.X.X.2 did not respond properly to { “type”: “ping”, “name”: “Iphone”, “ipaddr”: “192.X.X.X” } probe <0x72eb2520>
02 10/08/18 20:04:02.351 15622 updated ip 192.X.X.3 mac …[/quote]
Can you ssh into Vera and try to ping this device from the shell cmd line ?
I was trying to incorporate the plugin into a notification of some type when I stumbled on what looks like some errata code in the D_NETMON_UI7.json file. Code is near the bottom and is part of the notification tab.
However, my main request has to do with creating some code that will send a push notice whenever a given device goes offline. Rather than create a notice for each and every device (I have quite a few), I was thinking of a function within the plugin itself that would populate a service variable with the names of any offline devices. Then one could access that variable, and use its description as the message body within a push notice. I imagine I would use this same empty variable as the state point and when it populates, it would trigger the notice. Or perhaps there’s a better way to what I’m trying to do.
Hello
I probably do not fully understand. Every device is a motion detector so a device going offline can be detected by an event on the tripped event of that device ( or a Luup variable watch on Tripped variable ), can?t it ?
Yes, I can detect individual devices using a notification for each device. However, since I have a great many devices hanging off my Network (and being monitored) I do not want to have to create an individual notice for each device, but rather one single notice that would fire if any device went offline.
Ok, did you also see the 2 Events ( offline count goes below and goes beyond ) ?
Then we can think of something else like the DeviceStatus variable that contains a json array , I need to check if a luup watch on this variable would work
Hi amg,
I made the changes to both the lua file and the service file and all works well for my requested notification variable. I did not touch the notification tab. Should I push these changes up to git-hub, or is there a better way to incorporate the code. Thx
[quote=“Buxton, post:34, topic:199119”]Hi amg,
I made the changes to both the lua file and the service file and all works well for my requested notification variable. I did not touch the notification tab. Should I push these changes up to git-hub, or is there a better way to incorporate the code. Thx[/quote]
I ll check, thx