ThePheonixGuy / sunsynk-scraper-addon

MIT License
8 stars 2 forks source link

Auto restart on error? #12

Open SgtParper opened 1 year ago

SgtParper commented 1 year ago

Hi there

Great add-on, but generates ERROR from time to time because the website receives too many connection attempts. I have the add-on set to request data every 300s, which I believe is the maximum and if I restart it manually normal service is resumed. So can HA restart the scraper automatically if such an error state occurs?

Thanks.

ThePheonixGuy commented 1 year ago

Can you possibly provide your logs when this error is occuring? I've not seen the same behaviour on my end so want to try diagnose.

That being said, the addon can definitely do with a huge reliability pass.

SgtParper commented 1 year ago

Hi JamesI've set HA to restart it every 6 hours as a temporary measure, as it typically works fine for up to a day. Then I notice that it has stopped posting data and a restart fixes it. I'll disable it and catch the error in the log. -------- Original message --------From: James Reynolds @.> Date: 03/04/2023 08:16 (GMT+00:00) To: ThePheonixGuy/sunsynk-scraper-addon @.> Cc: SgtParper @.>, Author @.> Subject: Re: [ThePheonixGuy/sunsynk-scraper-addon] Auto restart on error? (Issue #12) Can you possibly provide your logs when this error is occuring? I've not seen the same behaviour on my end so want to try diagnose. That being said, the addon can definitely do with a huge reliability pass.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

SgtParper commented 1 year ago

Hi buddy

I've not been able to replicate this error, I'm afraid. I'll keep looking out and will get back to you if it happens again.

On another note, is it possible to edit the data that the scraper collects? Occasionally I get spurious data that it would be good to be able to amend.

Cheers