Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Station name is not working #9

Open
p051xn1nja opened this issue Mar 13, 2021 · 10 comments
Open

Station name is not working #9

p051xn1nja opened this issue Mar 13, 2021 · 10 comments

Comments

@p051xn1nja
Copy link

Hi there,

I tried all kind of combinations for the name of the station, including city and country but its not working. I am a little bit frustrated. Please advice...

@gpailler
Copy link
Owner

Hi,

Did you use the following website to test your token and identify the exact station name you should use?
http://aqicn.org/json-api/demo/

@p051xn1nja
Copy link
Author

p051xn1nja commented Mar 14, 2021 via email

@gpailler
Copy link
Owner

There is maybe an issue with non ASCII characters.
Does it work with the sample provided: Bangkok University Rangsit Campus, Pathum
Does it work with something like: Nicolae Balcescu

@p051xn1nja
Copy link
Author

p051xn1nja commented Mar 14, 2021 via email

@gpailler
Copy link
Owner

To investigate further, you should open your MagicMirror interface from a classic browser and press CTRL-SHIFT-i to display the Developer tools. Then you can probably see some error message in the Console

@p051xn1nja
Copy link
Author

Now, its working.

@gpailler
Copy link
Owner

Ok great! Did you change something or was it a transient issue?

@turntoblue
Copy link

I have the same issue. What did you change?

@turntoblue
Copy link

See below config,
{
module: "MMM-aqicn",
position: "top_right",
header: "Air Quality Index",
config: {
token: "f1e46a2c066ab052a24297024538ad6b60c2563a",
stationName: "Gugal, South Korea",
showDetails: true
}
},

The Module started without issue but it just showed that "station name not found"

@icarus323
Copy link

I confirmed that my token and station name are displayed correctly by entering them on the website.
However, an error message saying that "station name not found" is displayed.
I think the station name should consist only of alphabets to function properly.
My station is displayed as "Gyeongchun-ro, Gyeonggi, South Korea (경춘로 경기)" on the aqicn website.
If you change "stationName" to "city id", it should work properly."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants