lukeskywalker92 / mmm-dwd-warnweather Goto Github PK
View Code? Open in Web Editor NEWWeather-Warnings for MagicMirror2
License: MIT License
Weather-Warnings for MagicMirror2
License: MIT License
There are two links on the DWD site:
The link in your readme.md (region)
http://www.dwd.de/DE/wetter/warnungen_landkreise/warnWetter_node.html
Another for the specific location
http://www.dwd.de/DE/wetter/warnungen/warnWetter_node.html
Try as example “Weil am Rhein”
Can MMM-DWD-WarnWeather only query for the “Landkreis”?
Thanks
In node_helper.js request is used but deprecated.
Please implement for example node-fetch instead.
I don't have the skills for that.
Hallo!
Ich habe schon viel zu Konfigurieren versucht aber bekomme dieses Modul einfach nicht zum Laufen! Bekomme immer diesen Fehler.
Kann mir irgendjemand dort weiterhelfen?
[LOG] Whoops! There was an uncaught exception...
[ERROR] SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse ()
at Request._callback (/home/pi/MagicMirror/modules/MMM-DWD-WarnWeather/node_helper.js:64:22)
at Request.self.callback (/home/pi/MagicMirror/modules/MMM-DWD-WarnWeather/node_modules/request/request.js:185:22)
at Request.emit (events.js:200:13)
at Request. (/home/pi/MagicMirror/modules/MMM-DWD-WarnWeather/node_modules/request/request.js:1154:10)
at Request.emit (events.js:200:13)
at IncomingMessage. (/home/pi/MagicMirror/modules/MMM-DWD-WarnWeather/node_modules/request/request.js:1076:12)
at Object.onceWrapper (events.js:288:20)
at IncomingMessage.emit (events.js:205:15)
at endReadableNT (_stream_readable.js:1154:12)
Config:
{
module: 'MMM-DWD-WarnWeather',
position: 'topCenter',
header: 'Wetterwarnungen',
config: {
region: "Aachen",
changeColor: true,
interval: 10 * 60 * 1000, // every 10 minutes
loadingText: "Warnungen werden geladen...",
displayRegionName: false,
noWarningText: "Keine Warnungen"
}
Hallo,
bei wird kein Feld namens DWD Name angezeigt.
Mir war klar das dies nicht einfach wird ;-) auch im Hinblick auf die offenen Issues.
Mein Problem ist aber das bei mir nie ein Ort gefunden wird... nicht einmal wenn ich den original Code
incl der original Ortsangabe (Kreis Lörrach) verwende.
Bei mir steht immer: Ort nicht gefunden
Ich bin völlig ratlos um ehrlich zu sein... kann mir jemand helfen?
I get the following WARN after running the install
npm install
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
added 51 packages, and audited 52 packages in 9s
2 packages are looking for funding
run `npm fund` for details
2 moderate severity vulnerabilities
Some issues need review, and may require choosing
a different dependency.
For me no region is working - only "Ort nicht gefunden".
Is this module working for anybody?
In CSS we find:
.weathericon {
background-image: url(icons/icons-transparent.png);
background-repeat: no-repeat;
display: block;
}
this leads to troubles for other components which also uses .weathericons. E.G. the weatherforecast.
This is issue is only visible if you don't use a black background. E.G. you put a picture viewer in the background.
better:
.MMM-DWD-WarnWeather .weathericon {
background-image: url(icons/icons-transparent.png);
background-repeat: no-repeat;
display: block;
}
so the change works for the warning icons only.
I configured the module and use it in a Server only set up. The module does not load the data but shows the load data text.
I want to show the innerHeader, only when a Warning is present.
I also want to hide the whole Module, unless a warning is present.
so i put in:
hideNoWarning: true,
displayInnerHeader: true,
Both together dosent work.
First: Thank you very much for the update.
Unfortunately somethings seems not quite right.
If I am not wrong this is warnCellID;NAME;;KURZNAME for the city I want.
809279112;Stadt Dingolfing;;Dingolfing;
When I use the warnCellID I get a weather warning.
If I use region: "Stadt Dingolfing"
(the corresponding NAME) I do get no warning.
When using 'Dingolfing' (which would be 'KURZNAME') I get an error "City not found".
The following screenshots display the different results:
If position is "position: 'top_right'," the noWarningText does not align to the right side
Just a small typo in README.md but without ' ', it wont' start ;-)
-> header: Wetterwarnungen,
should be: header: 'Wetterwarnungen',
Is there a way to use this for places other than Germany? I haven't seen a module like this for USA.
Hello,
I like your Module very much! I set the position of the module to the right sight, under the calendar-module. When a calendar-entry has a long text, the complete WarnWetter-Module switch its position a bit to the middle, because the calendar-module walks near to the middle of the screen.
Can You tell me, how I can set the config, that the Warn-Wetter-module ist right-aligned ?
Sorry for my bad english. Thank You!
Greetings from Cologne!
Raipel
Just wondering if you had time to chat about this module......
You can email me at [email protected]
Thanks!!
Sorry I know this isn't an issue. :)
As stated in the headline, the symbol for "Light Glaze" / "Leichte Glätte" is missing.
See also https://forum.magicmirror.builders/topic/17441/dwd-warnweather-icon-problem
Hallo LukeSkywalker92,
Kannst du dir bitte dein Modul etwas genauer anschauen?
Ich habe das Problem, dass mein Ort "Vöhringen" gleich 2x in Deutschland auftaucht.
Laut deiner Beschreibung soll man den Wert "DWD_Name" der interaktiven Karte von DWD übernehmen.
Problem: Beide Städte haben den selben Wert! Dein Script spuckt daraufhin nur ein "Ort nicht gefunden!" aus. Selbst die Angaben der Lat und Long funktionieren nicht.
Was ebenfalls nicht funktioniert ist die Beschreibung aus dem anderen Issue ( #8 )
Allerdings habe ich über diesen herausgefunden dass mein Ort Vöhringen im Pulldown-Menü als "Vöhringen (Kreis Neu-Ulm)" gelistet ist. Doch weder dieser Wert, noch "Kreis Neu-Ulm" funktionieren. Einzig und allein der Wert "Neu-Ulm" funktioniert.
Es läuft also irgendwas in Richtung "eindeutige Zuordnung" schief.
Wäre cool wenn das gefixt wird, damit das nicht auch anderen ähnlich wie mir fast zwei kostbare Stunden "herumprobieren" kostet...
:)
Seems DWD has changed something, but I can't figure our what.
The warnCellID and regions don't work anymore for quite some place, one example is Ratingen.
Some things are described https://www.dwd.de/DE/leistungen/opendata/help/warnungen/dwd_hilfe_umstellung_pdf.pdf?__blob=publicationFile&v=5 but there are also some changes (done?) since summer 2020 https://www.dwd.de/DE/leistungen/opendata/hilfe.html
Hi, leider wird bei meinem Spiegel seit kurzem der Ort nicht gefunden. Es wird nur "Ort nicht gefunden. Warnungen werden geladen" angezeigt.
Bis dahin haben die Warnungen mit region und Kurzname in der config funktioniert. Ich habe auch die warnCellID ausprobiert, aber das ändert auch nix.
Eventuell damit verbunden, in der mm-error.log steht:
[05.06.2021 21:07.20.893] [ERROR] Whoops! There was an uncaught exception...
[05.06.2021 21:07.20.900] [ERROR] SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse ()
at Request._callback (/home/pi/MagicMirror/modules/MMM-DWD-WarnWeather/node_helper.js:82:22)
at Request.self.callback (/home/pi/MagicMirror/modules/MMM-DWD-WarnWeather/node_modules/request/request.js:185:22)
at Request.emit (events.js:315:20)
at Request. (/home/pi/MagicMirror/modules/MMM-DWD-WarnWeather/node_modules/request/request.js:1154:10)
at Request.emit (events.js:315:20)
at IncomingMessage. (/home/pi/MagicMirror/modules/MMM-DWD-WarnWeather/node_modules/request/request.js:1076:12)
at Object.onceWrapper (events.js:421:28)
at IncomingMessage.emit (events.js:327:22)
at endReadableNT (_stream_readable.js:1220:12)
Sobald ich das modul einbinde startet MM nicht mehr, sobald ich das Modul auskommentiere läuft wieder alles
use WARNCELLID to identify the location
var regionFilter = encodeURIComponent("WARNCELLID='" + region.reg + "'");
Thanks very much for the module, I do like the idea very much!
Unfortunately, I don't get warnings displayed, even when selecting regions, that do have actual active warnings , according to the DWD-Website (https://www.dwd.de/DE/wetter/warnungen_gemeinden).
I tried to use the DWD_NAME as well as the NAME listed in this MAP and Table (https://maps.dwd.de/geoserver/dwd/wms?service=WMS&version=1.1.0&request=GetMap&layers=dwd:Warngebiete_Gemeinden&styles=&bbox=5.876914,47.270362,15.037507,55.044381&width=1024&height=868&srs=EPSG:4326&format=application/openlayers#) as region option in the modules config.
Any hints?
Please!
It would be nice to be able to prevent the module getting displayed at all when there is no warning.
The Addon MMM-RMV for example only shows information when there is actually coming a bus/train. Otherwise the module is not visible.
Hi,
have I missed something, but Id like to hide warnings about a specified elevation.
Like "hideabove: 750"
Now, I get 3 warnings for snow, but I dont care about warnings above 750 meters.
So the "above 800m" and "above 1000m" should not show up (unfortunately even the warning-elevation does not show up in MM):
Thats the warning-situation with elevations from DWD:
And additionally, is there a way that the most serious warning is on top of the list (like in the DWD-list)?
Now, the most serious the last one in the list (or its simply in alphabetical order?).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.