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-NOAA3 - user defined lat & lon values

    Scheduled Pinned Locked Moved Unsolved Requests
    2 Posts 2 Posters 1.7k Views 1 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.
    • evroomE Offline
      evroom
      last edited by

      Hi,

      I stopped using NOAA due to the wunderground issue.
      Luckily NOAA3 now has been issued and that works like a charm, but for one issue.

      It uses http://ip-api.com/json to determine latitude and longitude.
      After (re)starting MM, a file called latlon.json it being created, with the info provided by ip-api.com.
      As I mentioned before in another thread, in my case the location is of by 67 km’s, which is quite a bit.
      And some users are interested in other locations (rotating through different locations would be anoher feature request).

      As a work-around I updated the providers/wb.js file and adopted the line with “var text = fs.readFileSync(‘modules/MMM-NOAA3/latlon.json’,‘utf8’)” and provided my own latlon.nuremberg.json file.

      But it would be nice to have a config option to do so.
      Something like:

      userLatlonJson: “latlon.nuremberg.json”

      When empty or not present, then to the http://ip-api.com/json routine, when present, then use userLatlonJson file.

      The work-around works for me, but it would be nice to do without.

      MagicMirror version: 2.33.0
      Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
      Raspbian GNU/Linux 12 (bookworm)

      Test environment:
      MagicMirror version: v2.33.0
      Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
      Raspbian GNU/Linux 12 (bookworm)

      cowboysdudeC 1 Reply Last reply Reply Quote 0
      • cowboysdudeC Offline
        cowboysdude Module Developer @evroom
        last edited by

        @evroom You are reading my mind…working on it … instead of having it read a json file it would be easier to just allow users to add their own lat and lon…

        1 Reply Last reply Reply Quote 1

        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 / 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