Can you post the URL to the page with the iframe, then I can check.
Wim
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=" Details for New Haven" style="color: #000;">No alerts</a>
but your link reads
<a href="wxnws-details.php?a=PAZ065#WA1" title=" 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 ).
URL as left but /pwsnew/ instead of /pws/: I’ve made colour changes that don’t really work in Light Theme
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.
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
Thanks Wim,
That is exactly what I meant.
FYI: WU api has been running fine for almost 30 days now. But it would be nice to be creating a backup set of data at the same time, in case WU goes dark again.
Hi everyone,
I’m having a problem with the file: w34_listfile.php if I check the file: clientraw.txt
I get this error:
Warning: filemtime(): /w34_listfile.php on line 20
Warning: filemtime(): /w34_listfile.php on line 22
Filetime (UTC): 1970-01-01T00:00:00+00:00
does anyone know why? Is it a WD setup?
Thank you
Check your settings, NEVER EVER start a link with /, that means the ROOT of your site at the host, often “public_html”
You should us ‘./clientraw.txt’ if it is in the pws folder
Or '…/clientraw.txt" if it is in the root.
But again, without the URL there is not much anyone can do.
Wim
Two questions -
My small alert box (Top Right) shows a forecast in the box. Not sure what is in the box if there is a weather alert, as I have not had one since setting up the July issue. The forecast seems to be the same all the time. “Mostly cloudy throughout the day.”, which is not correct. I see that others show the same thing and others say “no weather alert”. Where does this come from and can it be changed either to “no weather alert” or a forecast that is correct. I see a discussion of this around reply #35, but there was no definitive answer that I saw.
The webcam block is elongating my webcam image, is there a way to change the settings to keep the “aspect ratio” so it does not stretch out the image. I looked around in the webcam block, but had no luck.
Thanks, John
At this moment “Mon 1 Jul 15:36:02” the box shows Caution Fire Risk Possible 82.9
Max Wind/Gust times are always the same in the small block(top row)
Is anyone else seeing this?
Yup! Both mine are using WD clientraw #135. . . don’t think there is a max wind time in clientraw
I just checked the tagslist file, you’re right, no tag.
Maybe Brian would be kind enough to add one to WD
I would normally add the tag to my customtxtout.txt to get data that’s not already in clientraw, but looks like that won’t be possible
Meanwhile, I’ve put up Earthquakes instead of Max Wind|Gust