Page 1 of 1

Homeseer Event Age - how to manage

Posted: Wed Jul 04, 2012 12:59 pm
by DJF3
Team,

As I was working on a script that shows the age of events I found one by Jim Steed that was programmed way better. So I used that as the basis and added some features.
Original script: http://board.homeseer.com/showthread.php?p=1023020

Features Added
- Filter for Event groups
- Filter for minimum age
- Events ran in last 24hrs are gray (as they probably are less important for the purpose of this script)
- Lay-out changes

Features Added 0.6
- Removed event group column (displayed differently now)
- Fixed Age sorting

Image

Download: http://www.domoticaworld.com/scripts/homeseer-event-age/

Re: Homeseer Event Age - how to manage

Posted: Thu Jul 05, 2012 9:13 am
by AshaiRey
The link at the bottom should read domoticaworld.com/scripts/homeseer-even ... event-age/

Also the date sort isn't correct. It just sorts on the first number (all one's then all two's ect) and not on date.

Re: Homeseer Event Age - how to manage

Posted: Thu Jul 05, 2012 10:19 am
by DJF3
Yeah, the age sort has some challenges, have to find the time to look at that ;-)
Thanks for catching the link issue, no clue how that happened. (updated link)

Re: Homeseer Event Age - how to manage

Posted: Thu Jul 05, 2012 10:34 am
by AshaiRey
A quick fix would be
- Transform the date to yyyy mm dd
- make sure that mm and dd are always 2 digits e.g. 03 instead of 3

Now a sort will give correct results.

When you get a bit creative you can also use DateDiff()
Use a fixed date to compare the date to that you want to test and use hours difference for example.
The larger the number the older the date is. :-)
You can use that in the same bubble sort routine you are using now.

Re: Homeseer Event Age - how to manage

Posted: Thu Jul 05, 2012 11:48 am
by DJF3
Thinking about this, I could also sort on the age which has the same result ;-)
DJ

Re: Homeseer Event Age - how to manage

Posted: Thu Jul 05, 2012 1:12 pm
by AshaiRey
So, why didn't do that in the first place... :-)
It's a nice maintainance tool.

Re: Homeseer Event Age - how to manage

Posted: Thu Jul 05, 2012 5:12 pm
by DJF3
:)

UPDATE: Just updated and published version 0.6.
- Fix for age sorting
- Removed "group" column.. Now events in 1 group are displayed differently (nice!)
- Some lay-out changes

DJ