MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    MMM-metoffice-datapoint A module to pull UK MetOffice 3 hourly forecasts

    Utilities
    3
    4
    1560
    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.
    • R
      rummyr last edited by rummyr

      Description:

      This is a weather module that used the MetOffice Datapoint as its data-source for 3 hourly forecasts.
      Very much a first release, I’ve squished some bugs, and it works for me, but I’m sure there’s more in there.

      Screenshots:

      Default View
      default

      Compact View
      compact

      Compact with everything turned on - ugly!
      compact with everything displayed

      Download:


      Version 0.1-initial

      My first attempt at a module, comments welcome.
      Documentation is on GitHub
      screenshots are a teeny bit different from the release, but not much.

      1 Reply Last reply Reply Quote 1
      • U
        unclerdaverules last edited by

        I am having trouble in getting this to work fully. Please can you help regarding the siteName or siteId issues I am having regarding this place:
        https://www.metoffice.gov.uk/weather/forecast/gcntr93j0#?date=2019-08-22

        I have used Swindon in the siteName as well as even trying out the siteId of gcntr93j0, if that is even the correct siteId.

        I have applied for an API weeks ago and have put this in place too. I just get either the ‘Loading…’ message or ‘Loading… Looking up SiteId for Swindon’

        Any suggestions would be gratefully received!

        Many thanks

        1 Reply Last reply Reply Quote 0
        • R
          rummyr last edited by rummyr

          Sorry, my MM has been turned off for a few months, I’ve just turned it back on today.
          I’ll see if the code in git is upto date and push it if not.

          Once I’ve done that we can try to work out what’s up with it.

          Right, I’ve pushed the latest code.
          I see that Swindon is on the list of sites, so hopefully it should work,
          If not, looking at
          http://datapoint.metoffice.gov.uk/public/data/val/wxfcs/all/json/sitelist?key=… in my browser shows swindon as
          {
          “elevation”:“131.0”,
          “id”:“310150”,
          “latitude”:“51.5556”,
          “longitude”:“-1.7784”,
          “name”:“Swindon”,
          “region”:“sw”,
          “unitaryAuthArea”:“Swindon”
          },
          So the site id should be 310150

          the region lookup from
          http://datapoint.metoffice.gov.uk/public/data/txt/wxfcs/regionalforecast/json/sitelist?key=…
          gives
          {“@id”:“513”,“@name”:“sw”}
          so the regionId should be 513

          1 Reply Last reply Reply Quote 0
          • S
            Sparkie579 last edited by Sparkie579

            Ive tried to install this onto my project however I am not able to load the module up. The error is located to API key.

            modules:
            {
            module: “MMM-metoffice-datapoint”, // Weather app.
            position: “right”,
            config: {
            apikey: “<<>>”,
            sitename: “Ashford (Kent)”,
            }
            },

            can you help?

            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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy