Author Topic: Ping Sensor  (Read 197503 times)

Offline additude

  • Full Member
  • ***
  • Posts: 241
  • Karma: +24/-17
Re: Ping Sensor
« Reply #615 on: October 16, 2017, 12:43:17 pm »
I've installed Ping Sensor on one Vera Plus with firmware 1.7.3232 and I've combined all the updated files to include Ping Count, Inverse, etc. and I feel that I have a stable install.

I installed the app from the Install Apps interface and I've uploaded the updated files thru Develop Apps / Upload.

I made a few minor text cleanup changes to formatting for the Settings table but that's it.

Then I've downloaded each of the files used for Ping Sensor in my UI7 Vera Plus and I've put them all into a zip file.

It will also have the pre UI7 files as well.

I think this will provide a single repository at this point for all of the updated files that others here have graciously updated.

I hope this helps.

* Updated Zip File 10-20-17
« Last Edit: October 20, 2017, 12:24:19 pm by additude »
If you want something that you have never had before, then you are going to have to do something that you have never done before.

Offline additude

  • Full Member
  • ***
  • Posts: 241
  • Karma: +24/-17
Re: Ping Sensor
« Reply #616 on: November 11, 2017, 12:01:35 pm »
I've made a few "Cosmetic" display changes to the UI7 files.
If you want something that you have never had before, then you are going to have to do something that you have never done before.

Offline Majimus

  • Full Member
  • ***
  • Posts: 106
  • Karma: +24/-0
Re: Ping Sensor
« Reply #617 on: September 05, 2018, 02:09:58 am »
I've been using the ping sensor with various devices and some scripting to replace the non working geolocation feature of the vera.  Some devices do not respond to ping reliably (android), these devices will however respond to an "arping".

I've modified the ping sensor to send an arping if the regular ping fails, this works great for me. Maybe plugin dev could consider making that small addition.

Here is my addition.

Code: [Select]
if( returnCode ~= 0) then
  returnCode = os.execute("arping -f -w 3 -I br-wan " .. address)
end

YMMV

edit: do check the interface though...
« Last Edit: September 07, 2018, 11:10:34 pm by Majimus »