rszimm / sprinklers_pi

Sprinkling System Control Program for the Raspberry Pi
GNU General Public License v2.0
309 stars 100 forks source link

Enhancement - Notifications #154

Open MechEng70 opened 4 years ago

MechEng70 commented 4 years ago

Could you provide a way of sending notifications? Pushover?

MechEng70 commented 3 years ago

`#!/bin/bash function push { curl -s -F "token=PUSHOVER_TOKEN" \ -F "user=PUSHOVER_USER" \ -F "title=SprinklerPi" \ -F "message=$1" https://api.pushover.net/1/messages.json }

push "TEXT_TO_BE_TRANSMITTED"`

Here is an example bash script from my linux system.

Some of the notification statuses could be the following (check boxes to detemrine what each PUSHOVER_USER/PUSHOVER_TOKEN would like to have:

  1. Zone started/ended
  2. Seasonal Start/end
  3. End of Day Summary
  4. Weekly Summary
  5. Monthly Summary
  6. Update available