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
Score 63.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 7 months 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

sgrayban

2 months ago

Missing temp conversion.... Only Celsius.

Report

C

nobleswagger

1 month ago

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

Report

sgrayban

18 days ago

You get the temp conversion to F yet ?

Report

C

nobleswagger

11 days 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

8 months 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

8 months ago

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

Report

C

nobleswagger

8 months ago

Would you be willing to test two versions?

Report

Cqoicebordel

8 months 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

8 months ago

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

Report

C

nobleswagger

8 months ago

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

Report

C

nobleswagger

8 months ago

Sent.

Report

hamidrjafari

8 months 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

8 months 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

8 months ago

It reverts back to PM-2.5.

Report

C

nobleswagger

8 months ago

What station?

Report

C

nobleswagger

8 months ago

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

Report

hamidrjafari

8 months ago

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

Report

C

nobleswagger

8 months 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

C

nobleswagger

8 months ago

Oh, after you do this. You need to restart the plasmashell or reboot -
killall plasmashell
kstart5 plasmashell
And then put a new widget on the desktop/in the tray.

Report

jamiedemon

8 months ago

Error loading QML file: file:///home/jake/.local/share/plasma/plasmoids/org.kde.plasma.waqiwidget/contents/ui/Main.qml:3:1: module "QtQuick.Window" version 2.11 is not installed

Report

C

nobleswagger

8 months ago

What distro are you on (+version)?

Report

xavierdepedro

8 months ago

Same type of issue for me. I'm on Kubuntu 16.04

Report

C

nobleswagger

8 months ago

Sorry, it looks like at the moment the Widget is not compatible with anything below the Bionic Beaver (18.04). I have an update coming in a few days - I'll see if I can get it down to 16.04 (might not be possible), but I can certainly reduce dependencies to the Zesty Zapus (17.04). Thanks for reporting this!

Report

C

nobleswagger

8 months ago

I could probably make 2 versions as well.

Report

stroum

9 months ago

9 +

Report

1.5 7 months 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 8 months 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 9 months 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 9 months ago

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

1.1 9 months ago

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

1.0b 9 months 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 Count: 4 Rating: 5.0
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs ocs-url or ocs-store to install things
Pling
Details
license
version
1.5
updated Feb 01 2019
added Nov 18 2018
downloads 24h
6
page views 24h 6