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.

    MMM-RAIN-MAP

    Scheduled Pinned Locked Moved Utilities
    7 Posts 4 Posters 1.1k Views 3 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.
    • N6NGN Offline
      N6NG
      last edited by N6NG

      Hi all… I’m trying to put the above module in my MM. I got it all installed ok but when I looked at it I can’t figure out what the line:
      mapUrl: “https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png”,
      really means… I find no reference to {s},{z},{x},{y} refers.
      I’m guessing x and maybe y are lat. and lon. but what is z? Distance above sea level? and what is the {s} following the https://. I’ve given up… I’ve looked all around including the reference to the other maps available but nowhere is there an explanation. I know I missed it but where is it? Thanks as usual…
      Dennis

      drippyerD 1 Reply Last reply Reply Quote 0
      • drippyerD Offline
        drippyer @N6NG
        last edited by

        @N6NG Assuming you are using jalibu/MMM-RAIN-MAP, the options in the README has the following info:

        `Option to use an alternative map. In most cases you are fine with the default but you can find more maps` here.
        
        Type: string
        Default value: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'
        Alternative uncolored map: 'https://tiles.wmflabs.org/bw-mapnik/${z}/${x}/${y}.png'
        

        With here pointing at the Tile Servers wikipedia.

        It seems to me that the expected usage is to leave the {s}, {x}. {y}, and {z} alone.

        N6NGN 1 Reply Last reply Reply Quote 1
        • N6NGN Offline
          N6NG @drippyer
          last edited by

          @drippyer Well I left it as the stock value but I’m still not getting the background map. I see indications of rain but no map to see where the rain is falling. I have tried to use other maps also but still no background map on my RAIN-MAP
          Dennis

          swvalentiS 1 Reply Last reply Reply Quote 0
          • swvalentiS Offline
            swvalenti Project Sponsor @N6NG
            last edited by

            Try adding this to your config

            mapUrl: “https://a.tile.openstreetmap.de/${z}/${x}/${y}.png”,

            N6NGN 1 Reply Last reply Reply Quote 0
            • N6NGN Offline
              N6NG @swvalenti
              last edited by N6NG

              @swvalenti I get the background map when I use that in my line and it works fine. But when I try to substitute the .de with .us or with .org (the original) I get no background map. All else staying the same.
              ???
              Dennis

              karsten13K 1 Reply Last reply Reply Quote 0
              • karsten13K Offline
                karsten13 @N6NG
                last edited by

                @N6NG

                see https://forum.magicmirror.builders/topic/12808/mmm-rain-map-new-version-2-x/152?page=16#

                N6NGN 1 Reply Last reply Reply Quote 0
                • N6NGN Offline
                  N6NG @karsten13
                  last edited by

                  @karsten13 Thank you… that explains a lot…
                  I’ll keep my eyes open.
                  Dennis

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • 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