Why does YAAC show my wxnow.txt port in red on the configure page? My wxnow.txt file is timely but after a few minutes of enabling the wxnow.txt port the text turns red and future weather beacons show the last weather before the text turned red. And it beacons that old weather over and over.
My setup is a RPi, Davis Vantage Pro 2, Weewx.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I haven't actually tested weewx with YAAC personally. YAAC just supports the WXNOW.TXT format, which expects the file to be overwritten every few minutes with an updated timestamped set of weather data. YAAC opens the specified file every few minutes, reads it, and closes it so some other application can rewrite the file. If the file's timestamp doesn't change, then the reported time of the weather data won't change either.
The port going red indicates that there was a failure reading the WXNOW.TXT file (either a format error or an error opening the file, possibly due to file locking by the other application writing the file). I may need to update the port driver to allow for single collisions on the file, since some operating systems (such as Microsoft Windows) enforce file locking on write, such that YAAC wouldn't be able to open the file for read at the time when the other application was rewriting the file.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Why does YAAC show my wxnow.txt port in red on the configure page? My wxnow.txt file is timely but after a few minutes of enabling the wxnow.txt port the text turns red and future weather beacons show the last weather before the text turned red. And it beacons that old weather over and over.
My setup is a RPi, Davis Vantage Pro 2, Weewx.
I would love to know how you intregrated WeeWX and YAAC
I haven't actually tested weewx with YAAC personally. YAAC just supports the WXNOW.TXT format, which expects the file to be overwritten every few minutes with an updated timestamped set of weather data. YAAC opens the specified file every few minutes, reads it, and closes it so some other application can rewrite the file. If the file's timestamp doesn't change, then the reported time of the weather data won't change either.
The port going red indicates that there was a failure reading the WXNOW.TXT file (either a format error or an error opening the file, possibly due to file locking by the other application writing the file). I may need to update the port driver to allow for single collisions on the file, since some operating systems (such as Microsoft Windows) enforce file locking on write, such that YAAC wouldn't be able to open the file for read at the time when the other application was rewriting the file.