• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.6k 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.
  • E Offline
    evroom
    last edited by Jul 22, 2018, 3:03 PM

    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.30.0
    Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
    Raspbian GNU/Linux 12 (bookworm)

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

    C 1 Reply Last reply Jul 31, 2018, 1:44 AM Reply Quote 0
    • C Offline
      cowboysdude Module Developer @evroom
      last edited by Jul 31, 2018, 1:44 AM

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