rsporny / homebridge-gpio-blinds

Homebridge plugin to control blinds via Raspberry Pi GPIO pins.
MIT License
13 stars 10 forks source link

Keep last state of blinds after power loss #12

Closed rsporny closed 6 years ago

adobe75 commented 6 years ago

Can we write this.currentPosition to log file (on disk?) without big performance hit? And then read this back in on plugin init?

rsporny commented 6 years ago

We are gonna use local storage with this lib https://www.npmjs.com/package/node-persist. It's much faster than writing to a file.

rsporny commented 6 years ago

resolved in release v1.1.2