toto / homebridge-airrohr

HomeBridge module for the DIY luftdaten.info particulates sensor. See http://luftdaten.info how to build your own
http://luftdaten.info
MIT License
52 stars 12 forks source link

Read history persistence options from config file #17

Closed arouanet closed 6 years ago

arouanet commented 6 years ago

Hi Thomas,

The following pull request is a tweak on PR #14 to add the ability to set history persistence options from the config.json file.

In my previous PR I hardcoded it to saving history to the filesystem (storage: 'fs'), but I realised this might not be what people want, especially if they don't use the Elgato Eve app. Others might want to use the Google Drive storage option. For both these reasons, reading the options from the config seem more reasonable and flexible.

If you feel like it should behave differently by default, please let me know and I will change it.