Community Support

Bad file format
 
Notifications
Clear all

[This post is marked as unsolved] Bad file format

6 Posts
2 Users
0 Likes
13.3 K Views
(@claus-falk)
Posts: 2
New Member
Topic starter
 

Hi try to install my vantage pro

uploads fine to WU

but when i try to set up for weatherlink it makes this fail

<?php

namespace WeatherStationSDKGenericFetcher;

/**
* @package IncludesLibraries
* @author Originally written by Christian Flach < https://github.com/cmfcmf>.
* @author Modified by Pierre Lannoy < https://pierre.lannoy.fr/>.
* @since 3.0.0
* @license MIT
*/
class FileGetContentsFetcher implements FetcherInterface
{
/**
* {@inheritdoc}
*/
public function fetch($url)
{
return file_get_contents($url);
}
}

 

Returns with Bad file format

what to do

on

windows 10 X64

 
Posted : 06/10/2017 1:03 pm
Pierre Lannoy
(@pierre-lannoy)
Posts: 1338
Noble Member
 

Hello Claus! Sorry to hear that... Could you tell me what "type" of station you've choosen (when adding it in Weather Station) and what is the public url of the file (if it is public)? Thanks

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/10/2017 1:19 pm
Pierre Lannoy
(@pierre-lannoy)
Posts: 1338
Noble Member
 

Hello. Please could you tell me: - what type of station you've choosen (when adding it in Weather Station) : stickertags, realtime, clientraw, etc. - what type of source: local file, http/https, ftp/ftps - the string you've typed in source name - what are the error or warning events in Weather Station events log Thanks.

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 : 15/10/2017 11:46 pm
Pierre Lannoy
(@pierre-lannoy)
Posts: 1338
Noble Member
 

Is it the same error, or is it a new one? Could you tell me what is your php version?

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 : 15/10/2017 11:53 pm
(@claus-falk)
Posts: 2
New Member
Topic starter
 

Hi and i have get my station tags to working order http://krantrold.dk/ is my page but i shall thank many times for your help and a good site greetings from Claus

 
Posted : 16/10/2017 2:02 am
Pierre Lannoy
(@pierre-lannoy)
Posts: 1338
Noble Member
 

Hello Claus!

I did not understand your problem. No more than the solution you found. But the main thing is that it works now...

Pierre

PS : Why did you delete some of your comments?

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 : 16/10/2017 5:03 pm