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

Scheduled Pinned Locked Moved Health
61 Posts 14 Posters 48.1k Views 15 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.
  • M Offline
    mrdenmark
    last edited by Feb 18, 2020, 7:01 AM

    my local station shows pm10 and mainly weather info,i have P,W,WG,T,H etc,is there any way to change them to display the full title-pressure,wind,wind gusts,temperature,humidity etc? or is that info delivered via the api?

    M 1 Reply Last reply Feb 19, 2020, 12:37 AM Reply Quote 0
    • M Offline
      Mykle1 Project Sponsor Module Developer @mrdenmark
      last edited by Feb 19, 2020, 12:37 AM

      @mrdenmark

      or is that info delivered via the api?

      Yes, the way it’s written

      Object.keys(iaqi).forEach(function (key) {
      iaqiRow = document.createElement("tr");
      
      iaqiCityCell = document.createElement("td");
      iaqiCityCell.className = "xsmall iaqi key " + aqiClass;
      iaqiCityCell.innerHTML = key.toUpperCase();
      iaqiRow.appendChild(iaqiCityCell);
      
      iaqiAQICell = document.createElement("td");
      iaqiAQICell.className = "xsmall iaqi value " + aqiClass;
      iaqiAQICell.innerHTML = iaqi[key].v;
      iaqiRow.appendChild(iaqiAQICell);
      dataTable.appendChild(iaqiRow);
      });
      

      Returns the key:value pair (value not shown)

      MMM-AQI received a system notification: DOM_OBJECTS_CREATED
      MMM-AQI.js:146 co
      MMM-AQI.js:146 no2
      MMM-AQI.js:146 o3
      MMM-AQI.js:146 p
      MMM-AQI.js:146 pm10
      MMM-AQI.js:146 so2
      MMM-AQI.js:146 t
      

      Create a working config
      How to add modules

      1 Reply Last reply Reply Quote 0
      • N Offline
        Nneuland @ryck
        last edited by Nneuland Jun 8, 2023, 7:23 PM Jun 8, 2023, 7:18 PM

        @ryck

        Hi there. I was attempting to install your MMM-AQI, but received an error from this link.
        https://api.waqi.info/search/?token=TOKEN&keyword=croydon
        {“status”:“error”,“data”:“Invalid key”}

        Is this module still active?
        I’m seeing the “request” dependency is deprecated…

        S R 2 Replies Last reply Jun 8, 2023, 7:35 PM Reply Quote 0
        • S Away
          sdetweil @Nneuland
          last edited by Jun 8, 2023, 7:35 PM

          @Nneuland said in MMM-AQI:

          I’m seeing the “request” dependency is deprecated…

          yes, since MM version 2.16 (7 releases ago, almost 2 years) when we removed it from MM…

          https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later/1

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          N 1 Reply Last reply Jun 8, 2023, 8:38 PM Reply Quote 0
          • R Offline
            ryck Module Developer @Nneuland
            last edited by Jun 8, 2023, 8:14 PM

            @Nneuland are you adding your own token? Request is deprecated yeah, but still works… some day I’ll update it to something else, but for now…

            N 1 Reply Last reply Jun 8, 2023, 8:37 PM Reply Quote 0
            • N Offline
              Nneuland @ryck
              last edited by Nneuland Jun 8, 2023, 11:03 PM Jun 8, 2023, 8:37 PM

              @ryck
              thank you so much.

              R 1 Reply Last reply Jun 8, 2023, 8:52 PM Reply Quote 0
              • N Offline
                Nneuland @sdetweil
                last edited by Jun 8, 2023, 8:38 PM

                @sdetweil

                oops. thanks Sam

                1 Reply Last reply Reply Quote 0
                • R Offline
                  ryck Module Developer @Nneuland
                  last edited by Jun 8, 2023, 8:52 PM

                  @Nneuland you don’t need to worry about dependencies, just clone the module in the modules folder, do npm install and then add the config, with the proper token

                  1 Reply Last reply Reply Quote 0
                  • 1
                  • 2
                  • 3
                  • 4
                  • 5
                  • 6
                  • 7
                  • 6 / 7
                  • 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