• 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 47.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.
  • M Offline
    Mykle1 Project Sponsor Module Developer @Lordy
    last edited by Dec 27, 2019, 9:25 PM

    @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
    • M Offline
      Mykle1 Project Sponsor Module Developer @Lordy
      last edited by Dec 27, 2019, 9:27 PM

      @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

      L 1 Reply Last reply Dec 27, 2019, 10:31 PM Reply Quote 0
      • L Offline
        Lordy @Mykle1
        last edited by Lordy Dec 27, 2019, 10:31 PM Dec 27, 2019, 10:31 PM

        @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.

        M 1 Reply Last reply Dec 27, 2019, 10:33 PM Reply Quote 0
        • M Offline
          Mykle1 Project Sponsor Module Developer @Lordy
          last edited by Dec 27, 2019, 10:33 PM

          @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

          L 1 Reply Last reply Dec 27, 2019, 10:41 PM Reply Quote 0
          • L Offline
            Lordy @Mykle1
            last edited by Dec 27, 2019, 10:41 PM

            @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 M 2 Replies Last reply Dec 27, 2019, 11:01 PM Reply Quote 0
            • S Away
              sdetweil @Lordy
              last edited by Dec 27, 2019, 11:01 PM

              @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

              M 1 Reply Last reply Dec 28, 2019, 12:32 AM Reply Quote 0
              • M Offline
                Mykle1 Project Sponsor Module Developer
                last edited by Dec 27, 2019, 11:48 PM

                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
                • M Offline
                  Mykle1 Project Sponsor Module Developer @sdetweil
                  last edited by Dec 28, 2019, 12:32 AM

                  @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 Dec 28, 2019, 5:58 AM Reply Quote 1
                  • M Offline
                    Mykle1 Project Sponsor Module Developer @Lordy
                    last edited by Dec 28, 2019, 12:35 AM

                    @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

                    L 1 Reply Last reply Dec 28, 2019, 8:00 AM Reply Quote 1
                    • S Away
                      sdetweil @Mykle1
                      last edited by Dec 28, 2019, 5:58 AM

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