Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

0
Become a Fan
5.8

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. :-)

Ratings & Comments

8 Comments

ludrayven

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.

librehat

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.

ludrayven

OK, then how about an option to replace the cloud with the actual number altogether? A little checkbox or something in the preferences?

librehat

I'll look into this after my graduation next month. :-)

librehat

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. :-)

ludrayven

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?

librehat

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.

ludrayven

Works great! Nice widget =) (Your blog didn't send me an email about your reply, so I'll just stick to this one).

Pling
0 Affiliates
Details
license
version 1.2
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 4

More Plasma 4 Extensions from librehat:

kdictionary
librehat
last update date: 11 years ago

Score 6.5

Radeon Dynamic Power Management
librehat
last update date: 11 years ago

Score 6.5

Other Plasma 4 Extensions:

Icon Tasks deb build
N00bun2
last update date: 13 years ago

Score 4.3

Prayer Times Plasmoid
riyad
last update date: 13 years ago

Score 5.2

KPrayertime4 Islamic Prayer Times
ahaq
last update date: 15 years ago

Score 4.4

Hostinfo
mgraesslin
last update date: 13 years ago

Score 4.7

Monitor QuadCore Russian
kuchumovn
last update date: 16 years ago

Score 5.0

blaKjaK
werevire
last update date: 15 years ago

Score 5.0