Community Support

"bad file format" w...
 
Notifications
Clear all

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

14 Posts
3 Users
1 Reactions
5,436 Views
(@ferserranod)
Posts: 10
Active Member
Topic starter
 

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.

 
Posted : 06/05/2019 4:23 pm
Pierre Lannoy
(@pierre-lannoy)
Posts: 1338
Noble Member
 

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

 
Posted : 06/05/2019 6:25 pm
(@ferserranod)
Posts: 10
Active Member
Topic starter
 

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.

 
Posted : 07/05/2019 7:20 pm
Chris
(@zerog981)
Posts: 232
Member
 

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.

 
Posted : 07/05/2019 9:58 pm
Pierre Lannoy
(@pierre-lannoy)
Posts: 1338
Noble Member
 

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

 
Posted : 09/05/2019 10:45 am
(@ferserranod)
Posts: 10
Active Member
Topic starter
 

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.

 
Posted : 09/05/2019 5:34 pm
Pierre Lannoy
(@pierre-lannoy)
Posts: 1338
Noble Member
 

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

 
Posted : 09/05/2019 5:41 pm
(@ferserranod)
Posts: 10
Active Member
Topic starter
 

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.

 
Posted : 09/05/2019 5:48 pm
Pierre Lannoy
(@pierre-lannoy)
Posts: 1338
Noble Member
 

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

 
Posted : 09/05/2019 5:58 pm
(@ferserranod)
Posts: 10
Active Member
Topic starter
 

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

 
Posted : 09/05/2019 6:25 pm
Pierre Lannoy
(@pierre-lannoy)
Posts: 1338
Noble Member
 

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

 
Posted : 09/05/2019 6:26 pm
(@ferserranod)
Posts: 10
Active Member
Topic starter
 
Posted by: Pierre Lannoy

Yes, the file 🙂

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

 
Posted : 09/05/2019 6:31 pm
Pierre Lannoy
(@pierre-lannoy)
Posts: 1338
Noble Member
 

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

 
Posted : 09/05/2019 7:31 pm
(@ferserranod)
Posts: 10
Active Member
Topic starter
 

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.

 
Posted : 10/05/2019 10:27 am