
AQI China
Source (link to git-repo or to original if based on someone elses unmodified work):
Description:
A simple plasma widget display city's air quality information in China written in QML.
Installation
I suggest you install it directly from Plasma Shell's Get New Hot Stuff tool. But you may still go the old way.
[indent]plasmapkg -i aqi_china-VER.plasmoid[/indent]
For upgrade:
[indent]plasmapkg -u aqi_china-VER.plasmoid[/indent]
Notice: VER is the version number.
Air information comes from http://www.PM25.in.
Information are in Chinese because the API returns Chinese data. :-) Last changelog:
Installation
I suggest you install it directly from Plasma Shell's Get New Hot Stuff tool. But you may still go the old way.
[indent]plasmapkg -i aqi_china-VER.plasmoid[/indent]
For upgrade:
[indent]plasmapkg -u aqi_china-VER.plasmoid[/indent]
Notice: VER is the version number.
Air information comes from http://www.PM25.in.
Information are in Chinese because the API returns Chinese data. :-)
For detailed commits, please visit https://git.oschina.net/librehat/AQI-China/commits/master
v1.2
* add rank tab
* improved translation
v1.1
* ui polishes & bug fixes
* allow customise font family
* details tab improved
v1.0
* first release
Ratings & Comments
8 Comments
It would be nice if the AQI number (in small subscript) were displayed underneath the little "cloud" icon so the user can just "glance" at the screen to see the number rather than having to go click on it.
it'd be possible to make it display in tooltip, which can be seen when mouse hover on it. but I think to display it on the "cloud" icon is not easy to be done, at least not in KDE 4.x.
OK, then how about an option to replace the cloud with the actual number altogether? A little checkbox or something in the preferences?
I'll look into this after my graduation next month. :-)
Sorry for long-time absence. I just decided to postpone the update until plasma 5.2 is officially released. Qt5 provides much more powerful Qt Quick 2.0 comparing to the Qt Quick 1.0 in KDE SC4. So the feature you've requested will be implemented in a brand new version. But I will only start the migration in February 2015. :-)
I've loaded the applet (I work in Beijing), and under the settings I tried both "Beijing" and the zip code "100085", but the result is "Error". I've attached a screenshot on your blog: http://en.librehat.com/blog/plasma-applet-about-china-air-quality/. Any ideas?
As I replied you in blog. You should try "beijing" (lowercase) or "010" (telephone area code instead of zip). I'll work on the code someday to convert pinyin to lowercase before pass it to API. Thank you for reporting this.
Works great! Nice widget =) (Your blog didn't send me an email about your reply, so I'll just stick to this one).