GithubHelp home page GithubHelp logo

corneliusroemer / unwetter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wdr-data/unwetter

1.0 1.0 0.0 72.31 MB

Automatically notify newsroom about weather warnings from DWD

License: MIT License

Python 92.98% Shell 0.08% HTML 0.34% CSS 0.20% TypeScript 4.06% JavaScript 0.04% Jupyter Notebook 2.29%

unwetter's Introduction

Unwetter

Automatically notify newsroom about weather warnings from DWD

Map generation

The WDR Sans fonts, map design and source images are proprietary and not licensed under the MIT license. To make your own design, do the following steps:

  1. Optional: Edit config.yaml to select the desired state(s)
  2. Start a local development Flask instance using FLASK_APP=app FLASK_ENV=development pipenv run flask run
  3. Navigate to http://127.0.0.1:5000/basemap to get a black/white map template
  4. Use the template to create your own map design
  5. Replace the files in assets/images
  6. Replace the WDR Sans fonts in assets/fonts
  7. Update the font import and drawing in src/unwetter/map.py:draw_text

Deployment

Environment variables

NVS_FTP_URL: # FTP host for Nachrichtenverteilsystem uploads
NVS_FTP_PASS:
NVS_FTP_USER:
SENTRY_DSN: # DSN for sentry.io for error tracking
SLACK_BOT_TOKEN: # Bot token for sending messages to Slack
SLACK_CHANNEL: # Channel ID to send updates to
TWITTER_ACCESS_TOKEN:
TWITTER_ACCESS_TOKEN_SECRET:
TWITTER_CONSUMER_KEY:
TWITTER_CONSUMER_SECRET:
TWITTER_DEMO_HANDLE: # Twitter handle that should be mentioned in demo tweets
WDR_PROJECT_INFO_URL: https://unser.wdr.de/sites/DWDUnwetterwarnungen94e47adr/SitePages/Details%20Unwetterwarnungen.aspx

Heroku Labs

  • Runtime dyno metadata for linking releases to sentry
    • heroku labs:enable runtime-dyno-metadata -a <appname>

Scheduled Jobs

After deployment, run heroku ps:scale clock=1 to make sure that no two schedulers are running at the same time.

Heroku release tracking in Sentry

Follow this guide to connect Heroku and Sentry for better release tracking.

unwetter's People

Contributors

jh0ker avatar christianjoe avatar tcmetzger avatar dependabot[bot] 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.