• 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 53.2k 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.
  • R Offline
    ryck Module Developer
    last edited by Feb 8, 2018, 6:20 PM

    Description

    I was looking for a nice and simple module to display the air quality index (AQI), but all the modules I found were not really updated, or not using an API, or you couldn’t have several instances of it, or were not international, etc, so… I created my own.

    This module gets the Air Quality Index (AQI) using the World Air Quality Index project API.

    Screenshots:

    MMM-AQI

    Download:

    [card:ryck/MMM-AQI]

    M F N 3 Replies Last reply Feb 9, 2018, 1:51 AM Reply Quote 7
    • M Offline
      Mykle1 Project Sponsor Module Developer @ryck
      last edited by Feb 9, 2018, 1:51 AM

      @ryck

      Nice!

      Create a working config
      How to add modules

      1 Reply Last reply Reply Quote 0
      • F Offline
        Freebond @ryck
        last edited by Mar 10, 2018, 4:20 PM

        @ryck Great module.
        One question: in your config.section, you wrote that is possible to insert the city_ID instead of the city_name. Where can I find the ID list?

        1 Reply Last reply Reply Quote 0
        • E Offline
          E3V3A
          last edited by Mar 10, 2018, 8:49 PM

          Yes, looks very nice. I love the minimalist presentation.
          Was browsing over China… OMG! The sensors were overloaded showing 999 and far above 200 otehrwise. crazy!

          "Everything I do (here) is for free – altruism is the way!"
          MMM-FlightsAbove, MMM-Tabulator, MMM-Assistant (co-maintainer)

          1 Reply Last reply Reply Quote 0
          • F Offline
            Fonfon
            last edited by Fonfon Mar 11, 2018, 3:19 PM Mar 10, 2018, 8:58 PM

            Hi great module !

            But i have another city !!! when i write my city name i have another result “barrie in ontario” ???
            where to find city ID ?
            thanks

            1 Reply Last reply Reply Quote 0
            • R Offline
              ryck Module Developer
              last edited by Mar 11, 2018, 1:59 AM

              To find the city id you can search for it using the API itself: http://aqicn.org/json-api/doc/#api-Search-SearchByName
              The API is quite picky with the names, so in my experience is always better to use the id or just the keyword here

              E 1 Reply Last reply Mar 11, 2018, 12:09 PM Reply Quote 0
              • E Offline
                E3V3A @ryck
                last edited by Mar 11, 2018, 12:09 PM

                @ryck AFAICT you can’t even search without an API key.

                "Everything I do (here) is for free – altruism is the way!"
                MMM-FlightsAbove, MMM-Tabulator, MMM-Assistant (co-maintainer)

                R 1 Reply Last reply Mar 11, 2018, 3:47 PM Reply Quote 0
                • R Offline
                  ryck Module Developer @E3V3A
                  last edited by Mar 11, 2018, 3:47 PM

                  @E3V3A Yep, but you can use the same token you are using for the module, ie:

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

                  (you can just type that URL in your browser)

                  1 Reply Last reply Reply Quote 0
                  • F Offline
                    Fonfon
                    last edited by Fonfon Mar 11, 2018, 3:58 PM Mar 11, 2018, 3:58 PM

                    Sorry but geoloc “here” is so bad !
                    name of city don’t work
                    and don’t understand how find @id …

                    R 1 Reply Last reply Mar 11, 2018, 4:24 PM Reply Quote 0
                    • R Offline
                      ryck Module Developer @Fonfon
                      last edited by ryck Mar 11, 2018, 4:45 PM Mar 11, 2018, 4:24 PM

                      @Fonfon I added more info in the README, but is basically enter the URL above in your browser (using your token and your city, of course) an then just look for your city in the response and write down the “uid” value, that’s the id you are looking for.

                      F 1 Reply Last reply Mar 11, 2018, 4:44 PM Reply Quote 1
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 7
                      • 1 / 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