**** Discussion for Homeseer 3 version here ****
Announcement
Collapse
No announcement yet.
Jon00 Cumulative Uptime Monitor For Homeseer Devices
Collapse
X
-
You need to tell the script what parameters in the ini file you wish to use via the optional parameters.
It looks like you have 11 devices.
If you wanted to start the timer for all 11 devices you would call the script as follows:
Jon00Uptime.vben("Main","1,1|2,1|3,1|4,1|5,1|6,1|7,1|8,1|9,1 |10,1|11,1")
or individually:
Jon00Uptime.vben("Main","1,1")
(for device 1)
Jon00Uptime.vben("Main","2,1")
(for device 2 etc)
and to stop:
Jon00Uptime.vben("Main","1,0")
(for device 1)
Jon00Uptime.vben("Main","2,0")
(for device 2 etc)
To update all devices only you use:
Jon00Uptime.vben("Main","1|2|3|4|5|6|7|8|9|10|11")
or individually:
Jon00Uptime.vben("Main","1")
etc
Comment
-
Hi Jon,
Just discovered this great script. I'm using it to track runtime for my two furnaces and trigger reminders for filter changes. This is great because I have one furnace that only provides heat to the underground part of the house so it only runs in the Winter but the upstairs furnace provide heating and cooling so it has much more runtime and thus needs the filter changed more often.
Thanks for the great work,
Ken"if I have seen further [than others], it is by standing on the shoulders of giants." --Sir Isaac Newton (1675)
Comment
-
Can't reset.....
Jon,
I've downloaded your script and set up 3 devices (1 daily, 1 weekly, 1 monthly) for my HVAC cooling function. 1 is daily, 2 is weekly, 3 is monthly.
I've got the devices to update, and set up events (midnight, midnight on Sunday, Midnight on 1st of every month) to reset the devices.
This first morning, the daily device was not reset, though the script ran.
The parameters passed from the script are: ("Main","1,Reset") I copied this from the documentation.
Here's my device 1 from the config file:
[Device1]
Housecode=y80
Title=Daily Cooling
TextBeforeValue="Cooling today: "
TextAfterValue=
TimeStringFormat=2
ShowTriggers=0
EventValueType=
DeviceValueType=1
EventName1=
EventValue1=
EventName2=
EventValue2=
EventName3=
EventValue3=
*** Read Values Only ***
TotalUptime=0 days 18 hrs 49 mins
CurrentDays=0
CurrentHours=18
CurrentMinutes=49
CurrentSeconds=0
TotalDays=0
TotalHours=18
TotalMinutes=1129
TotalSeconds=67740
LastReset=
LastOff=6/22/2009 3:31:51 PM
LastOn=6/22/2009 3:40:51 PM
LastTotalUptime=18:07:00
Status=3
CurrentUptime=18:49:00.0806432
EventFlag1=
EventFlag2=
EventFlag3=
Did I just not read the manual correctly (again....)?
I also set up a manual event, copied/pasted the parameters from the documentation and ran it manuallly. Here is a line from the log:
6/22/2009 4:15:44 PM - Info - Running script in background: Jon00Uptime.vben("Main","1,Reset")
Comment
-
2.2.0.11
Jon,
It's 2.2.0.11 . I have avoided the 2.3 hype and continuing upgrade/beta hassles as much as possible. Too many people have lost their databases, lost their events, had a password put on their .mdb for my tastes. Therefore, I have left well enough alone for a while.
Let me know if this is incompatible with my version.
Thanks for all you do....
Gayle
Comment
Comment