Read the statement by Michael Teeuw here.
MMM-bergfex not working
-
sorry, I am totaly new to this world, my first Raspberry project.
pi@MagicMirror:~/MagicMirror/modules/MMM-bergfex $ npm install async --save npm WARN MMM-bergfex@ license should be a valid SPDX license expression + async@3.2.0 added 1 package from 1 contributor and audited 66 packages in 2.709s 2 packages are looking for funding run `npm fund` for details found 0 vulnerabilities pi@MagicMirror:~/MagicMirror/modules/MMM-bergfex $ npm install sys -- save npm WARN MMM-bergfex@ license should be a valid SPDX license expression + sys@0.0.1 + save@2.4.0 added 13 packages from 11 contributors and audited 79 packages in 8.763s 2 packages are looking for funding run `npm fund` for details found 0 vulnerabilities pi@MagicMirror:~/MagicMirror/modules/MMM-bergfex $ -
@MajorC and then start mm
-
well, I have my mirror back, including Bergfex Snow Report. At the moment there is only “loading…” visible.
I will double check my config.
Maybe you can include the help to the git? Would be nice to have it working as smooth as the rest in this wonderful project.
-
@MajorC he hasn’t updated in 2 years… so unlikely
-
And it is working.
This is important:
This is an array with strings of the skiareas to display. String must exactly match the name on http://www.bergfex.at/oesterreich/schneewerte/ -
@MajorC yes, precise config is required in each module. some don’t document well…
-
Thanks for your very fast help. Maybe someone will rewrite this MMM. Winter is coming!
-
Hi ,
sorry for bringing this up again. I also have the bergfex “loading…” issue. However, in the logs I can see the values are retrieved. They just don’t show in the mirror:
0|mm | 83 snow reports from bergfex.at retrieved. 0|mm | [2020-11-12 21:40:29.367] [LOG] searching for Koralpe 0|mm | [2020-11-12 21:40:29.369] [LOG] searching for Hintertuxer Gletscher / Hintertux 0|mm | [2020-11-12 21:40:29.370] [LOG] searching for Ischgl 0|mm | [2020-11-12 21:40:29.373] [LOG] searching for Obergurgl - Hochgurgl 0|mm | [2020-11-12 21:40:29.375] [LOG] searching for Seefeld/Rosshütte 0|mm | [2020-11-12 21:40:29.376] [LOG] searching for Sölden 0|mm | [2020-11-12 21:40:29.377] [LOG] searching for Stubaier Gletscher / Stubaital 0|mm | [2020-11-12 21:40:29.377] [LOG] 0|mm | [ 0|mm | null, 0|mm | { 0|mm | skiarea: 'Hintertuxer Gletscher / Hintertux', 0|mm | tal: '-', 0|mm | berg: '135 cm', 0|mm | neu: '-', 0|mm | lifte: '0', 0|mm | update: '' 0|mm | }, 0|mm | { 0|mm | skiarea: 'Ischgl', 0|mm | tal: '-', 0|mm | berg: '20 cm', 0|mm | neu: '-', 0|mm | lifte: '0', 0|mm | update: '' 0|mm | }, 0|mm | { 0|mm | skiarea: 'Obergurgl - Hochgurgl', 0|mm | tal: '-', 0|mm | berg: '75 cm', 0|mm | neu: '-', 0|mm | lifte: '0', 0|mm | update: '' 0|mm | }, 0|mm | null, 0|mm | { 0|mm | skiarea: 'Sölden', 0|mm | tal: '19 cm', 0|mm | berg: '72 cm', 0|mm | neu: '-', 0|mm | lifte: '0', 0|mm | update: '' 0|mm | }, 0|mm | { 0|mm | skiarea: 'Stubaier Gletscher / Stubaital', 0|mm | tal: '35 cm', 0|mm | berg: '110 cm', 0|mm | neu: '-', 0|mm | lifte: '0', 0|mm | update: '' 0|mm | } 0|mm | ]So the names of the resorts seem to be correct.
Any ideas on this one?thanks
Chris -
Argh… just 2 minutes after posting I found the issue:
I had 2 values “Koralpe” and “Seefeld/Rosshütte”, which were displayed in the log as NULL. Removing these entries made bergfex work…
Again, it was a typo ;)
thanks
Chris -
Hi all,
I’ve created a fork and did some updates to the code and config.
You can now select the country where bergfex should choose the values from.Feel free to test and let me know any feedback.
So far I can show multiple countries and their values… -
@FatTony123 can you explain how to use the fork? I am a total noob.
-
@MajorC Same approach as with other modules.
Get the repository viagit clone https://github.com/FatTony123/MMM-bergfex.gitand then run
npm install cheeriothen
npm installThat installs all relevant software. After that you need to setup your config file accordingly.
I’m not that active here, so you can reach me via github too …
-
@FatTony123 u shouldn’t have to do the separate install of cheerio as it is in the package.json
-
@sdetweil Thanks for the hint! (still not that familiar with npm ;-))
Updated the install instructions and package.json file accordingly. -
@FatTony123 said in MMM-bergfex not working:
Hi all,
I’ve created a fork and did some updates to the code and config.
You can now select the country where bergfex should choose the values from.Feel free to test and let me know any feedback.
So far I can show multiple countries and their values…Works like a charm. Thank you very much!
-
Great to hear, thanks!
Let me know if you have any question, comments or ideas for improvements…
Cheers!
-
I never saw values for “neu” maybe they are not provided by the city. Perhaps this would be nice to have this optional to save some unused space.
And I will play around with the CSS at the weekend. I would like to have some more space between each column.
-
@MajorC said in MMM-bergfex not working:
I never saw values for “neu” maybe they are not provided by the city. Perhaps this would be nice to have this optional to save some unused space.
Any particular values you are missing / not seeing? The values should get updated once they are updated on bergfex.
Which cities / config are you using? Then I can check on my mirror… -
@FatTony123 my mistake. It looks like the cities I have in my configurations are not reporting “new snow” (Neu") to bergfex. So I never saw something where. I just added another city and it works quite nice.
As I am not interested in “new snow”, it would be nice to be able to activate/deactivate all (Tal, Berg, Neu, Lifte) as an option in the config. But I can do that by myself in the source code.
-
@MajorC Sounds like a good idea to set the options that should be visible on the mirror. Let me know once you have something so I can play with it too ;-)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login