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 67.3k 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.
    • LordyL Offline
      Lordy @Mykle1
      last edited by

      @Mykle1 said in MMM-AQI:

      I’m not quite sure what you are asking.

      Berlin has several locations. Once “Berlin” and “Berlin + street names”.
      I am looking for and need the setting for “Berlin + street names”, whether “Berlin / street names” or “Berlin - street names” or something completely different?

      I wish you a nice and contemplative Christmas.:clinking_beer_mugs:

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

        @Lordy

        The readme says you can use an ID number from the site and enter that in city:. Go to the site and get the ID of the location you are looking for.

        Or

        You can use city: "here", for geolocation. It does work. I just tested it.

        Have a wonderful Christmas! :-)

        Create a working config
        How to add modules

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

          @Mykle1 said in MMM-AQI:

          The readme says you can use an ID number from the site and enter that in city:. Go to the site and get the ID of the location you are looking for.
          Or
          You can use city: “here”, for geolocation. It does work. I just tested it.
          Have a wonderful Christmas!

          Da ich weiß, dass Du deutsch kannst und es mir ohne Google einfacher macht, mache ich es für dieses Mal so.

          Die Lösung funktioniert, schade, der falsche Stadtbezirk. Laut meinen Geo- Daten sitze ich in “Berlin- Wedding”, aber ich bin näher an"Berlin- Friedrichshain (http://aqicn.org/city/germany/berlin/friedrichshain-frankfurter-allee/de/) dran.

          Es muss doch ein Möglichkeit geben in der Config, dass ich mein bestimmten Standort habe:

          city: “berlin/friedrichshain-frankfurter-allee”, // dass geht nicht:loudly_crying_face:

          Danke trotzdem, für die Hilfe. Macht die Tage ruhiger und genießt das Fest mit eurer Familie.:smiling_face_with_halo:

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

            The solution works, too bad, the wrong district.

            The solution works, too bad, the wrong district. According to my geographic data I am in “Berlin-Wedding”, but I am closer to "Berlin- Friedrichshain (http://aqicn.org/city/germany/berlin/friedrichshain-frankfurter-allee/de/).

            There must be a way in the config that I have my specific location:

            city: “berlin / friedrichshain-frankfurter-allee”, // that doesn’t work😭

            Mykle1M 2 Replies Last reply Reply Quote 0
            • Mykle1M Offline
              Mykle1 Project Sponsor Module Developer @Lordy
              last edited by

              @Lordy said in MMM-AQI:

              According to my geographic data I am in “Berlin-Wedding”, but I am closer to "Berlin- Friedrichshain

              Perhaps the closest station (to you) that collects the data for the API is “Berlin-Wedding”. The same thing applies to weather API’s. Not every location has a station. The API likely chooses the closest one to your location.

              Does Berlin- Friedrichshain have an ID number from the site?

              Create a working config
              How to add modules

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

                @Lordy

                Dude, you’re only talking about 10.3 km difference.

                0_1577482072716_Screenshot from 2019-12-27 16-26-44.png

                Create a working config
                How to add modules

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

                  @Mykle1 said in MMM-AQI:

                  Dude, you’re only talking about 10.3 km difference.

                  0_1577485109385_Berlin  - AQI.PNG

                  I’m not picky, but the two boroughs have a completely different traffic. (Not now.)
                  It’s a difference like “Manhattan” and “Staten Island”.
                  But, you know it too, you want to make it as possible as possible.
                  Thank you for your patience and have a nice weekend.

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

                    @Lordy

                    I understand completely and I sympathize with you. Have you found the ID number for the location you want and tried that in city: ?

                    Create a working config
                    How to add modules

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

                      @Mykle1 said in MMM-AQI:

                      I understand completely and I sympathize with you. Have you found the ID number for the location you want and tried that in city: ?

                      Here is a Link http://aqicn.org/city/germany/berlin/friedrichshain-frankfurter-allee/ from from my desired location. Where can I find the “ID”?

                      S Mykle1M 2 Replies Last reply Reply Quote 0
                      • S Offline
                        sdetweil @Lordy
                        last edited by

                        @Lordy the module instructions say to do this, to get the id

                        https://api.waqi.info/search/?token=TOKEN&keyword=CITY

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        Mykle1M 1 Reply Last reply Reply Quote 0
                        • Mykle1M Offline
                          Mykle1 Project Sponsor Module Developer
                          last edited by

                          Ahh, the author hasn’t been on the forum in 7 months. :-(

                          Create a working config
                          How to add modules

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

                            @sdetweil said in MMM-AQI:

                            the module instructions say to do this, to get the id
                            https://api.waqi.info/search/?token=TOKEN&keyword=CITY

                            Attention: @Lordy

                            What a PITA! The url accepted “Berlin” eventually, but @Lordy is being pretty specific about what he wants. However, that url returns json data (I threw it in a json viewer), and lo and behold, it appears to show all the stations in Berlin, of which his is present. However, the station ID does NOT work, neither as a number or a string.

                            0_1577492892672_json.png

                            However!

                            Just for shits and giggles I threw the entire station name in city: "Friedrichshain-Frankfurter Allee, Berlin, Germany",.

                            0_1577493141509_frank.png

                            BOOM!

                            Create a working config
                            How to add modules

                            S 1 Reply Last reply Reply Quote 1
                            • Mykle1M Offline
                              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

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

                                @Mykle1 nice debugging!!

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                1 Reply Last reply Reply Quote 0
                                • LordyL Offline
                                  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”.:grinning_face_with_smiling_eyes:
                                  That is exactly the answer I wanted.:thumbs_up_light_skin_tone:

                                  1 Reply Last reply Reply Quote 0
                                  • M Offline
                                    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?

                                    Mykle1M 1 Reply Last reply Reply Quote 0
                                    • Mykle1M Offline
                                      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
                                      • N Offline
                                        Nneuland @ryck
                                        last edited by Nneuland

                                        @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 Reply Quote 0
                                        • S Offline
                                          sdetweil @Nneuland
                                          last edited by

                                          @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 Reply Quote 0
                                          • R Offline
                                            ryck Module Developer @Nneuland
                                            last edited by

                                            @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 Reply Quote 0

                                            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
                                            • 2
                                            • 3
                                            • 4
                                            • 3 / 4
                                            • 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