Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


Question

Posted (edited)

Hi Everyone

 

v 2.6 now available for users that have the SMsgH installed

 

Three offerings - Please read below to see which is right for you

1) WWWAPI Monitor {v1.0} - New (Mar8th) - vd that monitors only availability of the internet with option for sonos-api device. (leverages

Please login or register to see this link.

 {v1.0} 

 

2) Network Device Monitor VD {v2.5} - vd that can monitor several + devices and has built-in alert notification options (pushover/pc2popup/hc2email/allinone)

         or 

3) Network Device Monitor VD {v2.6}  - vd that can monitor several + devices and deigned to be used with the recently released 

Please login or register to see this link.

 {v1.0} 

 

Regards

[Autofrank]

 

LAN Monitor / Network Device  Monitor {v2.6} ------ to be used with Smart Message Hub {v 1.0}

Modified to to be used with Smart Message Hub

- Label check removed to simplify virtual device

4 simple steps to upgrade from v2.5 to v2.6

  1. Import the new virtual device
  2. Configure your SendMsg preferences 
  3. Copy your v2.5 jsonNetwork table to v 2.6 and set UpdateData to 'true'
  4. Set UpdateData to 'false' and that's it !!

 

LAN Monitor / Network Device  Monitor {v2.5} ------ has built in Notification Services

The main difference between 2.0 and 2.5 are the following

  • Virtual Device ONLY - ( no need for separate scene, table updates are now done through VD)
  • Global variable table is created automatically created for new users
  • Added HC2 Popup service as an extra notification option

 

The following features are still available

  • Individual LAN devices can be marked for Alert
  • Alert Notification options configurable for HC2 email (default), pushover, or ALLINONE (@jompa68)
  • One Alert will be received when device goes offline and another when it comes back online
  • Online/Offline status is captured in global table that can be used to trigger other events
  • Debug routine called vdCheck will verify that correct quantity of vd labels and format was setup
  • Status/Error/Check feedback through the virtual device log console as visible through the Web UI 

 

I use this to monitor Internet, Unifi Security Gateway, HC2, Sonos API (pi), TV's, Sat Box, Apple TV, Droid Box, Alarm Panel, Alarm Gateway, Syn NAS Global cache device, Cameras, Tablets, Sonos players, Access points and phones. Alerts setup for Internet, USG, Sonos API, Access points, cameras, Sonos players, Alarm panel, alarm gateway and NAS. There are some nuances with some devices such as TV's and Phones.

 

Open Ports of some devices that were shared by users

  • Internet google (port 80)
  • Sonos players/zone (port 1400)
  • Sonos API (port 5005 or 5006)
  • Raspberry Pi Hosting API (port 22)
  • iPhone Port (port 62078)
  • Smarter coffee maker (port 2081)
  • Smarter iKittle (port 2081)
  • Philips TV 47PFL5000 (port 1925)
  • Foscam cameras (port 88)
  • NAS Netgear U6 (port 80)
  • Global cache GC100-12 (port 21)
  • Humax FoxSat satellite receiver(port 80)
  • Apple TV Gen 3 (port 5000)
  • NPET MXQ Pro TV Box - Android 5.1 (port 7002)
  • Sony TV’s (port 80)
  • Samsung TV (port 8080)
  • Synology NAs DS415Play (port 80)
  • SPC Gateway (port 80)
  • Siemens Alarm Panel (port 443)
  • HKVision IP Camera (port 80)
  • Unifi security Gateway (port 80)
  • Unifi UniFi AC LR Access Point (port 22)
  • Samsung Galaxy S6 / S7 (port 5060)
  • Samsung Tablet (port 5060)
  • Generic Android Tablets (port 5060)
  • Airport Express and Airport Extreme (port 5009)
  • Amazon Echo Dot and Fullsize Echo (port 4070)

 

== INSTALLATION: Upgrading from 2.0 ==
    - Import the LAN Monitor 2.5 VD and copy in device table from Update Network Table 2.0
    - Run VD with updateData  = "true" to update the Network table (default setting is false)
    - Run VD with updateData  = "false" to operate in normal mode
    - Update notification and frequency of update options

 

== INSTALLATION: First Time Users ==
STEP 1  - Import the LAN Monitor 2.5 virtual device
        - Populate the device table. Device, ip, port and enter alert = "1" for device notification

               - alert is user configurible per device

               - alert = 1 (enable alerts - alerts sent if it goes offline or comes back online )

               - alert = 0 (disable alerts for this device)

        - Select the notification options 
        - Run VD with updateData  = "true" to populate the device table
        - Run VD with updateData  = "false" to operate in normal mode

Step 2 (optional) - create labels to display device status in VD
        - Create one label for each device in the global variable table, use the default ID - Label1, Label2, etc. 
        - Enter Label Names (1, 2, 3, etc) to match order order of devices in Table (devices can be skipped but ID's must match)
        - Select Main  label to display one device when observing through Web UI 
        - If you want to use all labels you can use Set vdCheck = "true" to confirm correct quantity and format of labels.

 

 

Please login or register to see this attachment.

    

 

== FILES ==

Use the version if you don't have Smart Message Hub installed

>> Network device Monitor VD {v2.5} ------------> 

Please login or register to see this attachment.

 

Use this version if you HAVE Smart Message Hub installed

>> Network Device Monitor VD {v 2.6} -----------> 

Please login or register to see this attachment.

 

 

 

Thanks to @jompa68 , @petergebruers , @sonnyboy and @boerremk for their input

 

Regards

-f

 

Edited by AutoFrank
  • Like 2
  • Thanks 1

Recommended Posts

  • 0
Posted (edited)

@Bodyart I will try! the basic change is I put most of the main program under function so it runs according to _maxRetryProcess variable

Here is the code with colors

 

 

 

-- Local variable declaration
thisId            = fibaro:getSelfId();

-- ** USER CONFIGUATION - NOTIFICATION & UPDATE OPTIONS **
local updateFreq  = "3000"      -- Set the frequency (milliseconds) that you want to vd to poll the LAN per device
local updateData  = "false"     -- Set to true to update the data in the table. ** SET BACK TO FALSE ONCE COMPLETE **
local _maxRetryProcess = 5         --how many times will rerty
local _setReadTimeout = 250     --Timeout time for socket

local SMsgHID = 66
-- ** USER CONFIGUATION - NETWORK TABLE DEVICES **
function popTable()
  jsonNetwork = {
    {device = "Internet",            ip="8.8.8.8",     port="53",        online = "0", alert = "1", alertTrack = "0"},
    {device = "Google Home",           ip="192.168.15.28",        port="8008",    online = "0", alert = "1", alertTrack = "0"}
  }
  
  local jNetTable = json.encode(jsonNetwork)
  fibaro:setGlobal("NetworkTable", jNetTable)
  local jN = json.decode(fibaro:getGlobalValue("NetworkTable"))
  if jN[1].device == "" then
    fibaro:debug("Network table did NOT get created successfully. Please debug")
  else
    fibaro:debug("Network table successfully updated")
  end
  fibaro:debug("The following devices have been setup for alerts:")
  for i = 1, #jN do
    if jN.alert == "1" then
      fibaro:debug(jN.device)
    end
  end
end

function SendMsg(mstr, mtarget, mvol, mtitle, msubtitle)
  local msgStr = { message= mstr, target = mtarget, volume = mvol, title = mtitle, subtitle = subtitle }
  fibaro:setGlobal("messageHub", json.encode(msgStr))
  fibaro:startScene(SMsgHID, {json.encode(msgStr)})
end

function updateTable()
  if fibaro:getGlobalValue("NetworkTable") == nil then
    local HC2 = Net.FHttp("127.0.0.1",11111);
    local response ,status, err = HC2:POST('/api/globalVariables','{"name":"NetworkTable","value":""}');
    if (tonumber(status) == 200 and tonumber(err)==0) then
      fibaro:log("Global variable NetworkTable created");
    end
  else
  end
  popTable()
end

local function _ping(retry, devid)
retry = retry or 1; -- rerty initialise/count
  devid = devid or 1 -- keep jN.device

  
  local jN = json.decode(fibaro:getGlobalValue("NetworkTable"))
  if jN[1].device == "" then 
    fibaro:debug("Network Table not populated")
  else
    for i = devid, #jN do
      
      fibaro:debug(jN.device)
      tcpSocket         = Net.FTcpSocket(jN.ip, jN.port)
      tcpSocket:setReadTimeout(_setReadTimeout);
      bytes, errorCode  = tcpSocket:write("test")
      tcpSocket:disconnect()
      
      if errorCode == 0 then
        jN.online = 1
        fibaro:call(thisId, "setProperty", "ui.Label"..i..".value","Online")
        if jN.alert == "1" and jN.alertTrack == "1" then
          message = ("Notify Alert! "..jN.device.." is back online")
          
      -- /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ --
      -- Configure your Send Message Parameters as you require
          SendMsg(message)
          
          
      
      -- \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ --
      
          jN.alertTrack = "0"
        end
      else
        fibaro:debug(""..jN.device.." seems disconnected")
        if retry < _maxRetryProcess then
        fibaro:log("Retry process...")
        fibaro:sleep(1000 * retry) -- increase time between retries
        return _ping(retry + 1, i)
        else

        jN.online = 0
        fibaro:call(thisId, "setProperty", "ui.Label"..i..".value","*OFFLINE*")
        if jN.alert == "1" and jN.alertTrack == "0" then
          fibaro:log(""..jN.device.." is offline")
          message = ("️Notify Alert! "..jN.device.." is offline")

      -- /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ --
      -- Configure your Send Message Parameters as you require
      
        
        
         SendMsg(message)
         
      
      -- \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ --

          jN.alertTrack = "1"
        end 
      end
      end
      jNetTable = json.encode(jN)
      fibaro:setGlobal("NetworkTable", jNetTable)
      fibaro:sleep(updateFreq)
    end
  end
end

-- MAIN CODE

if updateData == "true" then 
  updateTable()
  return
else
_ping()
end

 

 

Edited by korniza
  • Thanks 1
  • 0
Posted (edited)

Thank you @korniza,

 

that makes it readable and understandable much more faster :-)

 

Efcharisto poli :-)

Edited by Bodyart
  • 0
Posted

You are welcome! hope you find it usefull

  • 0
  • Inquirer
  • Posted
    11 hours ago, korniza said:

    You are welcome! hope you find it usefull

     

    Fantastic addition  @korniza - thanks 

    • Thanks 1
    • 0
    Posted

    @AutoFrank hope to include it on new version ;)

     

    • 0
    Posted (edited)
    On 2/14/2017 at 3:27 PM, AutoFrank said:

    Hi Everyone

     

    v 2.6 now available for users that have the SMsgH installed

     

    Three offerings - Please read below to see which is right for you

    1) WWWAPI Monitor {v1.0} - New (Mar8th) - vd that monitors only availability of the internet with option for sonos-api device. (leverages

    Please login or register to see this link.

     {v1.0} 

     

    2) Network Device Monitor VD {v2.5} - vd that can monitor several + devices and has built-in alert notification options (pushover/pc2popup/hc2email/allinone)

             or 

    3) Network Device Monitor VD {v2.6}  - vd that can monitor several + devices and deigned to be used with the recently released 

    Please login or register to see this link.

     {v1.0} 

     

    Regards

    [Autofrank]

     

    LAN Monitor / Network Device  Monitor {v2.6} ------ to be used with Smart Message Hub {v 1.0}

    Modified to to be used with Smart Message Hub

    - Label check removed to simplify virtual device

    4 simple steps to upgrade from v2.5 to v2.6

    1. Import the new virtual device
    2. Configure your SendMsg preferences 
    3. Copy your v2.5 jsonNetwork table to v 2.6 and set UpdateData to 'true'
    4. Set UpdateData to 'false' and that's it !!

     

    LAN Monitor / Network Device  Monitor {v2.5} ------ has built in Notification Services

    The main difference between 2.0 and 2.5 are the following

    • Virtual Device ONLY - ( no need for separate scene, table updates are now done through VD)
    • Global variable table is created automatically created for new users
    • Added HC2 Popup service as an extra notification option

     

    The following features are still available

    • Individual LAN devices can be marked for Alert
    • Alert Notification options configurable for HC2 email (default), pushover, or ALLINONE (@jompa68)
    • One Alert will be received when device goes offline and another when it comes back online
    • Online/Offline status is captured in global table that can be used to trigger other events
    • Debug routine called vdCheck will verify that correct quantity of vd labels and format was setup
    • Status/Error/Check feedback through the virtual device log console as visible through the Web UI 

     

    I use this to monitor Internet, Unifi Security Gateway, HC2, Sonos API (pi), TV's, Sat Box, Apple TV, Droid Box, Alarm Panel, Alarm Gateway, Syn NAS Global cache device, Cameras, Tablets, Sonos players, Access points and phones. Alerts setup for Internet, USG, Sonos API, Access points, cameras, Sonos players, Alarm panel, alarm gateway and NAS. There are some nuances with some devices such as TV's and Phones.

     

    Open Ports of some devices that were shared by users

    • Internet google (port 80)
    • Sonos players/zone (port 1400)
    • Sonos API (port 5005 or 5006)
    • Raspberry Pi Hosting API (port 22)
    • iPhone Port (port 62078)
    • Smarter coffee maker (port 2081)
    • Smarter iKittle (port 2081)
    • Philips TV 47PFL5000 (port 1925)
    • Foscam cameras (port 88)
    • NAS Netgear U6 (port 80)
    • Global cache GC100-12 (port 21)
    • Humax FoxSat satellite receiver(port 80)
    • Apple TV Gen 3 (port 5000)
    • NPET MXQ Pro TV Box - Android 5.1 (port 7002)
    • Sony TV’s (port 80)
    • Samsung TV (port 8080)
    • Synology NAs DS415Play (port 80)
    • SPC Gateway (port 80)
    • Siemens Alarm Panel (port 443)
    • HKVision IP Camera (port 80)
    • Unifi security Gateway (port 80)
    • Unifi UniFi AC LR Access Point (port 22)
    • Samsung Galaxy S6 / S7 (port 5060)
    • Samsung Tablet (port 5060)
    • Generic Android Tablets (port 5060)
    • Airport Express and Airport Extreme (port 5009)
    • Amazon Echo Dot and Fullsize Echo (port 4070)

     

    == INSTALLATION: Upgrading from 2.0 ==
        - Import the LAN Monitor 2.5 VD and copy in device table from Update Network Table 2.0
        - Run VD with updateData  = "true" to update the Network table (default setting is false)
        - Run VD with updateData  = "false" to operate in normal mode
        - Update notification and frequency of update options

     

    == INSTALLATION: First Time Users ==
    STEP 1  - Import the LAN Monitor 2.5 virtual device
            - Populate the device table. Device, ip, port and enter alert = "1" for device notification

                   - alert is user configurible per device

                   - alert = 1 (enable alerts - alerts sent if it goes offline or comes back online )

                   - alert = 0 (disable alerts for this device)

            - Select the notification options 
            - Run VD with updateData  = "true" to populate the device table
            - Run VD with updateData  = "false" to operate in normal mode

    Step 2 (optional) - create labels to display device status in VD
            - Create one label for each device in the global variable table, use the default ID - Label1, Label2, etc. 
            - Enter Label Names (1, 2, 3, etc) to match order order of devices in Table (devices can be skipped but ID's must match)
            - Select Main  label to display one device when observing through Web UI 
            - If you want to use all labels you can use Set vdCheck = "true" to confirm correct quantity and format of labels.

     

     

    Please login or register to see this attachment.

        

     

    == FILES ==

    Use the version if you don't have Smart Message Hub installed

    >> Network device Monitor VD {v2.5} ------------> 

    Please login or register to see this attachment.

     

    Use this version if you HAVE Smart Message Hub installed

    >> Network Device Monitor VD {v 2.6} -----------> 

    Please login or register to see this attachment.

     

     

     

    Thanks to @jompa68 , @petergebruers , @sonnyboy and @boerremk for their input

     

    Regards

    -f

     

    Hi,

    can you please show the detailed procedure to implement the VD (Network Monitor V2.5) with pics as I am new for lua.

    thanks.

     

    Edited by bpkurmi
    • 0
  • Inquirer
  • Posted
    3 hours ago, bpkurmi said:

    can you please show the detailed procedure to implement the VD (Network Monitor V2.5) with pics as I am new for lua.

     

    Hi @bpkurmi

    The detailed instructions are above. There is no more that can be added ...

    What specifically extra were you looking for ?

    • 0
    Posted
    On 8/30/2018 at 8:34 PM, korniza said:

    You are welcome! hope you find it usefull

    I use it almost a week and false alarms are gone! Next step is to find a way and manipulate the case of internet is offline...no message will arrive on that state. I suppose SMsgH will do the job but it also has limitations when internet is down and nobody is home 

    • 0
    Posted
    On 2/14/2017 at 3:27 PM, AutoFrank said:

    Hi Everyone

     

    v 2.6 now available for users that have the SMsgH installed

     

    Three offerings - Please read below to see which is right for you

    1) WWWAPI Monitor {v1.0} - New (Mar8th) - vd that monitors only availability of the internet with option for sonos-api device. (leverages

    Please login or register to see this link.

     {v1.0} 

     

    2) Network Device Monitor VD {v2.5} - vd that can monitor several + devices and has built-in alert notification options (pushover/pc2popup/hc2email/allinone)

             or 

    3) Network Device Monitor VD {v2.6}  - vd that can monitor several + devices and deigned to be used with the recently released 

    Please login or register to see this link.

     {v1.0} 

     

    Regards

    [Autofrank]

     

    LAN Monitor / Network Device  Monitor {v2.6} ------ to be used with Smart Message Hub {v 1.0}

    Modified to to be used with Smart Message Hub

    - Label check removed to simplify virtual device

    4 simple steps to upgrade from v2.5 to v2.6

    1. Import the new virtual device
    2. Configure your SendMsg preferences 
    3. Copy your v2.5 jsonNetwork table to v 2.6 and set UpdateData to 'true'
    4. Set UpdateData to 'false' and that's it !!

     

    LAN Monitor / Network Device  Monitor {v2.5} ------ has built in Notification Services

    The main difference between 2.0 and 2.5 are the following

    • Virtual Device ONLY - ( no need for separate scene, table updates are now done through VD)
    • Global variable table is created automatically created for new users
    • Added HC2 Popup service as an extra notification option

     

    The following features are still available

    • Individual LAN devices can be marked for Alert
    • Alert Notification options configurable for HC2 email (default), pushover, or ALLINONE (@jompa68)
    • One Alert will be received when device goes offline and another when it comes back online
    • Online/Offline status is captured in global table that can be used to trigger other events
    • Debug routine called vdCheck will verify that correct quantity of vd labels and format was setup
    • Status/Error/Check feedback through the virtual device log console as visible through the Web UI 

     

    I use this to monitor Internet, Unifi Security Gateway, HC2, Sonos API (pi), TV's, Sat Box, Apple TV, Droid Box, Alarm Panel, Alarm Gateway, Syn NAS Global cache device, Cameras, Tablets, Sonos players, Access points and phones. Alerts setup for Internet, USG, Sonos API, Access points, cameras, Sonos players, Alarm panel, alarm gateway and NAS. There are some nuances with some devices such as TV's and Phones.

     

    Open Ports of some devices that were shared by users

    • Internet google (port 80)
    • Sonos players/zone (port 1400)
    • Sonos API (port 5005 or 5006)
    • Raspberry Pi Hosting API (port 22)
    • iPhone Port (port 62078)
    • Smarter coffee maker (port 2081)
    • Smarter iKittle (port 2081)
    • Philips TV 47PFL5000 (port 1925)
    • Foscam cameras (port 88)
    • NAS Netgear U6 (port 80)
    • Global cache GC100-12 (port 21)
    • Humax FoxSat satellite receiver(port 80)
    • Apple TV Gen 3 (port 5000)
    • NPET MXQ Pro TV Box - Android 5.1 (port 7002)
    • Sony TV’s (port 80)
    • Samsung TV (port 8080)
    • Synology NAs DS415Play (port 80)
    • SPC Gateway (port 80)
    • Siemens Alarm Panel (port 443)
    • HKVision IP Camera (port 80)
    • Unifi security Gateway (port 80)
    • Unifi UniFi AC LR Access Point (port 22)
    • Samsung Galaxy S6 / S7 (port 5060)
    • Samsung Tablet (port 5060)
    • Generic Android Tablets (port 5060)
    • Airport Express and Airport Extreme (port 5009)
    • Amazon Echo Dot and Fullsize Echo (port 4070)

     

    == INSTALLATION: Upgrading from 2.0 ==
        - Import the LAN Monitor 2.5 VD and copy in device table from Update Network Table 2.0
        - Run VD with updateData  = "true" to update the Network table (default setting is false)
        - Run VD with updateData  = "false" to operate in normal mode
        - Update notification and frequency of update options

     

    == INSTALLATION: First Time Users ==
    STEP 1  - Import the LAN Monitor 2.5 virtual device
            - Populate the device table. Device, ip, port and enter alert = "1" for device notification

                   - alert is user configurible per device

                   - alert = 1 (enable alerts - alerts sent if it goes offline or comes back online )

                   - alert = 0 (disable alerts for this device)

            - Select the notification options 
            - Run VD with updateData  = "true" to populate the device table
            - Run VD with updateData  = "false" to operate in normal mode

    Step 2 (optional) - create labels to display device status in VD
            - Create one label for each device in the global variable table, use the default ID - Label1, Label2, etc. 
            - Enter Label Names (1, 2, 3, etc) to match order order of devices in Table (devices can be skipped but ID's must match)
            - Select Main  label to display one device when observing through Web UI 
            - If you want to use all labels you can use Set vdCheck = "true" to confirm correct quantity and format of labels.

     

     

    Please login or register to see this attachment.

        

     

    == FILES ==

    Use the version if you don't have Smart Message Hub installed

    >> Network device Monitor VD {v2.5} ------------> 

    Please login or register to see this attachment.

     

    Use this version if you HAVE Smart Message Hub installed

    >> Network Device Monitor VD {v 2.6} -----------> 

    Please login or register to see this attachment.

     

     

     

    Thanks to @jompa68 , @petergebruers , @sonnyboy and @boerremk for their input

     

    Regards

    -f

     

    Sir,

    What is the port for oneplus 5t and Vivo V9 Phone

     

    thanks

    • 0
  • Inquirer
  • Posted
    1 hour ago, bpkurmi said:

    What is the port for oneplus 5t and Vivo V9 Phone

    Not sure, I use Fing or another similar app to find open ports 

    Phones are notorious for shutting down ports whne the screen or phone goes to sleep

    • 0
    Posted

    How can I now use the status "Online/Offline" to start a scene?

    • 0
    Posted

    I was wondering about the same thing. I would like to run a scene, if the Samsung TV is ON (online), turn Sonos OFF.  Could it be added somewhere in the main loop?

    • 0
    Posted

    @AutoFrank  I checked port for Samsung S9+. Discovered open port 6100/tcp.  Work in Lan Monitor 2.5.

    • 0
    Posted (edited)

    Just add two more ports:

    - Logitech HarmonyHub: Port = 8088

    - Vorwerk Kobold VR200: Port = 8081 Do not use as the Kobold stops working as soon as it gets pinged :(

    Cheers,

    Lodi

    Edited by Lodi
    • 0
    Posted

    Hi,

     

    Motorola moto G6

    I have try to find a open port on my daughter cell phone, I have try to port scan ports 1-65000 without results, I have also try 5060 without results.

    Grateful for help :)

    //Tigger

    • 0
    Posted

    @AutoFrank I love your VD. I've connected 40-odd devices now and it's a relief to have a way to keep track of them all.

     

    I did some hacking to your code to:

    1. add an "*" against the device being refreshed. I set sleep to 15000, as don't need instant notice of devices being offline, but I do want to see which device is currently being checked when I'm looking at the VD

    2. I also added some code to make sure the notification e.g. email only gets sent after two loops of being "offline", this way where i have devices that are rebooted I don't get spammed with unwanted emails. 

     

    It all works perfectly so far!

     

    I'm thinking about adding code to check the status of devices connected to wall plugs, so I can have one place to check on all devices. I'm not sure if you've ever wanted to do this, but the VD you created is a great place to keep track of all devices in one place.

     

    I can send you my code hacks for 1 & 2 above, however I'm sure you could write something much better.

     

    • 0
  • Inquirer
  • Posted
    10 hours ago, amilanov said:

    @AutoFrank I love your VD. I've connected 40-odd devices now and it's a relief to have a way to keep track of them all.

     

    I did some hacking to your code to:

    1. add an "*" against the device being refreshed. I set sleep to 15000, as don't need instant notice of devices being offline, but I do want to see which device is currently being checked when I'm looking at the VD

    2. I also added some code to make sure the notification e.g. email only gets sent after two loops of being "offline", this way where i have devices that are rebooted I don't get spammed with unwanted emails. 

     

    It all works perfectly so far!

     

    I'm thinking about adding code to check the status of devices connected to wall plugs, so I can have one place to check on all devices. I'm not sure if you've ever wanted to do this, but the VD you created is a great place to keep track of all devices in one place.

     

    I can send you my code hacks for 1 & 2 above, however I'm sure you could write something much better.

     

    @amilanov

    Glad you like it and hack away.. :-)

     

    It doesn't work for all devices as some go to sleep (phones, amazon echo devices, etc) and with some the ethernet adapter stays 'awake' for a while after the device powers down/goes to standby

     

    I use Unifi network equipment and use@10der Unifi checker and presence checker for them to automatically turn off my security system when we open the front door

    The LAN checker wouldn't work reliably in the situation

     

    .. enjoy

     

     

    • Thanks 1
    • 0
    Posted
    3 hours ago, AutoFrank said:

    doesn't work for all devices as some go to sleep (phones, amazon echo devices, etc) and with some the ethernet adapter stays 'awake' for a while after the device powers down/goes to

     

    I only use it for devices that are online all the time ie I wouldn't use it for a device that goes to sleep like a phone. 

     

    I setup all my unifi access points on it, but now it looks like I need to find this unifi checker you speak of. 

     

     

    • 0
    Posted

    Please login or register to see this link.

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...