MTry / homebridge-smart-irrigation

Turn any electrical irrigation valve into a smart-valve.. or run your pumps on a smart schedule based on your climate! This homebridge plugin exposes a multi-zone irrigation sprinkler dummy control system to Apple's HomeKit. Although a dummy, it brings smarts of an evapotranspiration based climate and plant adaptive irrigation controller with the use of OpenWeatherMap API. The plugin can optionally email you, and/or send you push notifications through Pushover or Pushcut, with the watering schedule it has calculated, or when a watering run is completed, along with the next 7-day weather forecast. Added option to expose system controls to Homekit allowing a user to enable/disable irrigation, rechecks, push and email notifications from within the Home App. Associated WaterLevel Characteristic shows the % of watering cycle remaining.
MIT License
78 stars 4 forks source link

Error send email #10

Closed Sergbmw closed 3 years ago

Sergbmw commented 3 years ago

Set Email notifications to: Enable (node:26880) UnhandledPromiseRejectionWarning: Error: EACCES: permission denied, mkdir '/run/s6/services/homebridge-config-ui-x/homebridge-smart-irrigation' (node:26880) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 3)

Node.js - v14.15.4 NPM - v6.14.10

Docker

MTry commented 3 years ago

Looks like a permission issue when trying to cache the email enable state - could you check if the same happens when enabling other options? Not able to replicate the same..

Sergbmw commented 3 years ago

This only

MTry commented 3 years ago

This is indeed strange that it is only showing permission error for email enable - could you try to uninstall and reinstall? Just make sure you save the settings as I understand there are quite a few and you don't want to be entering them again..

MTry commented 3 years ago

Did this get solved for you? What changed? Your feedback might throw some light for any other users facing a similar challenge on docker..

Sergbmw commented 3 years ago

No, just switched to Pushover