Gets the energy prices from the Awattar API and pushes them to an InfluxDB.
For information about supported commands, use --help:
docker run --rm mwinterer/awattar-scraper:latest --helpINFLUXDB_V2_URL: URL of the InfluxDB (version 2 - either OSS or Cloud). Defaults tohttp://localhost:8086.INFLUXDB_V2_ORG: InfluxDB organisation. Required.INFLUXDB_V2_BUCKET: InfluxDB bucket within the organization to write the data to. Defaults toawattar.INFLUXDB_V2_TOKEN: InfluxDB access token. Required if authentication is required.
The following examples assume the required environment variables (see above) are properly set. This can either be done via:
- Option
-e - Environment file (
--env-file <file>) - Defining the environment variable on the host
docker run --rm mwinterer/awattar-scraper:latest --start tomorrowdocker run --rm mwinterer/awattar-scraper:latest --start todaydocker run --rm mwinterer/awattar-scraper:latest --start 2024-01-01 --end 2024-01-31docker run --name awattar-scraper mwinterer/awattar-scraper:latest --start tomorrow... so it can be started again, e.g., via a cron job every day:
docker start awattar-scraper