Air Quality Widget Original

Plasma 5 Weather air_quality pollution weather

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

1
6 .3
Description:

(Now compatible with Kubuntu 16.04 and other distros using Kde Plasma 5.5 - thanks Cqoicebordel!)

This widget shows the latest pollution and weather data from aqicn.org (World Air Quality Project) by connecting to their Json API: https://aqicn.org/json-api/doc/
The World Quality Project team obtain their data from state EPAs.
The widget also uses a background texture from Freepik.com created by Kjpargeter.

FEATURES:
-Latest data for the 6 pollutants regulated by the US EPA - ground-level ozone, PM 2.5s, PM 10s, carbon monoxide, sulfur dioxide, and nitrogen dioxide
as well as 4 weather indicators (toggleable) - temperature, humidity, wind speed and pressure. (Availability varies by station)
-All elements rated and coloured according to the US EPA Air Quality Index as well as some other rating systems.
-3 versions - expandable, full and tray.
-The compact/tray representations' main element can be selected by clicking on it in the expandable version.
-A transparent look.
-The option to display the station name in an alphabet other than Roman for countries that use them, or both.
-The option to convert a station's last update time to your timezone (if you're interested in air quality worldwide or something)
-Automatic and manual updating.
-The option to use a custom WAQI token.

Please report feature requests, suggestions, bugs here (https://www.opendesktop.org/p/1275403) or at my email.
For info on how to translate the widget see (/home/$USER/.local/share/plasma/plasmoids/org.kde.plasma.waqiwidget)/contents/translations/How to translate.txt
Last changelog:

1.5 1 year ago

-Made the widget compatible with plasma versions down to 5.1 (Kubuntu 16.04)
-Optimised the widget for use with multiple desktops
-Changed the behaviour of the full representation window (closes on clicking anywhere outside it and other fixes)
-Made the station selection window scale with resolution
-Improved the tray error box
-Reverted the size of the temperature label in the full representation

trekjunky

1 month ago

The widget ONLY shows data from Monday at 4:00 PM, but which Monday, I don't know. I right clicked on the widget, then left clicked Check For New Data and it seems to look for new data, then just shows Monday's data,

Report

C

nobleswagger

1 month ago

It's last Monday. If data was older than 1 week, you'd see a full date. What station are you trying to get new data for? It's almost certainly an issue with that particular station. As for Fahrenheit, yes, but unfortunately the new version is taking longer than expected, I'm running into some issues with qml, which is an absolute nightmare and also trying to make the new version more aesthetically pleasing (or symmetrical). But I should definitely have it ready by this weekend.

Report

C

nobleswagger

1 month ago

Oh, and apologies for the late reply, I was away and not checking my email.

Report

trekjunky

1 month ago

All of a sudden, the widget will NOT update, not even after a reboot. Also, is the code for Fahrenheit done yet?

Report

trekjunky

1 month ago

All of a sudden, I can't comment. I have a couple of issues I would like resolved.

Report

trekjunky

1 month ago

Please, A year ago you said you would add Fahrenheit to the widget. If you did, How do you change the display from Celsius to Fahrenheit?

Report

C

nobleswagger

1 month ago

Oh no... I'm sorry! I got bogged down when I was tinkering with font scaling, filed it away and never got around to finishing it. The problem is the Waqi API that I get the data from reports all temperatures in Celsius, even for the US, which is an odd oversight. I'm working on a major upgrade now and I should have it done very shortly.

Report

sgrayban

1 year ago

Missing temp conversion.... Only Celsius.

Report

C

nobleswagger

1 year ago

Oh no, how could have I missed that... Thanks for reporting, will fix soon.

Report

sgrayban

1 year ago

You get the temp conversion to F yet ?

Report

C

nobleswagger

1 year ago

Yeah, but I've been fixing a few other things. I hope I'll be able to release the new version soon (in a few days), but I've been a bit busy lately.

Report

Cqoicebordel

1 year ago

I just installed 1.4 as a new widget. I have a dual monitor setup and have two linked issue : when set as a small desktop widget, and clicking on it, the popup :
1/ Open at the top left of the widget, even if the widget is at the top left corner of the screen, which means the popup appears offscreen
2/ It appears on the primary monitor when the widget is on the second
3/ I can alt+click the popup to move it, but it doesn't remember its new position
Fixing all three would be ideal :)

Report

C

nobleswagger

1 year ago

I'll look into this, but I can't promise anything. :)

Report

C

nobleswagger

1 year ago

Would you be willing to test two versions?

Report

Cqoicebordel

1 year ago

Sure. You can even just give me the snippet of code, and I'll modify it, as I can reproduce with plasmoidviewer.

Report

Cqoicebordel

1 year ago

It might be easier to communicate by mail. So my mail is my pseudo @gmail.com

Report

C

nobleswagger

1 year ago

I thought that email address looked odd... Hit me up at yoloswag6 at protonmail.com

Report

C

nobleswagger

1 year ago

Sent.

Report

hamidrjafari

1 year ago

It is good to be able to choose which parameter to screen on the panel. If running more than one instance, it becomes difficult to compare. That way at least one parameter for all locations can be compared at a glance.

Report

C

nobleswagger

1 year ago

You can do this! Perhaps I should have put that in the description... Simply click on a given parameter in the expandable version. The elements will get resorted and the compact/tray rep will switch to it.

Report

hamidrjafari

1 year ago

It reverts back to PM-2.5.

Report

C

nobleswagger

1 year ago

What station?

Report

C

nobleswagger

1 year ago

Oh, nevermind, now I see it - you mean it happens on updating. Thanks for pointing this out, I'll fix it.

Report

hamidrjafari

1 year ago

I don't see this station in search results: http://aqicn.org/city/iran/tehran/cheshmeh/

Report

C

nobleswagger

1 year ago

Your issue is tricky - the station does indeed exist in the WAQI Api (and I should say there can also be discrepancies between their website and the API - which the widget uses). However their search function doesn't return it. I could implement searching by id in addition to keyword - that said the ids are difficult to dig out of the source code if something is broken anyway - so I'm not sure if that would be so helpful anyway.

Meanwhile you can try this workaround:
Open /home/$USER/.local/share/plasma/plasmoids/org.kde.plasma.waqiwidget)/contents/config/main.xml.
Find an entry called "Config Array". On the list, after "stationId", the next entry is "324". Change that to "10786" (without the double quotes).
If you want to change the name that shows in the config menu (other than that it will display properly), change the second entry, too - just be careful - use semicolons instead of commas (they will get converted). Every entry must be separated by commas.

Report

1.5 1 year ago

-Made the widget compatible with plasma versions down to 5.1 (Kubuntu 16.04)
-Optimised the widget for use with multiple desktops
-Changed the behaviour of the full representation window (closes on clicking anywhere outside it and other fixes)
-Made the station selection window scale with resolution
-Improved the tray error box
-Reverted the size of the temperature label in the full representation

1.4 1 year ago

-Optimised and changed the automatic update system - Now a specific hourly update time can be set with an optional second one allowing the user to automatically download their data with the smallest delay possible.
-Added the option to either keep the user selected element across updates or always select the one with the highest reading on updating.
-Improved the config menu layout.
-Changed the font sizes of weather elements in the expandable representation.
-Fixed the weather unit symbols not scaling properly with resolution (and becoming displaced).
-Fixed the positioning of the expandable representation when opened from the tray.
-Made the widget compatible with plasma versions down to 5.9 (Kubuntu 17.04 Zesty Zapus)

1.3 1 year ago

-Adjusted the tray version's label sizes
-Added an error box for the tray version and fixed its error tooltip message
-Scaled up the size of the expandable versions' time label
-Got rid of the descriptions of temperature

1.2 1 year ago

Fixed the positioning of the error labels. Further improved the positioning of other labels.

1.1 1 year ago

The widget now properly scales with screen resolution. Also fixed a scaling problem not connected to resolution.

1.0b 1 year ago

Fixed Typo

12345678910
2
product-maker stroum Dec 01 2018 9 excellent
+
product-maker avlas Nov 19 2018 9 excellent
+ Interesting, but unfortunately in my desktop numbers' font size is huge (numbers don't fit the square they are in). Wish there was a way to reduce it or a better way to self-adjust.
product-maker Base: 4 x 5.0 Ratings
Be the first to comment
xavierdepedro
Dec 27 2018
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
1.5
updated Jul 31 2020
added Nov 18 2018
downloads 24h
0
mediaviews 24h 0
pageviews 24h 1