MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. causerino
    3. Best
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    C
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 6
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: MMM-RAIN-MAP (new: version 2.x)

      Hi,

      I don’t know what I am doing wrong, but I can’t get the map to centre on my location.

      //New Module                    Rain Map
                      {
                              module: "MMM-RAIN-MAP",
                              position: "top_right",
                                      config: {
                                      animationSpeedMs: 400,
                                      colorizeTime: true,
                                      defaultZoomLevel: 8,
                                      displayTime: true,
                                      displayTimeline: true,
                                      displayClockSymbol: true,
                                      displayOnlyOnRain: false,
                                      extraDelayLastFrameMs: 1000,
                                      extraDelayCurrentFrameMs: 3000,
                                      markers: [
      //                                      { lat: 49.41, lng: 8.717, color: "red" },
                                              { lat: 50.212, lng: 5.29, color: "green" },
                                      ],
                                      mapPositions: [
                                              { lat: 50.212, lng: 5.29, zoom: 9, loops: 1 },
                                      ],
                                      mapUrl: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
                                      mapHeight: "420px",
                                      mapWidth: "420px",
                                      substitudeModules: [],
                                      updateIntervalInSeconds: 300,
                              }
                      },
      

      Am I doing something completely wrong? It just centres around Rochefort, and not Cornwall.

      EDIT: I’m an idiot… it should be -5 not 5 for lng. Fixed. Thank you for this!

      posted in Utilities
      C
      causerino
    • 1 / 1