All,
the attached script will monitor the status of any number of devices and then update a kpl btn according to the following algorithm.
if any light is on, the kpl will turn on (if it is not already on). if all the lights are off, the kpl btn will turn off.
To install do the following:
1. put the DeviceCallback.vb file in your \scripts folder.
2. customize the device codes according to your needs
3. add the following line to your startup.txt file
hs.runex "DeviceCallback.vb","register", ""
4. Restart hs
Each time you modify the source file, i suggest you restart hs.
Note: You may use this and customize as you wish, but i can not provide vb.net programming help on this; i'm running out of bandwidth right now.
the attached script will monitor the status of any number of devices and then update a kpl btn according to the following algorithm.
if any light is on, the kpl will turn on (if it is not already on). if all the lights are off, the kpl btn will turn off.
To install do the following:
1. put the DeviceCallback.vb file in your \scripts folder.
2. customize the device codes according to your needs
3. add the following line to your startup.txt file
hs.runex "DeviceCallback.vb","register", ""
4. Restart hs
Each time you modify the source file, i suggest you restart hs.
Note: You may use this and customize as you wish, but i can not provide vb.net programming help on this; i'm running out of bandwidth right now.
Comment