CapnBry / HeaterMeter

HeaterMeter and LinkMeter Arduino BBQ Controller
https://tvwbb.com/forums/heatermeter-diy-bbq-controller.85/
MIT License
503 stars 83 forks source link

[lm] Add functionality to choose from a list of push notification providers #23

Closed dwright134 closed 8 years ago

dwright134 commented 8 years ago

In order keep the alarm settings table clean while adding my push provider of choice, I decided to update the config interface so that it would allow users to choose from a list of push providers and have a single row of checkboxes to enable push notifications for each alarm type. This is setup similar to the way the SMS settings are setup.

They way that is on the config page, you are now presented with a Push Notifications section that allows the user to select from a dropdown list of defined providers. (Defaults are in place for Pushbullet so that existing users that have it setup, don't loose their settings.) When selecting between the list of providers, the settings that belong to that provider appear are the only ones that appear. Once the settings for a provider have been defined and save, you can enable the push notifications just like any other notification service. Error handling and logging have been added for the push notification alarm scripts and both services have been tested.

Please see the images below. I'd be happy to integrate any other push notification services that get requested to be added.

Check boxes

push checkboxes

Pushover settings

pushover settings

Pushbullet settings

pushbulllet settings