lolautruche / SurveillanceStationDomoticz

Synology SurveillanceStation plugin for Domoticz
MIT License
4 stars 1 forks source link

Refreshing all minutes ? #1

Closed a20gard closed 4 years ago

a20gard commented 4 years ago

Hello Thanks a lot for this plugin I am using it but it is generating numerous logs, even while debug mode is set to false... It seems that it is linked to the update of the status : is there a way to refresh in a time-space of 10 minutes instead of each minute ? Thanks a lot

lolautruche commented 4 years ago

Hi @a20gard

Thank you for your message. I'll see what I can do to lower the verbosity. However, raising the time-space would mean that if you activate/deactivate home mode from SurveillanceStation, you wouldn't see the change in Domoticz immediately, or withing a reasonable time-space.

a20gard commented 4 years ago

Thanks for your answer

That would be wonderful for those that don't want to use the toggle in DS CAM anymore... because at the end, you don't need it anymore if you have everything in Domoticz !

Remaining that way : Maybe I've made a mistake in my configuration ? because I'm having that kind of log each minute :

2019-11-07 23:36:18.281 (Surveillance Station) Success... 2019-11-07 23:36:18.281 (Surveillance Station) /webapi/quer.... 2019-11-07 23:36:18.481 (Surveillance Station) /webapi/auth.cgi?... 2019-11-07 23:36:19.483 (Surveillance Station) {"data":{"s... 2019-11-07 23:36:19.483 (Surveillance Station) Authenticated with... 2019-11-07 23:37:18.204 (Surveillance Station) /webapi/entry.cgi?api=SYNO 2019-11-07 23:37:18.354 (Surveillance Station) {"data":.... 2019-11-07 23:37:18.355 (Surveillance Station) Updating HomeMode status: False

.....

lolautruche commented 4 years ago

Maybe I could introduce a setting for such switch, but IMHO it is important to keep both systems in sync. One setting could be the polling period (defaults to e.g. 5 minutes but you may change it).

Regarding the log, I may be wrong but they come from Domoticz Python API itself. I never managed to silent them. I'll see what I can do.

lolautruche commented 4 years ago

Hello @a20gard . The log issue has been fixed in 07d7c82