Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: Event Log too short (10 events) Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
ccrider
Newbie
Newbie


Joined: July 01 2018
Location: United States
Online Status: Offline
Posts: 5
Posted: July 29 2018 at 13:12 | IP Logged Quote ccrider

Running trial 2.1b
Can only get 10 events in the Event Window; is there a way to make it longer? 2 days would suffice for troubleshooting

Tried searching; found how to make it shorter (trim formula), but that's not where I'm at. :)

Thanks Much!
Chris

__________________
ES-1400e; yes that old...
Back to Top View ccrider's Profile Search for other posts by ccrider
 
ccrider
Newbie
Newbie


Joined: July 01 2018
Location: United States
Online Status: Offline
Posts: 5
Posted: July 29 2018 at 15:41 | IP Logged Quote ccrider

N-E-V-E-R M-I-N-D   
Found the difference between Powerhouse Status with the 'anemic' event display and the ***actual*** Event Log.


__________________
ES-1400e; yes that old...
Back to Top View ccrider's Profile Search for other posts by ccrider
 
ccrider
Newbie
Newbie


Joined: July 01 2018
Location: United States
Online Status: Offline
Posts: 5
Posted: July 29 2018 at 15:50 | IP Logged Quote ccrider

OK; while I'm on the 'animal'; the ph.trimeventlog formula doesn't seem to shorten the log.

What am I doing wrong?
somebody slap me...

__________________
ES-1400e; yes that old...
Back to Top View ccrider's Profile Search for other posts by ccrider
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4264
Posted: July 29 2018 at 16:48 | IP Logged Quote dhoward

The "mini" eventlog in the PowerHome Status window defaults to the last 10 events and is updated in realtime. It sounds as if you found the eventlog
report which will give you the full eventlog but is not updated and is essentially a snapshot of the log from the time you launched the report.

However, you can change the default number of rows in the realtime eventlog if you like but editing the pwrhome.ini file. Under the [PowerHome Status]
section, you should see the parameter "eventlogrows=10". Just change the 10 to a value that suits you and then save the file. You'll need to restart or
reinit PowerHome for this change to take effect.

In your message, you seem to be using the VBA function ph.trimeventlog(). This should work but I would first verify that the PowerHome function
ph_trimeventlog is properly working. This function takes a single parameter, the number of days worth of data you want to keep. If you use a value of 1,
it will discard all eventlog data prior to 00:00:00 of the current day. So if you run it now and the current time is 17:46:00, you will only have data for
the current day from 00:00:00 to 17:46:00. Only the current days worth of data. A value of 2 will have the entire previous day and the current day's data.
I would also verify the return from the function is returing a 0. Any other value means an error occurred and the log would not have been trimmed.

Hope this helps,

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
ccrider
Newbie
Newbie


Joined: July 01 2018
Location: United States
Online Status: Offline
Posts: 5
Posted: August 01 2018 at 19:07 | IP Logged Quote ccrider

Thanks Dave!


__________________
ES-1400e; yes that old...
Back to Top View ccrider's Profile Search for other posts by ccrider
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum