HWS-template (WD34) July version available

Can you test this update?

No way to use extra_tmp_c_small.php?
Not for all as I have to find a simple solution for the extra upload data, that is why I did not include it in this version. Only WD-api (3 TH but no soil) and WL.com (all) have the extra sensors

But one can add a block to w34_blocks.php and manually change the settings1.
When the next beta is available (August) a standard solution will become available also as an update for the normal releases.
It should include correct versions of extra_tmp_c_small.php and soil_c_block plus a soil pop-up. Also all “extra”-scripts should be in easyweather.

Wim


w34_util_ccn.php.zip (3.03 KB)

Looks OK, but colours are not working?. . . Try putting “This hour: Temperature. . .” on the same line if you want to save a line and show Rain and UVI on separate lines. (URL as left but /pwsnew/: I’ve modified my original w34_util_ccn.php to get UV and colours.)

Not for all as I have to find a simple solution for the extra upload data, that is why I did not include it in this version. Only WD-api (3 TH but no soil) and WL.com (all) have the extra sensors

WD-clientraw has 8 extratemp/hum fields. . . I’m also using a WD customtextout.txt file to get extra upload data.

But one can add a block to w34_blocks.php and manually change the settings1.

I know. . . :slight_smile:

When the next beta is available (August) a standard solution will become available also as an update for the normal releases. It should include correct versions of extra_tmp_c_small.php and soil_c_block plus a soil pop-up. Also all "extra"-scripts should be in easyweather.

OK.

Meteoalarm.eu alerts display correctly but if there is no alert, the forecast for tomorrow now appears in the alerts box instead. Is this intentional? http://www.collapit.org.uk/pwsWD/

Yes it is.
Explanation: When there is no outside “official” alert and no internally calculated warning, what should we display there?

Earlier versions used a “no alerts” message. But users thought that was a waste of space.
So if there is some meaningful information, like a forecast, that is displayed.

Some users changed the translation from “Weather alert” to “Weather message”, but that is nitpicking.
Wim

Thanks for the explanation. I’d suggest prefacing the forecast in the alert box with,“Forecast for tomorrow:”. It was only clear to me that it was tomorrow’s forecast when I looked at the forecasts in the "forecast ahead"pop up but perhaps I’m nitpicking too!!

Is there a way to change the text color on Weather Alerts? Mine looks like silver text on an orange background and is hard to read:

https://www.m82a1.us/pwsWD/index.php


Not in a setting, but I set the font color to black in the curly warnings script
Can you please test this version. Thanks,
Wim


wrnWarningCURLY.php.zip (1.85 KB)

That looks fine, Wim. Thanks.


The weather alerts/warnings are not displaying the text when I click on them in the iframe.

https://www.m82a1.us/pwsWD/index.php

Can you post the URL to the page with the iframe, then I can check.

Wim

Sorry, Wim. I copied the wrong link:

https://www.m82a1.us/pwsWD/index.php?frame=weatheralarms

Then click on the warning.

Thanks Tom, I see it now, must have skipped over it the first few times.

John

Your site:
https://www.m82a1.us/pwsWD/nws-alerts-142/nws-summary.php
Click on the alert or the “no alerts” link for York => HTTP ERROR 500 which means a PHP parsing error of some sort

My test-site (or try other users site):
http://wd34.weather-template.com/pws07/nws-alerts-142/nws-summary.php
Click on a alert or a “no alerts” link for NewHaven
=> http://release230/pwsWD/nws-alerts-142/nws-details.php?a=CTZ006#WA1 no error, normal output

===

I did not change anything in the “Curly” download from KenTrue’s website.
Not even the folder name. So it must be a change somewhere in the settings,

===

When I click for the details on an unchanged version the link reads

<a href="nws-details.php?a=CTZ006#WA1" title=" &nbsp;Details for New Haven" style="color: #000;">No alerts</a>

but your link reads

<a href="wxnws-details.php?a=PAZ065#WA1" title=" &nbsp;Details for York" style="color: #000;">No alerts</a>

So there must have been a change to use another details page. This “wx” page is for a Saratoga site, not for a stand-alone version.
This is how the “nws-alerts-config.php” about line 40 should look:

// file names
$cacheFileName = 'nws-alertsMainData.php';  // main data cache file name
$aboxFileName  = 'nws-alertsBoxData.php';   // alert box cache file name
$iconFileName  = 'nws-alertsIconData.php';  // big icons cache file
$alertURL      = 'wxnws-details.php';       // web page file name for complete details - Used with Saratoga Base USA template
$summaryURL    = 'wxadvisory.php';       // web page for the alert summary - Used with Saratoga Base USA template
$alertURL      = 'nws-details.php';       // web page file name for complete details - Used for standard web pages
$summaryURL    = 'nws-summary.php';       // web page for the alert summary - Used for standard web pages

This is yours config, the two lines which are commented are the cause of the error

// file names
$cacheFileName = 'nws-alertsMainData.php';  // main data cache file name
$aboxFileName  = 'nws-alertsBoxData.php';   // alert box cache file name
$iconFileName  = 'nws-alertsIconData.php';  // big icons cache file
$alertURL      = 'wxnws-details.php';       // web page file name for complete details - Used with Saratoga Base USA template
$summaryURL    = 'wxadvisory.php';       // web page for the alert summary - Used with Saratoga Base USA template
//$alertURL      = 'nws-details.php';       // web page file name for complete details - Used for standard web pages
//$summaryURL    = 'nws-summary.php';       // web page for the alert summary - Used for standard web pages

The “meant for Saratoga” scripts need other supporting data which is not there as we are running the stand-alone version.

Wim

Wim, if the user has entered a WeatherFlow station ID, could add in the ‘Extra links’ in the menu, in addition to the link to the WeatherFlow map page, a new link to the WeatherFlow weather station data/info page - the link should have this format:

https://smartweather.weatherflow.com/station/'.$weatherflowID.'/grid

In case you need/want to check my site, it can be reached at '[url=http://tzwd34.ddns.net/]Tzouhalem-Maple Bay Weather

Sorry, Wim. I missed that in the customization of the NWS configuration page. Now to wait for an alert. It looks like it may be a few days.

Much appreciated,
Mort

You can test it by https://www.m82a1.us/pwsWD/index.php?frame=weatheralarms
And click the “York No alerts”

Wim

Cool! We have a winner. Thanks, Wim.

In easyweathersetup I set “Display theme-selection in Menu” to “Not allowed”, but the choices are were still shown on the Menu (bon appetit :slight_smile: ).

URL as left but /pwsnew/ instead of /pws/: I’ve made colour changes that don’t really work in Light Theme :wink:

Choices now commented out in w34_menu.php.

Wim,

Experimenting with using my own data for my historical charts. The system is working fine.

I am wondering if there is a way to upload my historical data for 2019 and the current Month to the text files on my server??

It appears to me that the Cron jobs will not run unless you select that in the settings menu. It would be nice if you could be collecting your WD data on your sever via the cron jobs, but still be using WU data as long as it it is working. So I could be collecting data every day, and if the WU api/charts quit working again, I can switch to “my” data files, and have charts that contain complete historical data.

So the Cron jobs would be running as scheduled, collecting data, but the charts would come be served from WU api.

Hope this makes sense.

Thanks.

It is not exactly clear to me what you want. first my thoughts about this.

  1. 1WU promised that they will get the .CSv or a replacement working.
    [li]Downloading the yearly data from WU is all we need to make a backup.
    As long as we have the yearly file backup somewhere we can write a simple program to change the format to the .txt files the crons create now.[/li]
  2. The daily file is automatically created when WU stops delivering the .CSV’s.

So this new month you should save the yearly file somewhere else, to make sure that it is not written over.

But if I understand you correctly, you want the stationcron to save to the .txt files now ALSO, although you are using WU for the charts.
To do so, change 1 line in w34_cron_stationcron.php, which reads now

if ($charts_from == "WU") {return; }

to

# if ($charts_from == "WU") {return; }

You can manually run stationcron or wait 5 minutes and check the /chartsmydata/today.txt file
You have to run the w34_cron_addtoyear.php also daily at 23:55

Wim