I have noticed a new map feature in the Air Quality block. It does not seem to be working for me or on several other sites.
Where do we correct this?
Tom
I have noticed a new map feature in the Air Quality block. It does not seem to be working for me or on several other sites.
Where do we correct this?
Tom
Same here, good spot.
turn on extra links in other tab
Extra links is already on, but good thought.
BTW, the map link is not working on your site ‘N.E. Calgary, AB Home Weather Station (wd version)’ either.
Tom
weird, i just opened the map about 30 minutes ago
I just tried again. Works fine at my end
Luftdaten map does, Official map doesn’t. And “Full page” shows Belgium. . .
I thought it might be a browser issue but your map is not working for me on IE, Edge or Chrome.
Really weird it is working for you and not me.
Tom
I managed to get the full page fixed, but having an issue getting the official map fixed
The official map issue might have something to do with temis.nl. I am currently having an issue with wxsim getting ozone data from the same site.
Maybe Wim can share some info on this…
+1 =D>
This is the source of those pages TEMIS -- Support to Air pollution monitoring
All pages are off-line.
Text for a future readme.pdf if time permits:
To debug when an image (map) link at the bottom is not available:
F.i. with Chrome => Right-click on the link, Choose “Open in new Tab” or similar
In the new tab in the address line you see the full ink:
. . . /pwsWD/image_popup.php?nr=aq_map&script=AQ_gov_c_block.php
The script is “image_popup.php”
The important variable for the script → “nr=aq_map”
The originating script is AQ_gov_c_block.php, which is sometimes used, often not.
Read the script: pwsWD/image_popup.php
Starting at line 48 you see all images to be “pop-up’ed”
At line 80 we find the description of the “Temis AQ map”
The remark point to the general page to find your region at http://www.temis.nl/airpollution/no2col/data/omi/nrt/
Sadly that page is also non-operational, so we need to go back and back we end at TEMIS -- Support to Air pollution monitoring with only off-line pointers.
This image-popup is not a core dashboard script.
Neither it is a user-settings script
It is a mix-and-match of general settings which need modification by the website owner f.i. the pop-up for the webcam2 and 3 images
And images which are probably never changed such as the ocean pressure maps.
If PWS_Dashboard was developed by a company and could afford to have a programming team, this script would be maintained with another set-up program.
For now i think at least 60% do not need to change anything here. The others need to have some basic understanding of PHP.
@ALL If you have make changes, always make a copy and store it in a save place.
Also reset the version number on the first line from |01| to |09|
Then you get a warning in PWS_updates.php that the script is modified by yourself.
Wim
P.S. often, sadly not always, you can test the pop-ups with the debug dashboard: pwsWD/PWS_module_test.php
All pop-ups are at the top-right drop-down to test. You will not be using them all, some of them are dependent on your weather-data source.
I notice this Map popup is still not working. Presumably the source site is still down.
Is there another air quality map that could be incorporated into the script?
I’ve found two nice air quality maps, one of which I’d like to have as the Map popup in the Air Quality block: -
or
I’ve tried to change the url in image_popup.php from http://www.temis.nl/airpollution/no2col/data/omi/nrt/omi_no2_europe_today.png to one of the urls above but this still doesn’t work.
I’m not a php expert and would be grateful if someone could tell me how to change this code: -
$n = 'aq_map'; // find your region here http://www.temis.nl/airpollution/no2col/data/omi/nrt/
$pop_img[$n]['url'] = 'http://www.temis.nl/airpollution/no2col/data/omi/nrt/omi_no2_europe_today.png';
$pop_img[$n]['txt'] = 'Air pollution';
$pop_img[$n]['head'] = '';
Here’s a link to my PWS_Dashboard: -
The temis URL loads an png-image which is rendered as the body background.
Your two urls are websites so they need and iFrame.
You have to add an extra line
$n = 'aq_map'; // find your region here http://www.temis.nl/airpollution/no2col/data/omi/nrt/
$pop_img[$n]['url'] = 'https://www.iqair.com/us/earth?nav';
$pop_img[$n]['txt'] = 'Air pollution';
$pop_img[$n]['show'] = 'frame';
$pop_img[$n]['head'] = '';
Your first url does not allow running in an iframe
And the second one runs into javascript errors, probably to small size.
I will check if they have “embed” versions which are designed to run on your website.
===another solution
https://www.mytempestuk.com/pwsWD/fct_windy_popup.php?lang=en-uk&script=temp_c_block.php
Go to the select menu at the top right.
They have also a “Dust mass” layer we could use.
Wim
Thanks Wim,
Yes I’m familiar with Windy, and upload data to them separately. That’s a good idea, and maintains consistency with other parts of the template.
Attached two adapted scripts to show the windy map for PM/dust
Please FIRST make a backup of the current two scripts on your server.
Wim
aq-map test.zip (6.04 KB)
Thanks Wim. It’s a pity they don’t show PM concentrations in that version, like they do in the app.
It should show it. I aatach a modified one which will show a marker with the value, you can drag it over the map.
What is the link to your dashboard site?
This one https://www.mytempestuk.com/pwsWD/ has only the old link.
Wim
fct_windy_popup.php.zip (2.68 KB)
Sorry I had made some changes to the image_popup.php that I needed to add to the test script before installing it. I’ve installed it now and it still doesn’t show the Windy map. It still hangs like before.
Sorry to nag Wim, but this new Windy map still doesn’t work.