mmm-yrnow's Issues
Temperature is NaN
I only get NaN for the temperature. Do you have a fix for that?
Problem with loading Yr
After writing the code exactly as written here, the code does not work for me. It only says "loading" without anything else being displayed. Anybody else who has had problems with this, and fixed it? Thank you for answers!
CURRENTWEATHER_DATA notification
I use Yr for most my weather forcast and weather on my mirror. Though I noticed it doesn't send the CURRENTWEATHER_DATA notification like the default app does. I am trying to make a background that changes based on the weather, but I can't without the weather data. I want the module to work generally, so optimally the CURRENTWEATHER_DATA notification would be based on the one from the default module. Thank you!
Did this stop working december 2021
Suddenly stopped working for me. It just says loading.
Sluttet å fungere
Sluttet å fungere for meg for noen uker siden. Ser ut som API ikke fungerer. Har prøvd med flere ulike locationId, uten hell. Eksempel: https://www.yr.no/api/v0/locations/1-500418/forecast/now
Som gir responsen:
{
"message": "not found"
}
1-15399 fungerer heller ikke, men eksempelet i dokumentasjonen ser ut til å fungere.
Problem med å laste bilder
Lokasjon fungerer utmerket etter oppskrift, men ingen bilder. Ingen feilmeldinger i konsoll heller. Ser ei heller ut som elementet lages i DOM.
Tar gjerne i mot litt hjelp for hvordan feilsøke for å rette problemet.
feature: Oppdatering av location basert på notification
Hadde vært nice å kunne oppdatere location dynamisk, basert på at det sendes inn locationId.
Fant ikke noe API for å hente ut locationId basert på søkestring som var åpent for CORS, men man kan hvertfall lage sin egen lille userstore og lagre locationIds manuelt der med dette tillegget:
update-yrlocation.zip
usage:
this.sendNotification("YR_UPDATE_LOCATIONID", {locationId: '1-123456'});
Wrong installation instructions
I see you have taken over this from NRK Beta, but the installation instructions in the readme still refers to the NRK repo:
git clone https://github.com/nrkno/MMM-YrNow
Weather forecast does not update
When there's no precipitation in the nowcast, the current weather forecast will be displayed. But the symbol and temperature are never updated. The reason is a check for "this.loaded" before calling processNowcast and processForecast.
Modulen ser ut til å slutte å fungere
Hei!
Jeg har brukt denne modulen uten noe problem nå i over en måned, men nå ser den ut til å ha sluttet å fungere helt.
Det spiller ingen rolle hva slags ID jeg bruker, det eneste responsen jeg får på speilet er "Laster inn..." og der blir den stående.
Noen andre som har samme problem?
Example not working
I cannot get the module to work. Not with the provided example, neither with modified coordinates/location.
I have tried the MMM-YrThen, and it works, so my docker has a connection and is able to communicate with YR.
I have read that several other persons also have problems. Is this Module depricated?
Fix error loading unknown.svg on startup
When starting the module, it tries to load unknown.svg from the image folder.
Location problems
The "now" resource is no longer working for all locations. Example Ole Nordgaards veg, Trondheim:
https://www.yr.no/api/v0/locations/1-2214224/forecast
is working, but https://www.yr.no/api/v0/locations/1-2214224/forecast/now
is not found.
Looks like the "now" resource no longer works for most locations. I have tried a few, like Trondheim (1-211102), but the only one I find working is Blindern: https://www.yr.no/api/v0/locations/1-73738/forecast/now
.
It is also hard to find location id's, but I found them here: www.yr.no/en
Are you planning to maintain this module? I assume it is used a lot, as it is a nice module.
Behøver hjelp med dette. Forstår ikke hvorfår den ikke vil fungere
C:\Users\Fredr\MagicMirror>npm start
[email protected] start C:\Users\Fredr\MagicMirror
electron js/electron.js
[29.10.2021 17:27.43.261] [LOG] Starting MagicMirror: v2.17.1
[29.10.2021 17:27.43.263] [LOG] Loading config ...
[29.10.2021 17:27.43.266] [LOG] Loading module helpers ...
[29.10.2021 17:27.43.266] [LOG] No helper found for module: MMM-SimpleLogo.
[29.10.2021 17:27.43.271] [LOG] Initializing new module helper ...
[29.10.2021 17:27.43.272] [LOG] Module helper loaded: updatenotification
[29.10.2021 17:27.43.272] [LOG] No helper found for module: clock.
[29.10.2021 17:27.43.317] [LOG] Initializing new module helper ...
[29.10.2021 17:27.43.318] [LOG] Module helper loaded: calendar
[29.10.2021 17:27.43.320] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'request'
Require stack:
- C:\Users\Fredr\MagicMirror\modules\MMM-YrNow\node_helper.js
- C:\Users\Fredr\MagicMirror\js\app.js
- C:\Users\Fredr\MagicMirror\js\electron.js
- C:\Users\Fredr\MagicMirror\node_modules\electron\dist\resources\default_app.asar\main.js
[29.10.2021 17:27.43.321] [LOG] Loading module helpers ...
[29.10.2021 17:27.43.321] [LOG] No helper found for module: MMM-SimpleLogo.
[29.10.2021 17:27.43.322] [LOG] Initializing new module helper ...
[29.10.2021 17:27.43.322] [LOG] Module helper loaded: updatenotification
[29.10.2021 17:27.43.322] [LOG] No helper found for module: clock.
[29.10.2021 17:27.43.323] [LOG] Initializing new module helper ...
[29.10.2021 17:27.43.323] [LOG] Module helper loaded: calendar
[29.10.2021 17:27.43.324] [ERROR] App threw an error during load
[29.10.2021 17:27.43.324] [ERROR] Error: Cannot find module 'request'
Require stack:
- C:\Users\Fredr\MagicMirror\modules\MMM-YrNow\node_helper.js
- C:\Users\Fredr\MagicMirror\js\app.js
- C:\Users\Fredr\MagicMirror\js\electron.js
- C:\Users\Fredr\MagicMirror\node_modules\electron\dist\resources\default_app.asar\main.js
- at Module._resolveFilename (internal/modules/cjs/loader.js:887:15)
at Function.n._resolveFilename (electron/js2c/browser_init.js:257:1128)
at Function.Module._resolveFilename (C:\Users\Fredr\MagicMirror\node_modules\module-alias\index.js:49:29)
at Module._load (internal/modules/cjs/loader.js:732:27)
at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
at Module.require (internal/modules/cjs/loader.js:959:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object. (C:\Users\Fredr\MagicMirror\modules\MMM-YrNow\node_helper.js:2:15)
at Module._compile (internal/modules/cjs/loader.js:1078:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10)
[29.10.2021 17:27.43.325] [ERROR] Whoops! There was an uncaught exception...
[29.10.2021 17:27.43.327] [ERROR] Error: Cannot find module 'request'
Require stack: - C:\Users\Fredr\MagicMirror\modules\MMM-YrNow\node_helper.js
- C:\Users\Fredr\MagicMirror\js\app.js
- C:\Users\Fredr\MagicMirror\js\electron.js
- C:\Users\Fredr\MagicMirror\node_modules\electron\dist\resources\default_app.asar\main.js
- at Module._resolveFilename (internal/modules/cjs/loader.js:887:15)
at Function.n._resolveFilename (electron/js2c/browser_init.js:257:1128)
at Function.Module._resolveFilename (C:\Users\Fredr\MagicMirror\node_modules\module-alias\index.js:49:29)
at Module._load (internal/modules/cjs/loader.js:732:27)
at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
at Module.require (internal/modules/cjs/loader.js:959:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object. (C:\Users\Fredr\MagicMirror\modules\MMM-YrNow\node_helper.js:2:15)
at Module._compile (internal/modules/cjs/loader.js:1078:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\Users\Fredr\MagicMirror\modules\MMM-YrNow\node_helper.js',
'C:\Users\Fredr\MagicMirror\js\app.js',
'C:\Users\Fredr\MagicMirror\js\electron.js',
'C:\Users\Fredr\MagicMirror\node_modules\electron\dist\resources\default_app.asar\main.js',
undefined
]
}
[29.10.2021 17:27.43.327] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[29.10.2021 17:27.43.328] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
[29.10.2021 17:27.43.358] [LOG] Launching application.
Next update should be extracted from HTTP header
The best way to use Yr API is to accept and use the HTTP headers. They will always be right
Dont work with new version
Awesome app but do not work with new update of mm
Can't get MMM-YrNow to work on fresh install
Here is the output I get, maybe someone smarter than me can spot what's going on:
[email protected] start
DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js[22.01.2023 20:48.18.855] [LOG] Starting MagicMirror: v2.22.0
[22.01.2023 20:48.18.861] [LOG] Loading config ...
[22.01.2023 20:48.18.871] [LOG] Loading module helpers ...
[22.01.2023 20:48.19.272] [LOG] Initializing new module helper ...
[22.01.2023 20:48.19.274] [LOG] Module helper loaded: MMM-BackgroundSlideshow
[22.01.2023 20:48.19.303] [LOG] Initializing new module helper ...
[22.01.2023 20:48.19.304] [LOG] Module helper loaded: MMM-Entur-tavle
[22.01.2023 20:48.19.307] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'request'
Require stack:
- /home/pi/MagicMirror/modules/MMM-YrNow/node_helper.js
- /home/pi/MagicMirror/js/app.js
- /home/pi/MagicMirror/js/electron.js
- /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
[22.01.2023 20:48.19.307] [LOG] Loading module helpers ...
[22.01.2023 20:48.19.308] [LOG] Initializing new module helper ...
[22.01.2023 20:48.19.309] [LOG] Module helper loaded: MMM-BackgroundSlideshow
[22.01.2023 20:48.19.310] [LOG] Initializing new module helper ...
[22.01.2023 20:48.19.310] [LOG] Module helper loaded: MMM-Entur-tavle
[22.01.2023 20:48.19.313] [ERROR] App threw an error during load
[22.01.2023 20:48.19.314] [ERROR] Error: Cannot find module 'request'
Require stack:
- /home/pi/MagicMirror/modules/MMM-YrNow/node_helper.js
- /home/pi/MagicMirror/js/app.js
- /home/pi/MagicMirror/js/electron.js
- /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
- at Module._resolveFilename (node:internal/modules/cjs/loader:963:15)
at n._resolveFilename (node:electron/js2c/browser_init:2:109416)
at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
at Module._load (node:internal/modules/cjs/loader:811:27)
at f._load (node:electron/js2c/asar_bundle:2:13328)
at Module.require (node:internal/modules/cjs/loader:1035:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (/home/pi/MagicMirror/modules/MMM-YrNow/node_helper.js:2:15)
at Module._compile (node:internal/modules/cjs/loader:1141:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1196:10)
[22.01.2023 20:48.19.316] [ERROR] Whoops! There was an uncaught exception...
[22.01.2023 20:48.19.322] [ERROR] Error: Cannot find module 'request'
Require stack:- /home/pi/MagicMirror/modules/MMM-YrNow/node_helper.js
- /home/pi/MagicMirror/js/app.js
- /home/pi/MagicMirror/js/electron.js
- /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
- at Module._resolveFilename (node:internal/modules/cjs/loader:963:15)
at n._resolveFilename (node:electron/js2c/browser_init:2:109416)
at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
at Module._load (node:internal/modules/cjs/loader:811:27)
at f._load (node:electron/js2c/asar_bundle:2:13328)
at Module.require (node:internal/modules/cjs/loader:1035:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (/home/pi/MagicMirror/modules/MMM-YrNow/node_helper.js:2:15)
at Module._compile (node:internal/modules/cjs/loader:1141:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1196:10) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/home/pi/MagicMirror/modules/MMM-YrNow/node_helper.js',
'/home/pi/MagicMirror/js/app.js',
'/home/pi/MagicMirror/js/electron.js',
'/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js',
undefined
]
}
[22.01.2023 20:48.19.322] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
[22.01.2023 20:48.19.323] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
Fontconfig warning: ignoring UTF-8: not a valid region tag
[22.01.2023 20:48.19.582] [LOG] Launching application.
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
failed to load swrast driver
^X^C/home/pi/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
request is needed.
Modulen trenger request for å fungere, eller så vil den ikke startet.
npm install request
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.