unwetter

所属分类:救灾/预报
开发工具:Python
文件大小:31309KB
下载次数:0
上传日期:2023-02-16 05:23:02
上 传 者sh-1993
说明:  自动通知新闻编辑室来自DWD的天气警告
(Automatically notify newsroom about weather warnings from DWD)

文件列表:
.locales (12, 2022-03-16)
LICENSE (1065, 2022-03-16)
Pipfile (534, 2022-03-16)
Pipfile.lock (90319, 2022-03-16)
Procfile (69, 2022-03-16)
app.json (555, 2022-03-16)
app.py (6798, 2022-03-16)
assets (0, 2022-03-16)
assets\fonts (0, 2022-03-16)
assets\fonts\VT323-Regular.ttf (149132, 2022-03-16)
assets\fonts\WDR Sans Book.ttf (52284, 2022-03-16)
assets\fonts\WDRSlab-BoldVZ-v101.ttf (175244, 2022-03-16)
assets\images (0, 2022-03-16)
assets\images\bg_square.png (7085728, 2022-03-16)
assets\images\bg_wide.png (8394277, 2022-03-16)
assets\images\legend_ne_wide.png (129353, 2022-03-16)
assets\images\legend_ne_wide_other.png (140499, 2022-03-16)
assets\images\legend_se_square.png (88228, 2022-03-16)
assets\images\legend_se_square_other.png (99169, 2022-03-16)
assets\images\legend_se_wide.png (129375, 2022-03-16)
assets\images\logo_aks_square.png (63752, 2022-03-16)
assets\images\logo_aks_wide.png (114833, 2022-03-16)
assets\images\logo_facebook.png (7037, 2022-03-16)
assets\images\logo_wdra_square.png (61802, 2022-03-16)
assets\images\logo_wdra_wide.png (102432, 2022-03-16)
assets\images\mask_square.png (6876751, 2022-03-16)
assets\images\mask_wide.png (8055612, 2022-03-16)
assets\images\overlay_square.png (170927, 2022-03-16)
assets\images\overlay_wide.png (212806, 2022-03-16)
assets\shapes (0, 2022-03-16)
assets\shapes\map.json (1181463, 2022-03-16)
assets\wina_template.xml (7256, 2022-03-16)
bin (0, 2022-03-16)
bin\pre_compile (263, 2022-03-16)
config (0, 2022-03-16)
config\config.yml (405, 2022-03-16)
config\regions.yml (5646, 2022-03-16)
... ...

# 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 ### Database We use the ObjectRocket MongoDB Heroku Add-On. Provision the Add-On and create a database called `uwa` with the user `uwa`. ### Environment variables ```yaml 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 ORMONGO_PASSWORD: # The password you set for the MongoDB database ``` ### Heroku Labs - Runtime dyno metadata for linking releases to sentry - `heroku labs:enable runtime-dyno-metadata -a ` ### 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](https://blog.sentry.io/2017/05/15/heroku-commits) to connect Heroku and Sentry for better release tracking.

近期下载者

相关文件


收藏者