Homeseer Event Age - how to manage

Forum over Homeseer scripts (DUTCH forum)

Moderators: TANE, Ruud

Post Reply
DJF3
Advanced Member
Advanced Member
Posts: 895
Joined: Thu Jul 12, 2007 9:28 am
Contact:

Homeseer Event Age - how to manage

Post 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/
Last edited by DJF3 on Sat Jul 07, 2012 12:17 pm, edited 2 times in total.
AshaiRey
Senior Member
Senior Member
Posts: 1310
Joined: Mon Feb 02, 2009 5:27 pm
Location: Netherlands
Contact:

Re: Homeseer Event Age - how to manage

Post 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.
Bram
DJF3
Advanced Member
Advanced Member
Posts: 895
Joined: Thu Jul 12, 2007 9:28 am
Contact:

Re: Homeseer Event Age - how to manage

Post 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)
AshaiRey
Senior Member
Senior Member
Posts: 1310
Joined: Mon Feb 02, 2009 5:27 pm
Location: Netherlands
Contact:

Re: Homeseer Event Age - how to manage

Post 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.
Bram
DJF3
Advanced Member
Advanced Member
Posts: 895
Joined: Thu Jul 12, 2007 9:28 am
Contact:

Re: Homeseer Event Age - how to manage

Post by DJF3 »

Thinking about this, I could also sort on the age which has the same result ;-)
DJ
AshaiRey
Senior Member
Senior Member
Posts: 1310
Joined: Mon Feb 02, 2009 5:27 pm
Location: Netherlands
Contact:

Re: Homeseer Event Age - how to manage

Post by AshaiRey »

So, why didn't do that in the first place... :-)
It's a nice maintainance tool.
Bram
DJF3
Advanced Member
Advanced Member
Posts: 895
Joined: Thu Jul 12, 2007 9:28 am
Contact:

Re: Homeseer Event Age - how to manage

Post 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
Post Reply

Return to “Homeseer Scripts Forum”