Skip to content

I send you the latest ENS-plots from ECMWF via Telegram (@EnsPlotBot)

License

Notifications You must be signed in to change notification settings

jonasjucker/ensplotbot

Repository files navigation

I am a Telegram bot that provides ECMWF meteograms for various locations in Switzerland. Users can subscribe to daily forecasts or request one-time forecasts for specific locations.

Features

  • Subscribe to daily ECMWF meteograms for specific locations.
  • Request one-time ECMWF meteograms for specific locations.
  • View available locations
  • Unsubscribe from daily forecasts

Running the Bot

To run the bot, follow these steps:

  1. Ensure you have Python installed on your system.
  2. Install the required dependencies:
    pip install -r requirements.txt
  3. Run the bot:
    python main.py --bot_token YOUR_SECRET_BOT_TOKEN --bot_backup $(pwd)/backup --log_level 10

Adding a new location

To add a new location to the bot, follow these steps:

  1. Open the stations.yaml file in the repository.
  2. Add a new entry for the station with the following format, e.g. for Geneva:
    - name: Geneva
      api_name: Gen%C3%A8ve # needed for names with special character like é or è
      region: Romandie
      lat: 46.2022
      lon: 6.14569
  3. Obtain the api_name, lat, and lon values from the Opencharts website:
    • Find your location on the map.

      Select Location
    • Click on "Export plot" on the right side.

      Export Plot
    • Choose < > script

      Export for script
    • This will generate a link where the correct coordinates (lat, lon) and the api_name are visible.

      Generate link
    • Copy these three values and add them to the stations.yaml file.

Testing

pytest -v test/*

Contributing

Contributions are welcome! Please open an issue or submit a pull request on GitHub.

About

I send you the latest ENS-plots from ECMWF via Telegram (@EnsPlotBot)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published