MagicMirror Forum

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

    MMM-AQI

    Health
    13
    55
    11895
    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.
    • Mykle1
      Mykle1 Project Sponsor Module Developer @Lordy last edited by

      @Lordy

      They didn’t make it easy for you! Use this in your config entry.

      city: "Friedrichshain-Frankfurter Allee, Berlin, Germany",

      Create a working config
      How to add modules

      Lordy 1 Reply Last reply Reply Quote 1
      • S
        sdetweil @Mykle1 last edited by

        @Mykle1 nice debugging!!

        Sam

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 0
        • Lordy
          Lordy @Mykle1 last edited by Lordy

          @Mykle1 said in MMM-AQI:

          They didn’t make it easy for you! Use this in your config entry.

          God of “Puzzle Solver” and “Myth Buster”.😄
          That is exactly the answer I wanted.👍🏻

          1 Reply Last reply Reply Quote 0
          • M
            mrdenmark last edited by

            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?

            Mykle1 1 Reply Last reply Reply Quote 0
            • Mykle1
              Mykle1 Project Sponsor Module Developer @mrdenmark last edited by

              @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
              • 1
              • 2
              • 3
              • 4
              • 5
              • 6
              • 6 / 6
              • 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