This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3.10 | |
# quick and dirty and semi-simple script which shutsdown an inseego M2000 hotspot | |
# also can send information on the usage stats to DynamoDB, | |
# and if battery is low can send a PushOver notification to | |
# encourage you to plug it in. | |
# you need to create a local_secrets.py which has all your secrets in it (password, aws, pushover, etc). | |
# should be run periodically (crontab or systemd), and probably should also gate it on a successful ping to 192.168.1.1 | |
import requests | |
import re | |
import hashlib |