#15 Request: command for Dutch weather forecast

Closed
opened 5 years ago by mouz · 5 comments
mouz commented 5 years ago

Return Dutch forecast for 1 day when '!knmi' is issued.

Source of the text returned will be the first paragraph of this page: https://knmi.nl/nederland-nu/weer/verwachtingen (or any better parseable source, e.g. an xml document published by knmi.nl)

Return Dutch forecast for 1 day when '!knmi' is issued. Source of the text returned will be the first paragraph of this page: https://knmi.nl/nederland-nu/weer/verwachtingen (or any better parseable source, e.g. an xml document published by knmi.nl)
mouz commented 5 years ago
Owner

Can use as a source document: ftp://ftp.knmi.nl/pub_weerberichten/basisverwachting.xml

Extract report->data->block where field_id=='Verwachting' and valid_id=='dag00_01', then use content of field_content.

Also end the returned text with https://knmi.nl/nederland-nu/weer/verwachtingen to serve both as a credit and as a pointer for extended forecast information.

Can use as a source document: ftp://ftp.knmi.nl/pub_weerberichten/basisverwachting.xml Extract ``report->data->block`` where ``field_id=='Verwachting'`` and ``valid_id=='dag00_01'``, then use content of ``field_content``. Also end the returned text with ``https://knmi.nl/nederland-nu/weer/verwachtingen`` to serve both as a credit and as a pointer for extended forecast information.
mouz commented 5 years ago
Owner

If ftp://ftp.knmi.nl/pub_weerberichten/knmi_waarschuwingen_nl.txt exists, add an extra line with the contents of the first 3 paragraphs of that file.

If ftp://ftp.knmi.nl/pub_weerberichten/knmi_waarschuwingen_nl.txt exists, add an extra line with the contents of the first 3 paragraphs of that file.
mouz commented 5 years ago
Owner
Instead of the FTP links can also use RSS feeds: * http://projects.knmi.nl/RSSread/rss_KNMIverwachtingen.php * http://projects.knmi.nl/RSSread/rss_KNMIwaarschuwingen.php Example usage for golang: https://stackoverflow.com/questions/25332175/golang-rss-xml-parsing-atom10link-overrides-link
mouz referenced this issue from a commit 4 years ago
mouz reopened 4 years ago
mouz commented 4 years ago
Owner

Re-opened: extend the output with an alert message if applicable.

Re-opened: extend the output with an alert message if applicable.
mouz commented 2 years ago
Owner

Closing, splitting off alert request through issue #22.

Closing, splitting off alert request through issue #22.
Sign in to join this conversation.
No Label
No Milestone
No assignee
1 Participants
Loading...
Cancel
Save
There is no content yet.