Coder Social home page Coder Social logo

jirouette / wacken-checker Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 8 KB

Monitors the swimming-pools of Strasbourg

License: Do What The F*ck You Want To Public License

Python 95.39% Dockerfile 4.61%
pools csv monitors python docker swimming-pools strasbourg notification webhook discord

wacken-checker's Introduction

Wacken Checker

This project monitors how many people are currently in the swimming-pools of Strasbourg, France, and write it in a CSV file.

Installation

Using pip

pip install
python wacken-checker.py <pool> # e.g. 'schiltigheim'

Using Docker

docker build -t wacken-checker .
docker run -d -e POOL=wacken -v `pwd`/reports:/reports wacken-checker

Usage

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 : if 1, it will print the result to the output in addition to writing to a CSV file
  • FILENAME : define the file where the results will be saved. Default : {pool}-report.csv were pool is the codename of the selected pool
  • POOL : 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)

wacken-checker's People

Contributors

jirouette avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.