Cronweatherflow can not open local file for writing

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.


if you unset to use udp
does solar and uv show?

Hi Brian,

Had to wait for the sun to come up (Im in California)…
Sadly, even with the UDP unchecked, there is no solar or UV readings.
I can see it in my local UDP stream via Node-RED and I can see the readings in my WeatherFlow Android app.

Thanks for you time looking into this.

but uv and solar is working here with the udp not ticked
and using your ID (i.e the data comes from the weatherflow server)
so it should be working for you
with the latest update of cronweatherflow
(did you restart that after unsetting to use udp, as a test)

Brian,

Ok, i did not understand there was a difference starting cronweatherflow separately from weatherdisplay.

After starting cronweatherflow I am now getting solar and UV.
Thanks for clarifying that.

normally WD starts the cron program when its started
do you mean it was not running, or?

Evaulating (Trial) WD v10.37.S114 here.

I am experiencing the same problem with Cronweatherflow v5.5 on Windows 10 64bit

It worked good for 1 day.

I had an abrupt power interruption due to an electrical storm (PC turned off without being shut down).
Then this thing started with “Can’t open local file for writing.”
I deleted the wetherflow.txt weatherflow0.txt and weatherflow2.txt from the C:\Program Files (x86)\wdisplay directory.
Still having same error.


was it working prior to the power outage, if so sounds like a corrupt settings file