[This post is marked as unsolved] "bad file format" when adding new Vantage Pro 2 station via stickertags/realtime
Hi, I am trying to add my weather station (Davis Vantage Pro 2) to the plugin. I tried both via stickertags file and realtime.txt file, however, I wound up with the same error message "bad file format" (find attached a screenshot). I searched similar issues in this forum, but I was not able to figure out where the problem is. My guess is about the stickertags/realtime file format. Here they are the files I'm pushing via Weatherlink:
Stickertags -> http://www.lascasasdeandrea.com/meteo/realtime.txt
Realtime -> http://www.lascasasdeandrea.com/meteo/realtime.txt
Does anybody know what I'm doing wrong?
Thanks in advance.
I’m sorry I’m in holidays for now with limited access to internet. I will be back in 3 days and will try to help you at this time.
Just got an eye on your realtime file and it contains
which is is not a valid value
Thanks Pierre, I finally managed to setup the WL_stickertags.txt file and then I added my station. However, data was retrieved just once despite being pushed every 1 minute via Weatherlink (see screenshot).
On the other hand, I checked the error log, and there are some entries like this: "Internationalization support is not installed on your server. Weather Station runs in degraded mode..."
Any help would be appreciated.
have you set up a cron job for your page according to this article? It allows your page to fetch up-to-date weather data, even if there is little to no traffic 🙂
I like the cold weather. It means you get work done.
@zerog981 is right, the main reason may be a cron which is not set. I encourage you to set it. If the problem is still here after that, just let me know...
I set up the cron job according to the article steps. It seems to be working fine (I can see "Cronjob execution: Successful (200 OK)" in cron-job.org log). Unfortunately, data is not being retrieved yet and the freshness column is stuck in "07/05/2019, 19:14 - 2 days ago".
Find attached a screenshot from the events section. Hope it helps.
You have many errors in your events log. Could click on a line with error and give us the full content of the error? Could you give me the exact url of the file you're collecting too?
Seems like I'm getting the "bad file format" error again, but my WL_stickertags.txt ( http://www.lascasasdeandrea.com/meteo/WL_stickertags.txt ) was not changed. Weird...
Your file contains errors (as far as I can see):
- it must not contain carriage return
- it must not contain double spaces
I understand the frustration to manage things with files (and stupid formats, I admit). Nevertheless, I recommend you to fix your file before any other investigations. Weather Station will never works correctly if your file is wrong. I'm sorry.
Posted by: Pierre Lannoy
I'm sorry you have a wrong behavior of Weather Station but I must admit, I'm not totally surprised... Once again, Weather Station can only collect file-based stations if the provided file is a realtime.txt, clientraw.txt or stickertags file. These types of files are normalized or are defacto standards.
- realtime.txt is described here: http://wiki.sandaysoft.com/a/Realtime.txt
- clientraw.txt is described here: http://www.burnhamoncrouchweather.com/clientrawdescription.txt (and you will find a lovely parser here: https://www.tnetweather.com/wdparserold/index.php )
- stickertags is described here: http://reseaumeteofrance.fr/instructions.php (sorry, it's in French)
They are raw text files (not html or other formats).
If these formats are not fully implemented, the files can not be rightly used by Weather Station. I'm sorry.
According to your recommendation in other post for stickertags file generation, I generated my file as described for Weatherlink software. I'm still getting some errors, despite being retrieved OK in other cases.