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
Download: http://www.domoticaworld.com/scripts/homeseer-event-age/
Homeseer Event Age - how to manage
Homeseer Event Age - how to manage
Last edited by DJF3 on Sat Jul 07, 2012 12:17 pm, edited 2 times in total.
Re: Homeseer Event Age - how to manage
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.
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
Re: Homeseer Event Age - how to manage
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)
Thanks for catching the link issue, no clue how that happened. (updated link)
Re: Homeseer Event Age - how to manage
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.
- 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
Re: Homeseer Event Age - how to manage
Thinking about this, I could also sort on the age which has the same result
DJ
DJ
Re: Homeseer Event Age - how to manage
So, why didn't do that in the first place...
It's a nice maintainance tool.
It's a nice maintainance tool.
Bram
Re: Homeseer Event Age - how to manage
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