Cronweatherflow can not open local file for writing

Greetings.
We are using WeatherDisplay ver 10.37s Build 81.
Cronweatherflow version 3.8

When I try and read the sensors names, I see the error in Cronweatherflow of ‘Can not open local file for writing’.
Same error appears every time the cron tries to read the station data.
I have the check box, ‘use direct udp from hub’ checked.

I was sure to put in the station ID from the app before I clicked ‘Enable’.
The main Weatherdisplay app is showing green for ‘Data Received’ and Data Quality, but none of the data points are updating.

Weather display is installed on Windows 10 PC and installed in c:/wdisplay

What local file needs to be created? How can I give it write access?

Thanks for your time.

Cheers.

try deleting the
weatherflow.txt and weatherflow0.txt and weatherflow1.txt and weatherflow2.txt files
from the WD web files folder (i.e where you have that set (default is c:\wdisplay\webfiles\ ) in WD (control panel, webfiles/web page setup)

the issue might be a windows 10 permission problem
are you running as admin?

Thanks for your help.
Those file locations are correct as per the control panel, but the files do not exist.
Yes, running WeatherDisplay as admin.
I tried creating those files and it no difference, getting the same error.
All those files remain at zero bytes.

I notice that other files are being written Ok to that webfiles directory.

EDIT, just tried running cronweatherflow as administrator and that made no difference.

check in the window registry
using regedit.exe
search for wdisplayftp.ini
then find
[New webfiles location]
location=

what is that set as?

Thanks Brian,

It was pointed to an old file location.
Should I edit the registry or is there some place in the control panel I should change that path?

try actually re selecting the web files location in WD
and then restart the cron program
or edit the registry direct
then restart the cron program

Hi Brian,

We repointed the control panel at the c:/wdisplay/webfiles, but it did not update the registry, so we edited that and restarted both pograms and we have some progress…

The cron program now states ‘ok’ in the small box on the left.
I have my sensor names in the ‘Get Names’ dialog box, but there is no data in the cron and the main weather display is not updating.
The names of the sensors is correct, so I know its pointed to my weatherflow station.

I see weatherflownames.txt is updating and weatherflow0.txt is now updating.
When I open/view the files contents both have lots of data names, but no data values in them.

getting or setting sensor names is only really needed if you have more than one station/sensors
is any data showing in the cron program now?

There is no data in the cron program.
Just an ‘ok’ in the box on the left. This updates with another ‘ok’ pretty often.
The box on the right has the sensors names.
I have the wind/rain sensor and the outdoor temperature sensor.
The space in the middle of those two boxes is just showing a series of —
I have the station ID and the check box UDP is checked. (it makes no difference if I uncheck it).

Have attached a screen shot of the cron program.


in the screen shot you have posted you do not have ticked to use UDP
tick that
then restart

Hi Brian,

Yes, I have tried it ticked and not ticked, restarts between both.
It does not make any difference to the data in the cron program or the main weatherdisplay program.

the issue with the UDP data could be a router issue (there was someone else who reported they had to set a bind setting in their router settings for the weatherflow hub)

I have got data a couple of times using your station ID and not using UDP data
(but its intermitant)
one thing make sure to not set as private data only, your weather flow data

Thanks for your help Brian.
Not sure what else either of us can do.
I have the station set to Public (always has been), but not sharing with WU (Was going to do that through WD).
I am getting data reliably from the WeatherFlow hub via UDP and Node-RED, so feel confident that the router is working as it should.
(I have about 80 devices on my network, so am very comfortable with Windows, Linux and IoT devices).

I find it odd that cronweatherflow finds the station devices and all the sensor names, but not the data?

The debug from the control panel in WD does not show any errors.
Let me know if there is any other debug information I can get.

I have found and fixed it
use this update
http://www.weather-display.com/downloadfiles/cronweatherflow.zip
vers 3.9
working here (with UDP not set)
i.e unzip/extract to where you have WD installed (exit the current running cronweatherflow program)

it seems you had a sequence of ID I had not come across before
(if works with not using UDP, then we can work on using with UDP set next (might be a similar issue))

Brian.
Great work!
Thanks so much for taking a good look at it.
Working as expected. Data in the cron and data on the main weatherdisplay window.
Very excited.

Happy to test any other versions if you need.

Thanks again for your time. Greatly appreciate it.

that’s good
is that with the UDP not set?
(does it work if that is set and then restarted?)

Hi Brian,

It works with UDP set Ok.

The only problem I can find thus far is that the solar radiation (and UV) is not coming in correctly (With or without UDP ticked).
It is just reading 0.0 Wm/2 all the time. But the weatherflow app shows it correctly, as does my raw udp data into Node-RED.

I just tested here (cant test with UDP) using your ID
and UV and solar does show OK in the cronweatherflow program
do you see that data?

Here is a screen shot of what I am I seeing.
Note the lack of solar or UV.