MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Rainalarm (Buienalarm in Dutch)

    Scheduled Pinned Locked Moved Requests
    25 Posts 4 Posters 15.9k Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P Offline
      Peter
      last edited by

      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

      Mykle1M 1 Reply Last reply Reply Quote 0
      • Mykle1M Offline
        Mykle1 Project Sponsor Module Developer @Peter
        last edited by

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

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 0
        • P Offline
          Peter
          last edited by

          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

          Mykle1M 1 Reply Last reply Reply Quote 0
          • Mykle1M Offline
            Mykle1 Project Sponsor Module Developer @Peter
            last edited by

            @Peter

            Give this a try, Peter.

            https://github.com/alberttwong/MMM-iFrame

            Create a working config
            How to add modules

            P 1 Reply Last reply Reply Quote 0
            • P Offline
              Peter @Mykle1
              last edited by

              @Mykle1 , I will give it a try!
              Thanks again.
              Peter

              1 Reply Last reply Reply Quote 0
              • cirdanC Offline
                cirdan
                last edited by

                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

                Modules MMM-rainfc, MMM-bustimes, MMM-Harmony, MMM-Rijks

                Mykle1M P 2 Replies Last reply Reply Quote 1
                • Mykle1M Offline
                  Mykle1 Project Sponsor Module Developer @cirdan
                  last edited by

                  @cirdan

                  Cirdan! Elen síla lúmenn’ omentielvo :-)

                  Create a working config
                  How to add modules

                  cirdanC 1 Reply Last reply Reply Quote 1
                  • P Offline
                    Peter @cirdan
                    last edited by

                    @cirdan , that would be great!
                    I love this forum.
                    Peter

                    cirdanC 1 Reply Last reply Reply Quote 0
                    • cirdanC Offline
                      cirdan @Mykle1
                      last edited by

                      @Mykle1 Not if it rains, Mykle, let me check my MM, ahh clear skies ;-)

                      Modules MMM-rainfc, MMM-bustimes, MMM-Harmony, MMM-Rijks

                      1 Reply Last reply Reply Quote 1
                      • cirdanC Offline
                        cirdan @Peter
                        last edited by

                        @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

                        Modules MMM-rainfc, MMM-bustimes, MMM-Harmony, MMM-Rijks

                        P lavolp3L 2 Replies Last reply Reply Quote 0
                        • P Offline
                          Peter @cirdan
                          last edited by

                          @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

                          1 Reply Last reply Reply Quote 0
                          • cirdanC Offline
                            cirdan
                            last edited by

                            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.

                            Modules MMM-rainfc, MMM-bustimes, MMM-Harmony, MMM-Rijks

                            P 1 Reply Last reply Reply Quote 0
                            • P Offline
                              Peter @cirdan
                              last edited by

                              @cirdan , some timelines would be nice (like in the smartphone app).
                              Maybe some day somebody knows how to do this.
                              Thanks.
                              Peter

                              cirdanC 1 Reply Last reply Reply Quote 0
                              • cirdanC Offline
                                cirdan @Peter
                                last edited by

                                @Peter, I checked the sparkline.js lib I use for the graph. It intentional does not use ticks and labels on the x axis. :-(

                                Modules MMM-rainfc, MMM-bustimes, MMM-Harmony, MMM-Rijks

                                P 1 Reply Last reply Reply Quote 0
                                • P Offline
                                  Peter @cirdan
                                  last edited by

                                  @cirdan , thanks.
                                  Bad luck.
                                  Peter

                                  cirdanC 1 Reply Last reply Reply Quote 0
                                  • cirdanC Offline
                                    cirdan @Peter
                                    last edited by

                                    @Peter Did a small addition with time labels under the graph. checked it in on github.

                                    Modules MMM-rainfc, MMM-bustimes, MMM-Harmony, MMM-Rijks

                                    P 1 Reply Last reply Reply Quote 1
                                    • P Offline
                                      Peter @cirdan
                                      last edited by

                                      @cirdan , I only see the graph, not the time labels.
                                      Peter

                                      1 Reply Last reply Reply Quote 0
                                      • cirdanC Offline
                                        cirdan
                                        last edited by

                                        There is a new config option, its in the readme on github. Add nrOfTimeLabels to your config.js and it should work.

                                        Modules MMM-rainfc, MMM-bustimes, MMM-Harmony, MMM-Rijks

                                        P 1 Reply Last reply Reply Quote 0
                                        • P Offline
                                          Peter @cirdan
                                          last edited by

                                          @cirdan unfortunately it does not work.
                                          Changed color, changed lon-lat, works all fine, but not the time labels.
                                          Very sorry …
                                          Peter

                                          cirdanC 1 Reply Last reply Reply Quote 0
                                          • cirdanC Offline
                                            cirdan @Peter
                                            last edited by

                                            @Peter just checking, you’ve pulled the new source from github?
                                            Like a git pull or git clone?

                                            Modules MMM-rainfc, MMM-bustimes, MMM-Harmony, MMM-Rijks

                                            P 1 Reply Last reply Reply Quote 0

                                            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
                                            • 1
                                            • 2
                                            • 2 / 2
                                            • First post
                                              Last post
                                            Enjoying MagicMirror? Please consider a donation!
                                            MagicMirror created by Michael Teeuw.
                                            Forum managed by Sam, technical setup by Karsten.
                                            This forum is using NodeBB as its core | Contributors
                                            Contact | Privacy Policy