*** BPTWorld apps are no longer being developed or maintained. Thanks ***
Introducing 'Error Monitor'
Keep an eye out for errors that may pop up in the log.
Features:
Simple setup
Display a list of errors on your dashboard!
Get notified by Push
Use built in Switch to trigger a Rule/Cog/Piston
Error Monitor has a couple of failsafe features built in.
If the error message is the same as the last error message, it won't send the push unless you tell it to.
If the same error message is received 10 times in a row, EM will close the connection and put a warning in the log. This is to prevent the hub from slowing down.
Apps can be found on my GitHub or by using Bundle Manager
When reporting problems...
Be sure you are on the latest version. I won't troubleshoot an older version.
Turn on debug and screenshot the issue happening in the log. One line or just the error doesn't cut it. I need a log.
Post the screenshot of the log with an explanation of the problem.
The original plan was to include some options but at the end I wanted a stripped down, easy to use monitor. Any error is a bad thing, so I went without including any filtering.
My full blown Log Watchdog with filtering options is done but it can be dangerous. This also got a complete rewrite and it works awesome. Just didn't feel comfortable letting it out into the wild. Yet... Will see how it goes and I'm sure at some point I'll let it go.
Just a quick query.
I use pushover and have 3 hubs.
Does the pushover message just say the error or does it include a prefix for the hub ID and then the error message.
Not seeing any errors yet (don't want any either) but just wondering.
Thanks again.
It becomes dangerous when the actions taken to address an error cause more errors that the app tries to address, whch then cause more errors and before you know it….
Too many child apps can overload the system. Also, with filters you can 'request' too much info, which again can slow down the hub.
It has the "app/device name that caused the error - date/time - the error"
Steps have been taken to avoid this... code is trapped in try catch statements that spit out warnings instead of errors. Also if the error is the same as the previous error, no processing occurs. Stops the loop-de-loops.
What can I say, this has already thrown out an error that I knew nothing about.
A file in File Manager for Hubigraphs was corrupt for some reason.
Now sorted.
Thanks very much for this.
It's not working for me anymore. I just checked logs myself and their were errors that I was never notified about. I just the device info and they weren't in there either.
Edit: I noticed it said "disconnected". I do an automated weekly reboot on Sunday morning. I assume that had something to do with it? Will this need to be done every time?
I think I might need some clarification of the functions of the device that the info is sent to.
The app says it will turn on when there is new info. When does it turn off? I have one api that connects to a flaky API so it often produces errors but they are the same ones typically. I see in the device attributes that it's grabbing them but I don't get any notifications. I went in and I manually turned off the device and got notification again.
Not saying things aren't working per se, just that I am unclear on finer points of function.
Honest question: I see a method named webSocketStatus in the child device and in several other apps you have written (Event Engine, Event Watchdog, Log Watchdog), but I can’t find anywhere where this method is being called. Is that intentional or am I looking in the wrong places?
Ah, it’s part of the Hubitat websocket interface. That’s what I was missing. I was looking for it to be called explicitly in your code, but I guess Hubitat calls it for you.