Read the statement by Michael Teeuw here.
Rainalarm (Buienalarm in Dutch)
-
Can anybody help me to get this working on a MM:
https://gist.github.com/jdennes/61322ea392df9120396eb6651f64e566
Rain is a daily problem in the Netherlands, so it would be very nice to have an alarm for it on my MM.
Peter -
@Peter said in Rainalarm (Buienalarm in Dutch):
Can anybody help me to get this working on a MM:
Are you talking about creating an entire module?
You could use one of the iFrame modules and load the link http://www.buienalarm.nl/location/rotterdam into the iFrame. I haven’t done this but it seems like the perfect solution, unless you want to make a module of your own.
-
I can not create a module myself, that’s why I asked for help.
No idea how to start, but it just would be nice to have on the screen of the MM.
Peter -
-
@Mykle1 , I will give it a try!
Thanks again.
Peter -
I made one based on the dutch buienradar api, icw sparkline js. Can upload it to github if you like. It’s a 2 hour forecast graph based on longitude/latitude
-
Cirdan! Elen síla lúmenn’ omentielvo :-)
-
@cirdan , that would be great!
I love this forum.
Peter -
@Mykle1 Not if it rains, Mykle, let me check my MM, ahh clear skies ;-)
-
@Peter I added it under https://github.com/73cirdan/MMM-rainfc,
(should run ok, but did some last minute code cleanups.)
Let me know how it works out for you
-
@cirdan , it works out of the box.
But unfortunally it does not show the (current) time, so it is hard to see when the rain starts and stops.
Thanks for your help!
Peter -
The current time is in the clock module, so i considered it double info. The graph is always 2 hours, end time is shown, so you need to interpolate a little. Alternative is to add some tick marks under the graph with timelabels. I think it’s possible but never looked into it.
-
@cirdan , some timelines would be nice (like in the smartphone app).
Maybe some day somebody knows how to do this.
Thanks.
Peter -
@Peter, I checked the sparkline.js lib I use for the graph. It intentional does not use ticks and labels on the x axis. :-(
-
@cirdan , thanks.
Bad luck.
Peter -
@Peter Did a small addition with time labels under the graph. checked it in on github.
-
@cirdan , I only see the graph, not the time labels.
Peter -
There is a new config option, its in the readme on github. Add nrOfTimeLabels to your config.js and it should work.
-
@cirdan unfortunately it does not work.
Changed color, changed lon-lat, works all fine, but not the time labels.
Very sorry …
Peter -
@Peter just checking, you’ve pulled the new source from github?
Like a git pull or git clone?
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