This project monitors how many people are currently in the swimming-pools of Strasbourg, France, and write it in a CSV file.
pip install
python wacken-checker.py <pool> # e.g. 'schiltigheim'
docker build -t wacken-checker .
docker run -d -e POOL=wacken -v `pwd`/reports:/reports wacken-checker
List of pools:
schiltigheim
: Centre Nautique de Schiltigheim (48.6123770720720, 7.72908979086701)hautepierre
: Piscine de Hautepierre (48.5983064284019, 7.69324795811826)hardt
: Piscine de la Hardt (48.5304900493167, 7.70187167930799)kibitzenau
: Piscine de la Kibitzenau (48.5574641069371, 7.76380840638018)robertsau
: Piscine de la Robertsau (48.6173032255352, 7.78917997795127)lingolsheim
: Piscine de Lingolsheim (48.5628668947217, 7.68157667603039)ostwald
: Piscine de Ostwald (48.5473112963048, 7.71203524662106)wacken
: Pisicne du Wacken (48.6011130870981, 7.76750947125112)
You can also define the following environment vars:
DEBUG
: if1
, it will print the result to the output in addition to writing to a CSV fileFILENAME
: define the file where the results will be saved. Default :{pool}-report.csv
were pool is the codename of the selected poolPOOL
: define the selected pool (will be overrided by the first argument if it exists)FREQUENCY
: frequency of the monitoring, in seconds. Default : 300sec (5min).THRESHOLD
: minimum amount to trigger a notification (falling edge behavior)DISCORD_ENDPOINT
: URL of the Discord webhook to send a notification (if empty, no notification will be sent)