Git Product home page Git Product logo

mmm-dwd-warnweather's Introduction

Anurag's GitHub stats

Top Langs

mmm-dwd-warnweather's People

Contributors

codac avatar d-rickyy-b avatar lavolp3 avatar lukeskywalker92 avatar metalminotaur avatar ostfilinchen avatar rabbit83ka avatar smarrk avatar spitzlbergerj avatar todt40 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mmm-dwd-warnweather's Issues

request is deprecated

In node_helper.js request is used but deprecated.
Please implement for example node-fetch instead.

I don't have the skills for that.

SyntaxError: Unexpected token

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"

			}

Ort nicht gefunden

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?

Multiple WARN during install

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.

css changes all Backgrounds of other icons

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.

Server only: data does not load

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.

Untransparent icons

Hey there, thanks for the nice tool.

I'd appreciate if you could add transparent icons. The given icons are not transparent and hence cannot be used with a background image, which I use, because I won't use it as a mirror but as kind of digital picture frame with information on it.

image

warnCellID gets different results than region (NAME)

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:

Bildschirmfoto 2020-06-17 um 18 09 01
Bildschirmfoto 2020-06-17 um 18 10 25

typo in README.md

Just a small typo in README.md but without ' ', it wont' start ;-)

-> header: Wetterwarnungen,
should be: header: 'Wetterwarnungen',

Text is everytime left-aligned

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

Inclusion.....

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. :)

DWD_Name nicht eindeutig

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...

:)

Ort nicht gefunden

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)

DWD-Name is used twice

use WARNCELLID to identify the location

var regionFilter = encodeURIComponent("WARNCELLID='" + region.reg + "'");

Seems not to be working any more...

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!

Disable display of module when there is no warning.

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.

icons do not work

Hi,

I have this view since some days.
image

Is it my system? or a bug in the module?

I have:
node v18.18.0
npm v9.8.1
MM v2.20.1

thanks
Kai

hide warning above specified elevation / order

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):

wetter2

Thats the warning-situation with elevations from DWD:
wetter1

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?).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.