From: David ‘Bombe’ Roden Date: Sat, 28 May 2016 16:28:36 +0000 (+0200) Subject: Add watcher for wetter.de X-Git-Tag: v2~122 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=bda41395386f308d9b40339b50697b4589118acc;p=rhynodge.git Add watcher for wetter.de --- 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() +)