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 78.7k 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
      Lordy
      last edited by

      Hello,

      I need your help, because I can not find the “token” for Berlin?

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

        @Lordy

        same problem. The page can not be found for data-platform token

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

          can anyone tell me what city id i should be using for this location-http://aqicn.org/city/new-zealand/otago/arrowtown/- if i search for arrowtown it returns no results and i can’t find a city id on the page

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

            @chassain-0

            Here is a Link:

            http://aqicn.org/data-platform/token/#/

            1 Reply Last reply
            Reply Quote 0
            • C
              chassain 0
              last edited by

              :) thanks

              1 Reply Last reply
              Reply Quote 0
              • E
                engelhertz
                last edited by

                Is it possible to use “here” for a city, but to display a custom name ?

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

                  @engelhertz said in MMM-AQI:

                  Is it possible to use “here” for a city, but to display a custom name

                  No, only cities specified on the website.
                  Here’s an example “http://aqicn.org/city/germany/hamburg/flughafen/” from Hamburg.

                  1 Reply Last reply
                  Reply Quote 0
                  • E
                    engelhertz
                    last edited by

                    yeah, i get that. I want to change only the display name, because its too long and looks ugly like that.1_1576518649289_zoom.JPG 0_1576518649288_whole.JPG

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

                      You send me your Config for this Modul. I’ll watch it tomorrow. OKAY?
                      Good Night

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

                        @engelhertz said in MMM-AQI:

                        I want to change only the display name, because its too long and looks ugly like that.

                        Like this?

                        0_1576550834250_22.png

                        In your custom.css file you would need to add these:

                        .MMM-AQI .city {
                          visibility: hidden;
                        }
                        
                        .MMM-AQI .city:after {
                          content: "engelhertz ";
                          visibility: visible;
                          /* display: block; */
                          /* position: absolute; */
                        }
                        
                        .MMM-AQI header {
                          max-width: 100px;
                          float: right;
                          /* border-bottom: none; */
                        }
                        

                        Adjust these to your liking. :-)

                        Create a working config
                        How to add modules

                        E 1 Reply Last reply
                        Reply Quote 1
                        • E
                          engelhertz @Mykle1
                          last edited by

                          @Mykle1 thats exactly what i needed, thx :)

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

                            What is the correct command “City with addition” in config?
                            I would like to take the example “http://aqicn.org/city/germany/**berlin/wedding-amrumer-str**./de/” .
                            My Config:

                            {
                            module: ‘MMM-AQI’,
                            disabled: true,
                            position: ‘top_right’,
                            header: ‘Luftverschmutzung in Berlin’,
                            config: {
                            token: “xxx”,
                            city: “berlin”,
                            iaqi: true,
                            updateInterval: 30 * 60 * 1000, // Every half hour.
                            initialLoadDelay: 0,
                            animationSpeed: 1000,
                            debug: false
                            }
                            },

                            I think you will help me please.:thumbs_up_light_skin_tone:

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

                              @Lordy

                              I’m not quite sure what you are asking. :-(

                              Create a working config
                              How to add modules

                              LordyL 1 Reply Last reply
                              Reply Quote 0
                              • LordyL
                                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
                                  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
                                    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
                                      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
                                        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
                                          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
                                            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

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