AQI China
KDE4 Extensions
Score 52%
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. :-)

ludrayven

3 years ago

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.

Report

librehat

3 years ago

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.

Report

ludrayven

3 years ago

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

Report

librehat

3 years ago

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

Report

librehat

2 years ago

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

Report

ludrayven

3 years ago

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?

Report

librehat

3 years ago

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.

Report

ludrayven

3 years ago

Works great! Nice widget =)

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

Report

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
1.2
updated Jan 16 2014
added Dec 15 2013
downloads today
0
page views today 0