This API will provides 10 minute updates on electricity load and weather for Hungary and provides electricity load forecasts as well using AI.
Refer to OMSZ Terms and Conditions on how to use the data this project downloads, manages in a Database.
Refer to MAVIR publication guide on MAVIR SystemLoad on how to use electricity data.
python -m venv .venv
".venv/Scripts/activate"
pip install -r requirements.txt
Specify MySQL database connection data in .env file.
# .env example
DB_HOST = localhost
DB_USER = sebok
DB_PASS = sebokpassword
DB_NAME = hunelwapi
python src/main.py # API will start on localhost:8000
Switches:
- -h, --help: Show help message and exit
- -sc, --skip_checks: Skip initial check for new data, used for restarting
- -d, --dev: Run in development mode, no updates happen, internet connection not needed