Forecast and Warnings Data from Deutscher Wetterdienst

130 views
Skip to first unread message

Karen K

unread,
Mar 16, 2021, 11:54:48 AM3/16/21
to weewx-user
As WeeWX does not support forecast and warnings data of Deutscher Wetterdienst out of the box, I wrote some little scripts to download those data and process them for the use within WeeWX. To get it small and simple I did not include it in WeeWX by now, but wrote some separate scripts that are called by cron and create files to include in skins. 

I did not intend to publish those scripts, but as someone was interested in them I created a repository on Github: weewx-DWD.

I hope it may be useful to others, too. It is quite beta by now.

As data from Deutscher Wetterdienst are primarily interesting for people from Germany, the description on Github is in german.

hesf...@gmail.com

unread,
Mar 17, 2021, 2:51:38 AM3/17/21
to weewx-user
Hallo,
I would like to use parts of your code for the DWD warning.
My code for dwd warning below


and deliver good results

Hartmut

Karen K

unread,
Mar 17, 2021, 3:26:26 AM3/17/21
to weewx-user
You can do so. It's open software. The GPL only requires, that copyright infos are not removed and software not sold for money.

I thought about including in searchlist myself. Maybe I can use your extension then.

hesf...@gmail.com

unread,
Mar 17, 2021, 7:23:17 AM3/17/21
to weewx-user
Hallo.
Do you have an idea how I can search the json-date for the stringI "106439000" in "warnings": {"106439000": [{"regionName": "Rheingau ...
Wenn ich die Zahlenfolge 106439000 als "warni" benutze um

alt  -->  w_regi = data['warnings']['106439000'][0]['regionName']

neu --> w_regi = data['warnings']['warni'][0]['regionName']

erhalte ich div Fehler
Hartmut

Karen K

unread,
Mar 17, 2021, 7:42:20 AM3/17/21
to weewx-user
Ohne die Fehler zu sehen, ist es relativ schwierig, etwas dazu zu sagen. Eigentlich bin ich auch nicht so wirklich für das Debuggen von anderer Leute Programmen zuständig. 

Vielleicht sind die Hochkommata um "warni" zu viel (wenn ich die Frage da richtig verstanden habe).

comment for English speaking users: Hartmut experiences an error in a program that he wrote (not one of weewx-DWD) and asks for help.

Tom Keffer

unread,
Mar 17, 2021, 9:31:46 AM3/17/21
to weewx-user
The GPL allows the software to be sold for money, but it also requires that the code be released along with it. Subsequent users are free to release the code without charge.

The intention of the GPL is to prevent code from becoming close-sourced, not to prevent money from being made off of it ("Free speech, not free beer.")

Confusing, but it all stems from Richard Stallman's experience with Symbolics, a company that privatized code from the MIT AI lab.

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/adeed573-efcb-448f-a64f-5dfd099148ffn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages