Page 1 of 1

realtime.txt and wxnow.txt can't be accessed (messages in log)

Posted: Thu 28 Oct 2021 3:35 pm
by inmyrvm
I'm seeing continuous messages in the log file saying wxnow.txt and realtime.txt can't be accessed because they are being used by another process. I've attached my MXdiags folder for reference. I did add a line to my websitedataT.json and restarted MX. The websitedata.json file seems to be formatted properly with the added line and everything else appears to be uploading to my web site, but currently there is no data on my web page. Seems like this has happened before when modifying the websitedataT.json but eventually it does fill in. Anyway, just curious if those errors with the realtime.txt and wxnow.txt are an issue and/or related to the missing data on my web site.

Mike

Re: realtime.txt and wxnow.txt can't be accessed (messages in log)

Posted: Thu 28 Oct 2021 3:43 pm
by mcrossley
A few things spring to mind...

1. Are you trying to copy realtime.txt file to the same location. I.e. MX is trying to copy the file to itself?
2. Do you need local copies of this files?
3. Do you actually use the realtime.txt and wxnow.txt files at all? If not switch them off in your interval configuration.

The copy errors are not stopping the rest of the process completing, so I suspect you may have an error in your websitedataT.json file.

Re: realtime.txt and wxnow.txt can't be accessed (messages in log)

Posted: Thu 28 Oct 2021 4:53 pm
by inmyrvm
I unchecked the copy option for realtime.txt and that stopped those errors. What is wxnow for? I see the setting for that but not sure what purpose that serves.

I tried to attach my websitedataT.json file but it wouldn't let me. The only change I made was to add this line for the purposes of creating a 24 hour temperature trend:

"temperatureChange24hours":(<#temp rc=y> - <#RecentOutsideTemp d=1 rc=y>),

When I removed that line and restarted MX the web site started populating with data again. Though prior to removing that line from the file the websitedata.json file did fill in the values correctly. Perhaps I'm missing a step.

Mike

Re: realtime.txt and wxnow.txt can't be accessed (messages in log)

Posted: Thu 28 Oct 2021 5:21 pm
by freddie
inmyrvm wrote: Thu 28 Oct 2021 4:53 pmI tried to attach my websitedataT.json file but it wouldn't let me.
Next time rename the file to websitedataT.txt. The exclusion of .json files is a security measure.

Re: realtime.txt and wxnow.txt can't be accessed (messages in log)

Posted: Thu 28 Oct 2021 6:25 pm
by mcrossley

Code: Select all

"temperatureChange24hours":(<#temp rc=y> - <#RecentOutsideTemp d=1 rc=y>),
Is not valid JSON, the "value" has to be either: a number, a string, or true/false

After processing you will have something like...

Code: Select all

"temperatureChange24hours":(14.2 - 13.6),
Which is none of the above.