HWS-template (WD34) July version available

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

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

  1. PLEASE always give the URL to your WD34 site
  2. You should us w34_module_test.php and select a file from the dropdown.
  3. The messages tell us that there is not file clientraw.txt.
    3.1 WD has to upload that file and
    3.2 you have to tell in Easyweahter what the exact location is.

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 -

  1. 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.

  2. 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 :frowning:

I just checked the tagslist file, you’re right, no tag.

Maybe Brian would be kind enough to add one to WD :wink:

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 :frowning:

Meanwhile, I’ve put up Earthquakes instead of Max Wind|Gust :slight_smile:

I thought about using custom tags as well, but I was unsuccessful at getting that to work. :frowning:

who knows, maybe we will catch Brian at a weak moment and he will add the tag. :smiley:

That does not seem to work here (url as left but /pwsnew/). I made line 37


echo '<body style=" background: transparent url(\''.$webcam_img.'\') no-repeat fixed center;  background-size: 70% 100%; ">

You might have to play about with the 70% number.

Hi, here is the link:
https://stazione.meteosantangelo.it/pws07/w34_module_test.php
the clientreaw.txt file is in the main domain, everything is configured correctly, it seems to me …
Thank you

STRONG ADVISE / WARNING
You should really try to not use a HTTP- link as that will force to load the file by internet every time it is accessed.
Easyweather livedata file location:

Path to your realtime data file. Not used with an API.
Correct path is essential for live realtime data display.
Example “…/clientraw.txt” when your file is in the root.

Also the readme: http://wd34.weather-template.com/documentation/WD34-questions-2019-07.pdf

You should set the path to that file, for our example we use clientraw.txt. Do not [b][color=red]use an external ink such as http:// a[/color][/b]s that will drastically increase the load on your server.

In this case the errors you mentioned are irrelevant.
A script can not ask for the file-modifed-time of a remote (http://) file and during debug all errors are printed.

The file is retrieved and displayed correctly, albeit with extra overhead.

Wim