Add watcher for wetter.de
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 28 May 2016 16:28:36 +0000 (18:28 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 28 May 2016 16:28:36 +0000 (18:28 +0200)
src/main/kotlin/net/pterodactylus/rhynodge/webpages/weather/wetterde/WetterDeHamburgWatcher.kt [new file with mode: 0644]

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 (file)
index 0000000..89322e9
--- /dev/null
@@ -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()
+)