From bda41395386f308d9b40339b50697b4589118acc Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 28 May 2016 18:28:36 +0200 Subject: [PATCH] Add watcher for wetter.de --- .../webpages/weather/wetterde/WetterDeHamburgWatcher.kt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/main/kotlin/net/pterodactylus/rhynodge/webpages/weather/wetterde/WetterDeHamburgWatcher.kt diff --git a/src/main/kotlin/net/pterodactylus/rhynodge/webpages/weather/wetterde/WetterDeHamburgWatcher.kt b/src/main/kotlin/net/pterodactylus/rhynodge/webpages/weather/wetterde/WetterDeHamburgWatcher.kt new file mode 100644 index 0000000..89322e9 --- /dev/null +++ b/src/main/kotlin/net/pterodactylus/rhynodge/webpages/weather/wetterde/WetterDeHamburgWatcher.kt @@ -0,0 +1,16 @@ +package net.pterodactylus.rhynodge.webpages.weather.wetterde + +import net.pterodactylus.rhynodge.filters.HtmlFilter +import net.pterodactylus.rhynodge.queries.HttpQuery +import net.pterodactylus.rhynodge.watchers.DefaultWatcher + +/** + * [DefaultWatcher] implementation that gets the weather for Hamburg. + * + * @author [David ‘Bombe’ Roden](mailto:bombe@pterodactylus.net) + */ +class WetterComHamburgWatcher : DefaultWatcher( + HttpQuery("http://www.wetter.de/deutschland/wetter-hamburg-18219464/wetterbericht-aktuell.html"), + listOf(HtmlFilter(), WetterDeFilter()), + WetterDeTrigger() +) -- 2.7.4