Author Topic: advforecast2-json.php beta test...  (Read 14966 times)

0 Members and 1 Guest are viewing this topic.

Offline Maumelle Weather

  • Forecaster
  • *****
  • Posts: 1827
    • Maumelle Weather
Re: advforecast2-json.php beta test...
« Reply #150 on: March 04, 2017, 05:54:40 PM »
Hi Ken,

Thanks for the help. I copied the entire images directory into the icon-templates folder, cleared the cache, and tried again. Still no image.
GR2AE, GR3, Cumulus

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9298
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: advforecast2-json.php beta test...
« Reply #151 on: March 04, 2017, 06:12:29 PM »
Umm.. no, that wasn't quite right.  You only needed the ONE image missing in the ./forecast/icon-templates/ directory

The icon-templates/*.png are all 134x134 PNG images used with DualImage.php to dynamically create a dual-image icon.  I hope you haven't replaced the needed ones.

Use the one image file attached and place it in your ./forecast/icon-templates directory.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline Maumelle Weather

  • Forecaster
  • *****
  • Posts: 1827
    • Maumelle Weather
Re: advforecast2-json.php beta test...
« Reply #152 on: March 04, 2017, 08:10:47 PM »
Hi Ken,

Yes, I did copy all of them, but I deleted everything and re-uploaded  the icon template directory I had here. I also changed the $imgBaseDir to the relative setting, cleared the cache and still no go. I also re-checked the Settings.php, advforecast2.php, advforecast-json.php for the relative setting. All match.  This one is a head scratcher, at least for me.

John
GR2AE, GR3, Cumulus

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9298
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: advforecast2-json.php beta test...
« Reply #153 on: March 04, 2017, 09:09:56 PM »
It looks like it's working now .. the problem with DualImage.php may have been that $imgBaseDir wasn't set to './forecast/images/', but to an URL instead?

Looks like it's all sorted out now.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline Maumelle Weather

  • Forecaster
  • *****
  • Posts: 1827
    • Maumelle Weather
Re: advforecast2-json.php beta test...
« Reply #154 on: March 04, 2017, 09:12:42 PM »
Thanks Ken for the assist.
GR2AE, GR3, Cumulus

Offline jgillett

  • Forecaster
  • *****
  • Posts: 1187
  • Boltek, Win7 Pro, ToA
    • TiggrWeather Phoenix
Re: advforecast2-json.php beta test...
« Reply #155 on: March 05, 2017, 01:37:39 AM »
Ken, Wind Advisory and High Wind Warning both working nicely in hover and click modes. Just FYI...
John
W7JKG

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: advforecast2-json.php beta test...
« Reply #156 on: March 05, 2017, 07:46:10 PM »
Working nicely here, Ken.  I've modified 'advforecast-json.php' to eliminate the empty right-hand column when the day-night forecasts aren't staggered, adjusted for 88x88px icons, tried to accommodate 'Widewidth', and centered the output.  I think it's working, but it has only been up on my site for eleven hours now.  I was pleased when the transition to staggered icons worked as planned this evening.

The code still needs to be cleaned up a bit, but it appears to be working.
« Last Edit: March 05, 2017, 07:47:56 PM by gwwilk »
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6377
    • Valentine Nebraska's Real-Time Weather
Re: advforecast2-json.php beta test...
« Reply #157 on: March 05, 2017, 08:16:19 PM »
Hover mode works for warning but noticed forecast icon only shows rain even though 59 mph winds are also in forecast.
Not sure if there every was a icon for wind driven rain, I thought there was.
Randy

Offline Bunty

  • Forecaster
  • *****
  • Posts: 2432
  • Stillwater, home of Oklahoma State University
    • Welcome to Stillwater Weather
Re: advforecast2-json.php beta test...
« Reply #158 on: March 05, 2017, 09:29:47 PM »
I just get an n/a for one of the images.  http://stillwaterweather.com/newpage1.php

Also the 2nd home page using modified AltDashboard 6.95 at http://stillwaterweather.com/2ndhome.php

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9298
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: advforecast2-json.php beta test...
« Reply #159 on: March 05, 2017, 11:11:03 PM »
Bunty, doing a view-source of the page shows
Quote
<!-- icon1='tsra_hi' not found - na used instead -->
<!-- missing icon './forecast/images/na30.jpg' .. using './forecast/images/na.jpg' instead -->
<!-- icon1='tsra_hi' not found - na used instead -->
You're missing the hi_ntsra30.jpg image -- it's one of the images from the 7-June-2015 release of Saratoga icons2
http://saratoga-weather.org/saratoga-icons2.zip
« Last Edit: March 05, 2017, 11:54:22 PM by saratogaWX »
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9298
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: advforecast2-json.php beta test...
« Reply #160 on: March 05, 2017, 11:24:15 PM »
Hover mode works for warning but noticed forecast icon only shows rain even though 59 mph winds are also in forecast.
Not sure if there every was a icon for wind driven rain, I thought there was.
There's not an icon from the NWS for wind+rain, only wind+(skc/few/bkn/sct/ovc) but not rain per se.
The icon is solely determined by the NWS.. I just translate it to use the local icon instead.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline DaculaWeather

  • WxElement panel
  • Forecaster
  • *****
  • Posts: 3206
    • North Georgia Weather
Re: advforecast2-json.php beta test...
« Reply #161 on: March 06, 2017, 08:34:03 AM »
ken, I'm getting a "na" error for Slight chance T-Storms
 [ You are not allowed to view attachments ]

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9298
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: advforecast2-json.php beta test...
« Reply #162 on: March 06, 2017, 09:15:31 AM »
Your site is showing
Quote
<!-- icon1='tsra_hi' not found - na used instead -->
<!-- missing icon './forecast/images/na30.jpg' .. using './forecast/images/na.jpg' instead -->
<!-- icon1='tsra_sct' not found - na used instead -->
<!-- dual image 'DualImage.php?i=na&ip=30&j=nshra&jp=30' used-->

Try the updated DualImage.php attached and see if that helps.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline DaculaWeather

  • WxElement panel
  • Forecaster
  • *****
  • Posts: 3206
    • North Georgia Weather
Re: advforecast2-json.php beta test...
« Reply #163 on: March 06, 2017, 09:42:56 AM »
Fixed it Ken! Thanks!