Interactive Sticker - Always cloudy

Post Reply
User avatar
MonyMony
Forecaster
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

Post by MonyMony » Tue Oct 17, 2017 12:22 pm

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?
Image

User avatar
Jachym
Site Admin
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

Post by Jachym » Tue Oct 17, 2017 12:36 pm

The METAR specified in Main Setup. Could also be a permission issue if it is unable to delete the cache file in pages/Metar

User avatar
MonyMony
Forecaster
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

Post by MonyMony » Tue Oct 17, 2017 3:10 pm

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.
Screen Shot 2017-10-17 at 11.07.32 AM.png
Screen Shot 2017-10-17 at 11.07.32 AM.png (40.92 KiB) Viewed 8599 times
Are these the files being looked at from pages/metar/buffer?
Image

User avatar
Jachym
Site Admin
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

Post by Jachym » Tue Oct 17, 2017 3:57 pm

yes

User avatar
MonyMony
Forecaster
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

Post by MonyMony » Wed Oct 18, 2017 3:09 am

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 Image

Not working - http://www.cecilweather.com/weather/cec ... ualUnits=1
Image

Certainly not an urgent issue, but definitely baffling.
Image

User avatar
Jachym
Site Admin
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

Post by Jachym » Wed Oct 18, 2017 8:41 am

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.

User avatar
MonyMony
Forecaster
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

Post by MonyMony » Wed Oct 18, 2017 11:42 am

I agree and will keep looking.
Image

User avatar
MonyMony
Forecaster
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

Post by MonyMony » Mon Oct 23, 2017 4:14 pm

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:
Screen Shot 2017-10-23 at 12.05.13 PM.png
Screen Shot 2017-10-23 at 12.05.13 PM.png (139.77 KiB) Viewed 8516 times
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.
Image

User avatar
Jachym
Site Admin
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

Post by Jachym » Mon Oct 23, 2017 5:06 pm

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.

Post Reply