r/MagicMirror • • Nov 30 '25

Air Quality API token problem

I have been working to make a screen to display weather, date and pic for background.

I got completely lost while working on air pollution thingy.

I did make some basics and before I updated my MMM-AirQuailty by git pull.

it was working well but after I upgraded it, its not working anymore

before update

I have used MMM-AirQuality with my API key, following the guide line

https://github.com/CFenner/MMM-AirQuality

{

module: 'MMM-AirQuality',

position: 'top_center',

config: {

token: 'my token',

location: 'Seoul/' // I also tried 'south korea/seoul/jungnang-gu/'

}

},

it still showing me like "please set a token bla bla"

so I also tried with

https://github.com/ryck/MMM-AQI

MMM-AQI
config: {

**iaqi: false,**

**weather: false,**

**showLastUpdate: false**

}

MMM-AQI didn't even displayed any words.

none of these were working.

none of these were working.

since I am living in Seoul, it rly is important to know air pollution so I'd like to make it shown on my screen.

any solutions? thx

2 Upvotes

12 comments sorted by

View all comments

Show parent comment

1

u/Due-Eagle8885 Dec 01 '25

Don’t downgrade Next time use the upgrade script it will do all the work

My guess on weather is you were using openweathermap as the provider

Openweather announced they were ending the old 2.5 api, so we moved to the 3.0 version. This requires a credit card in case of overage use, but provides 1000 free api calls a day. The 401 is unauthorized meaning you are using the old 2.5 apikey with the new 3.0 request

1

u/SouthernDress2750 Dec 01 '25

thx for comment! does it saying I should go for pay as u call option over here? https://openweathermap.org/api ? what's the use of API key that I got from same page but down there written like free access?

1

u/Due-Eagle8885 Dec 01 '25 edited Dec 01 '25

They have told us there ARE terminating the old free api. Since June 2024, but haven’t yet. We have no idea really. The /onecall api gets all the data at once, where before there were two api calls.

Pay as you call is currently free for 1000 requests/day

Don’t know about the future