Community Support

[This post is marked as unsolved] "bad file format" when adding new Vantage Pro 2 station via stickertags/realtime  

  RSS
Fernando Serrano
(@ferserranod)
Eminent Member

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.

Quote
Posted : 06/05/2019 5:23 pm
Pierre Lannoy
(@pierre-lannoy)
Member Admin

Hello!

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

<!--hiWindSpeedTime-->

which is is not a valid value 

If you like Weather Station, please consider to make a review to help make it known. That would be the best way to thank me...

ReplyQuote
Posted : 06/05/2019 7:25 pm
Fernando Serrano
(@ferserranod)
Eminent Member

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.

Thanks.

ReplyQuote
Posted : 07/05/2019 8:20 pm
Chris
(@zerog981)
Reputable Member 🇩🇪🇦🇹🇨🇭Editor

Hello Fernando,

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 🙂 

Chris

I like the cold weather. It means you get work done.

ReplyQuote
Posted : 07/05/2019 10:58 pm
Pierre Lannoy
(@pierre-lannoy)
Member Admin

Hello @ferserranod!

@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...

If you like Weather Station, please consider to make a review to help make it known. That would be the best way to thank me...

ReplyQuote
Posted : 09/05/2019 11:45 am
Fernando Serrano
(@ferserranod)
Eminent Member

Thanks Pierre/Chris,

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.

ReplyQuote
Posted : 09/05/2019 6:34 pm
Pierre Lannoy
(@pierre-lannoy)
Member Admin

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?

Thanks

This post was modified 3 years ago by Pierre Lannoy

If you like Weather Station, please consider to make a review to help make it known. That would be the best way to thank me...

ReplyQuote
Posted : 09/05/2019 6:41 pm
Fernando Serrano
(@ferserranod)
Eminent Member

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...

Thanks.

ReplyQuote
Posted : 09/05/2019 6:48 pm
Pierre Lannoy
(@pierre-lannoy)
Member Admin

Your file contains errors (as far as I can see):

  • it must not contain carriage return
  • it must not contain double spaces

If you like Weather Station, please consider to make a review to help make it known. That would be the best way to thank me...

ReplyQuote
Posted : 09/05/2019 6:58 pm
Fernando Serrano
(@ferserranod)
Eminent Member

According to the log, data is sometimes retrieved, right?

ReplyQuote
Posted : 09/05/2019 7:25 pm
Pierre Lannoy
(@pierre-lannoy)
Member Admin

Yes, the file 🙂

If you like Weather Station, please consider to make a review to help make it known. That would be the best way to thank me...

ReplyQuote
Posted : 09/05/2019 7:26 pm
Fernando Serrano
(@ferserranod)
Eminent Member
Posted by: Pierre Lannoy

Yes, the file 🙂

So, I should see something new here (see attachment) 

ReplyQuote
Posted : 09/05/2019 7:31 pm
Pierre Lannoy
(@pierre-lannoy)
Member Admin

Hello @ferserranod.

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. 

If you like Weather Station, please consider to make a review to help make it known. That would be the best way to thank me...

ReplyQuote
Posted : 09/05/2019 8:31 pm
Fernando Serrano
(@ferserranod)
Eminent Member

Posted by: Pierre Lannoy

Hello @cojka80!

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.

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.

Thanks.

ReplyQuote
Posted : 10/05/2019 11:27 am

To participate, please connect first!