Interactive Sticker - Always cloudy
- MonyMony
- Forecaster

- Posts: 192
- Joined: Sun Aug 20, 2017 12:54 pm
- Location: Elkton, Maryland, US
- Station model: Davis Pro 2
- Software: WeatherCat/Meteobridge
- Contact:
Interactive Sticker - Always cloudy
I am noticing that my interactive sticker background is always showing as if it cloudy. Didn't think anything of it until started setting up second site and noticed the other site sticker background was changing. I suspect this is probably related to how local METAR conditions are being pulled. My question is what setting is the interactive sticker using to determine the background so I can troubleshoot more?
- Jachym
- Site Admin

- Posts: 1686
- Joined: Fri Aug 18, 2017 10:12 pm
- Location: Brno, Czech Republic
- Station model: WH1080
- Software: Meteobridge
- Contact:
Re: Interactive Sticker - Always cloudy
The METAR specified in Main Setup. Could also be a permission issue if it is unable to delete the cache file in pages/Metar
- MonyMony
- Forecaster

- Posts: 192
- Joined: Sun Aug 20, 2017 12:54 pm
- Location: Elkton, Maryland, US
- Station model: Davis Pro 2
- Software: WeatherCat/Meteobridge
- Contact:
Re: Interactive Sticker - Always cloudy
Ok, tried flushing all cache files and also changed my METAR and no change. My header and Current Conditions block works normally. I think you are right though there might be permission issue.
Are these the files being looked at from pages/metar/buffer?
Are these the files being looked at from pages/metar/buffer?
- MonyMony
- Forecaster

- Posts: 192
- Joined: Sun Aug 20, 2017 12:54 pm
- Location: Elkton, Maryland, US
- Station model: Davis Pro 2
- Software: WeatherCat/Meteobridge
- Contact:
Re: Interactive Sticker - Always cloudy
So far no success in figuring this out. I can see I am getting the file KAPG.TXT to update to the pages/Metar/buffer/Metar but still my sticker is showing cloudy. What is strange is my second site, which is basically a copy of my production site in a separate subdirectory, the sticker is working normally.
Working - http://www.cecilweather.com/weather/mon ... ualUnits=1
Not working - http://www.cecilweather.com/weather/cec ... ualUnits=1

Certainly not an urgent issue, but definitely baffling.
Working - http://www.cecilweather.com/weather/mon ... ualUnits=1
Not working - http://www.cecilweather.com/weather/cec ... ualUnits=1
Certainly not an urgent issue, but definitely baffling.
- Jachym
- Site Admin

- Posts: 1686
- Joined: Fri Aug 18, 2017 10:12 pm
- Location: Brno, Czech Republic
- Station model: WH1080
- Software: Meteobridge
- Contact:
Re: Interactive Sticker - Always cloudy
If you are using the exact same code for both then it must be caching issue on one of the servers, I really cannot think of anything else.
- MonyMony
- Forecaster

- Posts: 192
- Joined: Sun Aug 20, 2017 12:54 pm
- Location: Elkton, Maryland, US
- Station model: Davis Pro 2
- Software: WeatherCat/Meteobridge
- Contact:
Re: Interactive Sticker - Always cloudy
I have traced this to random Solar Data somehow getting reported by my weatherstation even though I do not have this type of sensor. In the stickerInteractive.php code, the following section seems to be firing for me:
if($S>800){
$items = array(23);
$bgNumber = $items[array_rand($items)];
$bgURL = 'bgs/'.$bgNumber.'.jpg';
$stickerColor = 'black';
$shadowColor = 'white';
When I look at the API I see this: I am not sure where the Solar Radiation information is coming from as I did track what WeatherCat is sending to the API and no Solar information is being sent. I do see Solar in my meteoTemplateLive.txt file so this might be the same issue I reported with the UV information (http://meteotemplate.com/forum/viewtopic.php?f=56&t=300) showing in the Current Conditions block. If I delete the meteoTemplateLive.txt my sticker starts showing the intereactive background correctly. Again not sure how this initially got reported by WeatherCat (crash, initial startup data, ???) but the API is holding onto the old info. The proposed fix in v17 should resolve this issue.
if($S>800){
$items = array(23);
$bgNumber = $items[array_rand($items)];
$bgURL = 'bgs/'.$bgNumber.'.jpg';
$stickerColor = 'black';
$shadowColor = 'white';
When I look at the API I see this: I am not sure where the Solar Radiation information is coming from as I did track what WeatherCat is sending to the API and no Solar information is being sent. I do see Solar in my meteoTemplateLive.txt file so this might be the same issue I reported with the UV information (http://meteotemplate.com/forum/viewtopic.php?f=56&t=300) showing in the Current Conditions block. If I delete the meteoTemplateLive.txt my sticker starts showing the intereactive background correctly. Again not sure how this initially got reported by WeatherCat (crash, initial startup data, ???) but the API is holding onto the old info. The proposed fix in v17 should resolve this issue.
- Jachym
- Site Admin

- Posts: 1686
- Joined: Fri Aug 18, 2017 10:12 pm
- Location: Brno, Czech Republic
- Station model: WH1080
- Software: Meteobridge
- Contact:
Re: Interactive Sticker - Always cloudy
Hi,
yes could be. This is a "bug" - or rather something I did not anticipate - situation where one sensor is temporarily available. MT then thinks it is available forever once it sees it at least once. I will address this in v17.
yes could be. This is a "bug" - or rather something I did not anticipate - situation where one sensor is temporarily available. MT then thinks it is available forever once it sees it at least once. I will address this in v17.