Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RunTimer2 driver
#11
I don't think anyone else is using my RunTimer2 driver, but I have made a few updates in version 2.23 (attached to Post #1)

I added a QueryTextVal Daily.Days which will return the number of days data has been accumulating.  This allows you to divide the totals and get nice averages.

I also added a new Daily mode: Daily! which will only output data for interesting days (days that had at least one run).  This is ideal for devices that aren't used often.

I also changed the Daily date format to include year (I have 6 years of data for some of my devices).

--Bob
Reply
#12
I just started using it - I have about 1 months of data now tracking my HVAC units.  The reason I wanted it initially was because I know one of the units leaks a little freon, and I added this "Fix a Flat" equivalent, and wanted to see if that would fix it, or if it would continue to leak.  

Unfortunately, I probably missed the Houston heat window, so I may not know until next year whether it fixed it.  I am tracking run times for 3 units, both heating and cooling, so I have 6 items in the driver.  I originally tried the original runtimer, but it didn't provide as much data as your modified driver.

The biggest problem for me was that i wanted to track the last 24 hours (which it has readily available), the last week (which it stores on disk), and the last month (which it stores on disk).  I will eventually probably look at year to year.  The hard part was getting the week/month data from a string list into variables that I could display (I wanted total runtime over that period, the number of runs, and the percentage of time it was running over that period).  I wrote a very long action command that does this and saves it to a persistent variables driver, and so far all is working great. I also am graphing the data using the datalogdb driver and graphamatic.

I will definitely check out your updated one soon.  Thanks for sharing!
Reply
#13
Okay, I have been inspired to add some new reporting modes to this driver:
Weekly, Monthly, and Yearly.  These allow you to compare usage across different weeks, months, and years.

I also added a .LastPeriodRuns and .LastPeriodTime QueryText for you.  If you get the Weekly summary report and then get these last period sub fields it will tell you your usage in the current week.  It also works for Month and Year of course (and also Daily, but that would just be silly since you can use the live field for the daily data).

Enjoy -- Bob

P.S.  Here is a yearly log of my FrontDoor:

.jpg   RunTimerPopup.jpg (Size: 29.93 KB / Downloads: 13)
In the seven years I have been tracking only 2016 is complete.  I guess CQC was down at midnight at least one day all the other years.

You can also see that my door has opened 12,025 times in 7 years for a total of 5days 16hrs and 32minutes.  Hard to believe my door is been open for almost a whole day every year!
Reply
#14
That is going to be great!  I am definitely going to be using this!
Reply
#15
I could also modify the LastPeriod sub fields to NOT include the current day data. That way you could update a variable just after midnight every day, and use the logic server to add the variable to the RunsToday and TimeToday field to achieve a live RunsThisWeek type of field.

Let me know how you want to use it and I can make a simple change for you.

--Bob
Reply
#16
I have just updated the first post with version 2.31 of this driver.

Main addition is comparison types < and > have been added (as well as the default =).  Also comparisons now occur in the data type of the field.

I have also added a hysteresis capability for devices that appear to be running for a moment, but really haven't started yet.  This was all done so I can identify when my Washing machine is running based on how much power it is using.:

LaundryWasher, Power2.RESMON#LaundryWasher~Watts, 6, >, 5, 10
LaundryDryer, Power2-.RESMON#LaundryDryer~Watts, 20, >
PoolHWasher, Power2-.RESMON#PoolHWasher~Watts, 2, >, 25, 2
PoolHDryer, Power2.RESMON#PoolHDryer~Watts, 15, >

The dryers are well behaved, but the LaundryWasher is not considered running until it has used >6 watts for 5 seconds, and it is not considered stopped until it has used <=6 watts for 10seconds.  The PoolHWasher has a lower power threshold, but longer start wait time because it uses some power when starting then idles for 20seconds before finally beginning.

I also converted my <moniker>_<timer>_Daily.log files to .csv files which can be read by standard spreadsheet programs (I now use text dates instead of hex timestamps, etc.).

I now require you to specify which fields need to be polled (and increase poll frequency for those fields to every 10secs).  Thanks to BiDirectional latching triggers (as of 5.3.913), there should be no need for polling whatsoever.  You do need to make sure your trigger thresholds match the config file though...

--Bob
Reply
#17
The Text in your first post has some characters that apparently aren't compatible with MyBB.  Could you please update, or post a text file of the information.

Thanks,
Blake
Reply
#18
That happened during the move to the new server a while back and the upgrade to the latest MyBB. Not sure what happened. It doesn't affect new posts and didn't affect most old posts.
Dean Roddey
Explorans limites defectum
Reply
#19
Okay, first post has been repaired...
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  JVC D-ILA Driver jokermac 16 119 Yesterday, 07:10 PM
Last Post: Mark Stega
  Writing Driver - Varying commands based on checksum gReatAutomation 3 405 07-22-2019, 01:08 PM
Last Post: Dean Roddey
  Samsung HLxxA750 DLP Beta Driver jrunde 37 19,948 07-19-2019, 01:24 PM
Last Post: gReatAutomation
  Amazon Echo Hue Simulator Driver wuench 123 53,938 07-08-2019, 09:53 AM
Last Post: Dean Roddey
  New Driver - How hard would this be? kblagron 4 931 05-20-2019, 11:28 AM
Last Post: zaccari
  Cytech Comfort Driver znelbok 6 857 04-10-2019, 05:39 PM
Last Post: znelbok
  OpenHAB Driver whozeawhat 6 2,702 01-16-2019, 06:45 AM
Last Post: greymatter
  LIFX Driver bobskie708 14 4,490 01-10-2019, 06:36 PM
Last Post: Dean Roddey
  XBMC Driver wuench 428 191,210 12-28-2018, 11:07 AM
Last Post: dogman
  Driver for Bigass Fan lleo 7 1,270 11-25-2018, 08:57 AM
Last Post: Dean Roddey

Forum Jump:


Users browsing this thread: 1 Guest(s)