Page 1 of 1

Interactive Sticker - Always cloudy

Posted: Tue Oct 17, 2017 12:22 pm
by MonyMony
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?

Re: Interactive Sticker - Always cloudy

Posted: Tue Oct 17, 2017 12:36 pm
by Jachym
The METAR specified in Main Setup. Could also be a permission issue if it is unable to delete the cache file in pages/Metar

Re: Interactive Sticker - Always cloudy

Posted: Tue Oct 17, 2017 3:10 pm
by MonyMony
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 8600 times
Are these the files being looked at from pages/metar/buffer?

Re: Interactive Sticker - Always cloudy

Posted: Tue Oct 17, 2017 3:57 pm
by Jachym
yes

Re: Interactive Sticker - Always cloudy

Posted: Wed Oct 18, 2017 3:09 am
by MonyMony
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.

Re: Interactive Sticker - Always cloudy

Posted: Wed Oct 18, 2017 8:41 am
by Jachym
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.

Re: Interactive Sticker - Always cloudy

Posted: Wed Oct 18, 2017 11:42 am
by MonyMony
I agree and will keep looking.

Re: Interactive Sticker - Always cloudy

Posted: Mon Oct 23, 2017 4:14 pm
by MonyMony
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 8517 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.

Re: Interactive Sticker - Always cloudy

Posted: Mon Oct 23, 2017 5:06 pm
by Jachym
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.