Raspberry Pi Bad file number

Hi I have testtags.txt Version 1.07 uploading as wxlocal.html and formating as testtags.php on my Raspberry pi 4.
I had to remove the windowsuptime tag (line 108) to get it to work. View https://southwestweather.com/wx-pi/testtags.php?sce=view

I attach is a copy of the testtags.txt with the windowsuptime tag removed.
Save as wxlocal.html and set in your pi config Use this filename instead of wx.html=testtags.php

BTrip


testtags.txt (46.4 KB)

Thank you for working that out. I tried to create testtags.php a week or so ago and it failed. I know why now!

kewl , I will add that to the .tar.gz install files :slight_smile:

okay, I have the testtags.php running and uploading to the ftp site. Is there a template that will use the data in this file and produce an html file that I can display on my website?

I have been using the PC version of WD which produces an html page including a chart of this data, and graphs.

Is there a template in the PC version that can be used?

thanks

Tim

Hi there are the Saratoga templates http://saratoga-weather.org/wxtemplates/install.php which require PHP5.x at a minimum.
Which I am using https://southwestweather.com/wx-pi/wxindex.php you will need to customize some of the files,
as the WD Consolewd 64 has a limited amount of weather tags.

BTrip

I have this working, but i can’t get the time to be correct. The consolewd is located in the Pacific time zone, but is reading data from the Central Time zone. The clientraw file shows the Pacific time, not the Central time. I have tried to use the “timezone=0 (to change the local PC hour used)offset” line in the config.txt file but it doesn’t seem to do anything.
How do i get the right time in the file?

the time in the clientraw file is the time on your raspberry pi
the timezone offset is only used for the wunderground data time (which needs to be UTV)

The time reported in the clientraw file should be the time reported by Weatherunderground when using this site. If you are reporting on a site in a different time zone, you want the time reported to be the time zone where the weather station is located not the time zone where the Raspberry pi is located.

Oh so u are using data from a wunderground station
Data feed that is in a different time zone ?

Yes, the weather station is 2 hours different than the time zone of the raspberry pi. I also have a second weather station in the same time zone as the raspberry pi.

So I can’t set the time of the raspberry pi to the other time zone because one of the stations would be reporting the wrong time.

Any fix for this problem?

I just downloaded the latest version of the software. I get the following error:

“Could not find the file clientraw.txt”

I cannot find it in any of the directories.

What do I need to get this file stored?

Thanks

Tim

HI
I forgot about this problem
yes I can make this change
is this for raspberry pi3?

where/what/how are you seeing this error?

I have the raspberry 4.

I run the latest release and get an error message.

Here is the output

** timezone daylight saving offset 7
timezone hour 0
timezone hour after adjust -1
**** max radiation w/m2 0.0
**** updating clientraw extra files
**** updating data logs 19:21:00
** opening custom input file /home/pi/consolewdfiles/wxlocal.html
***closed custom tag in file
******custom output 1 /home/pi/consolewdfiles/testtags.php
******re writing custom file
**custom tags lines to write 1
** closed custom tag out file
updating records to ini file
login OK to odonnells.net
changing to /www
Could not find the file clientraw.txt
upload testtags.php to odonnells.net OK

Also, i need to have the file report the time stamp that comes from weatherunderground. Right now it shows the time of the Raspberry, which is not in the same time zone as the weather station.

what is the error message ?

It says “Could not find the file clientraw.txt”. Sounds like it might be trying to upload the file but can’t find it?

When will a fix for this problem be available?

When will a fix for this problem be available?
which particular problem? the fact that for your very unique situation in setup you need the time to be from the remote wunderground station? or the fact that somehow in your settings there might be a problem with the path you have set to the clientraw.txt file?

I have made no changes to the config file and when I installed the latest update, the software could not find the clientdraw file. I did not set any new location for this file. I cannot find this file on the computer anywhere.

It was working before I downloaded the new version of the software.

I would be good if the time reported was the time that was reported by weather underground. That would make more sense than to change the time to the time of the computer.

Thanks

Tim

did you update the new config.txt with the info from the old one when you put the latest version on