***closed*** weather34 for WeatherDisplay (clientraw and WDapi)

Is there a reason my template is not auto refreshing like it used to? I’ve got it displayed on a fire tablet.
http://weather911.net/pwsWD/index.php

Sent from my Pixel 2 using Tapatalk

Sent from my Pixel 2 using Tapatalk

It works OK and refreshes OK in Chrome on my Mac.
As I have no access to a "fire tablet"I can not furthere test that.
Wim

But not picking up the metar station name in production? (It’s OK in beta.)


How can I change the update frequency when reading data from Cumulus type realtime.txt?
Currently it seems to be updating about once every minute.
Data are updated every 3-4s in realtime.txt.

I put it in on the todo list.
For now I Will be home on wendnesday night (CET) and first task is to finalize the April release.

Be aware that there are multiple independent reads of realtime data every minute, depending on the data-type.
F.I. Wind is requested faster as temp.
And your web server should be able to cope with all these requests.

I propose a factor, 1 = default speed, 2 = twice as fast, a.s.o.
Wim

Very good! I agree April release should be #1 priority

My suggestions:
Wind - default = 1/30s, 2 = 1/15s, 3 = 1/5s
Temp - default = 1/60s, 2 = 1/30s, 3 = probably not needed
Rain - default = 1/60s, 2 = 1/30s, 3 = 1/5s (nice to have during heavy rain)

My web server should not have any issues with this extra load.
G400

The orange arc corresponding to Luminance % is not easily visible in production moon block, dark theme.

(I’m not running beta, and the beta demo site is not showing the moon block, so I can’t check if it is different in beta.)


moon.png

This was a CSS background setting so it is a problem in both versions.
Removed it for this item in the script itself. Attach a script for your production version. It should be OK.

The beta version http://wd34.weather-template.com/pwsTEST/?theme=dark with the moon block seems OK now also.

Wim


moon_block.php.zip (3.89 KB)

Many thanks, Wim. Yes, both versions look good now :slight_smile:

P.S. Welcome back!

This one is OK?
Wim


metar_load_funct.php.zip (3.73 KB)

Yes, that works! Thanks, Wim.

So I just found this version of W34 (i was using Brian’s). I have installed the Beta 3/31 version. Everything working very good. Trying to reformat my Menu Items to work with this version.

I have links to other web pages and they open in a new tab. So I’m trying to figure out how to do this within the iframe code that is used in the new menu structure.

My old links were coded like this:

<li><!---Link 2---><div class="nav-text"><a target="_new" href="http://premiuma.accuweather.com/premium/radar.asp?LocationID=55331US&display=0&site=msp&level=metro&anim=1" title="MSP Metro Radar"> <?php echo $weather34mapicon;?> MSP Metro Radar</a></div></li>

Anyone know how to reformat my links?

I’m sure a link to the page would help anyone trying to help you.

The page link is in the code.

I figured it anyway, no worries.

A link to your page…

Does anyone know where the icons in the menu come from? The code for the “info” icon is <?php echo $info;?> but I have searched and can’t find the graphic anywhere. I would like to know what icons are available.

Most “icons” are svg-scripts.

Some are coded as external links

<img style="vertical-align: bottom; width : 60px;" rel="prefetch" src="w34_icons/mc_day.svg" alt="Mostly cloudy">

Other icons are copied as text when a script is run. Most of those svg blocks are in the w34_shared.php script.

 <?php echo $info;?>

Some other grpahs/icons are in the scripts themselves and will be moved to either an icon folder or the shared script in the upcoming releases.
Wim

Anyone know how to set up NWS weather alerts in US.

I’m getting a “Wind Advisory” and the correct alert should be “Flooding”

If I leave blank I get same alert.

http://discourse.weather-watch.com/p/526062
The standard curly/nws scripts are used as downloaded from KenTrue/Saratoga.
I did not modify anything. You do not have to modify the scripts either. You should only set the areas you want the warnings
http://wd34.weather-template.com/beta.php =>
For users from the USA, you have to modify your Curly/NWS weatherwarnings in the pwsTEST/nws-alerts-142/ folder

That is something for the new documentation.

Wim

Ok, I read that. Did not understand. I will look into further on my own.