Skip to content

Instantly share code, notes, and snippets.

View techberet's full-sized avatar
💭
I may be slow to respond.

techberet

💭
I may be slow to respond.
View GitHub Profile
@techberet
techberet / hotspot_shutdown.py
Created August 24, 2023 03:31
Inseego M2000 Hotspot Shutdown Script
#!/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