This project monitors the electricity status for a local area, comparing the actual state with an expected schedule. It uses either the UptimeRobot API or web scraping to determine the current electricity status.
-
Clone the repository:
git clone https://github.com/zimoby/Local-Blackout-Monitor-Ukraine.git cd local-blackout-monitor
-
Install dependencies:
pip install -r requirements.txt
-
Set up your environment variables:
- Copy
.env.example
to.env
- Fill in your specific values in the
.env
file
- Copy
-
Run the script:
python localBlackoutMonitor.py
Edit the .env file with your specific settings:
GROUP_NUMBER
: Your outage group numberURL_HOUSE_STATE
: URL for scraping the current electricity statusDTEK_URL
: URL for fetching stable outage informationUPTIMEROBOT_API_KEY
: Your UptimeRobot API key (if using API method)