You need to know the following settings:
- pushover account email
- pushover account password
- pushover device name (choose by yourself)
- pushover device ID (see script below to gather device ID)
optional wifi
- wifi essid
- wifi password
optional remote syslog server
- remote syslog server host
- remote syslog server port
You can make use of create_device.py
to generate a new Pushover device and
gather required credentials. Use python3 (not micropython) to run the script.
virtualenv .
./bin/pip install -r requirements
./bin/python create_device.py
create_device.py
will generate a config snipped to use. Make sure to keep the
device ID, since there is no way to get this information without deleting the
device within the Pushover admin interface and re-create it afterwards.
Ceate config.json
in project root folder. Wifi and Syslog sections are
optional.:
{
"pushover": {
"device_id": "your_pushover_device_id",
"email": "your_pushover_account_email",
"password": "your_pushover_password"
},
"do_not_disturb": {
"before": 7,
"after": 22
},
"syslog": {
"host": "127.0.0.1",
"port": 514
},
"wifi": {
"essid": "your_wifi_essid",
"password": "your_wifi_password"
}
}
micropython main.py
logging is licensed under MIT license.
urequests is licensed under MIT license.
usocketio/uwebsocket is licensed under MIT license.