Author Topic: Event & Device Activity Log - does a plugin exist?  (Read 105 times)

Aaron

  • Sr. Member
  • ****
  • Posts: 387
Event & Device Activity Log - does a plugin exist?
« on: May 18, 2013, 03:06:22 pm »
I know we can pull Vera logs, but these have a ton of system info in it. I'm curious if there is, or someone would be willing to build, simply a log that records device and event actions.

Example...

15:51:32   Vera.Master Bathroom.Vanity Light.ON.0.0
15:51:34   Vera.Master Bathroom.Vanity Light.ON.31.0
15:51:36   Vera.Master Bathroom.Vanity Light.ON.100.0
15:54:29   Vera.Master Bedroom.Fan Light.OFF.100.0
15:54:31   Vera.Master Bedroom.Fan Light.ON.80.0


... this is actually how the plugin for EventGhost logs activity for the Vera. I'm actually trying to remove dependance on EventGhost now that the awesome PLEG plugin exists (thanks Richard!).

Brientim

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1132
Re: Event & Device Activity Log - does a plugin exist?
« Reply #1 on: May 18, 2013, 03:55:32 pm »
Could you use datamine which can record the state changes on/off to achieve the desired outcome.

Aaron

  • Sr. Member
  • ****
  • Posts: 387
Re: Event & Device Activity Log - does a plugin exist?
« Reply #2 on: May 19, 2013, 08:49:02 am »
Could you use datamine which can record the state changes on/off to achieve the desired outcome.

There are a few reasons DM will not work for this...

1) I'd need to setup ALL possible devices
2) DM does not log Events
3) DM has a MAJOR problem - if there are too many log files it stops working. I hit this issue about once a month with only a few items being tracked then I must go in and manually delete files.

I'm looking for a plain/simple text log file of all activity for all Devices & Events.


garrettwp

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3652
  • Vera 2, 3, Lite
Re: Event & Device Activity Log - does a plugin exist?
« Reply #3 on: May 19, 2013, 04:59:15 pm »
Chris released a new version of DM and he's been running it for a long time now with many datasets. You might want to contact him regarding your issue.

- Garrett


Chris

  • Hero Member
  • *****
  • Posts: 737
Re: Event & Device Activity Log - does a plugin exist?
« Reply #4 on: Today at 02:37:09 am »
1) I'd need to setup ALL possible devices
I think any solution would need to do this. I don't think there's a way in Vera to get a notification for every variable without explicitly setting up a callback (I might be wrong on this, but I think this is the case). This could probably be automated, but the result would be the same.

2) DM does not log Events
dataMine logs all events into a file called "Notifications" (with a number on the end). The format of this file is a JSON file so it's pretty easy to parse and use. All events are logged - not just events from devices you have configured for dataMine.

3) DM has a MAJOR problem - if there are too many log files it stops working. I hit this issue about once a month with only a few items being tracked then I must go in and manually delete files.
This is not correct - maybe your USB stick has an issue (??) or something else is wrong, however I have thousands of files in my DM directory and have no problems (I log 85 variables right now, so that means 85 files per week). I know of others that are doing similar (and I know of one user who is logging hundreds of variables). USB usage on Vera does have some issues, and you may be hitting against them...

Also, as Garrett says, the latest dataMine update changes the format so there are fewer files in each directory (only 1 file per week).

Cheers
Chris