Author Topic: Alt dashboard wind rose problem  (Read 2224 times)

0 Members and 1 Guest are viewing this topic.

Offline suddenincline

  • Member
  • *
  • Posts: 47
    • Inclinemedialive.com
Alt dashboard wind rose problem
« on: February 17, 2012, 07:04:27 PM »
Can anyone decribe to me why my wr is not updating on its own with the rest of the information but it did when I refresh?

www.inclinemedislive.com

Thanks
Jon

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Alt dashboard wind rose problem
« Reply #1 on: February 17, 2012, 07:34:24 PM »
Hi Jon,

The URL you cited www.inclinemedislive.com isn't loading (no DNS record).  Is there a slightly different URL instead?

Is it www.inclinemedialive.com ?  If so, it's likely you need to change ajaxWDwx.js
Code: [Select]
var wrImg =
   {src   : imgDir+"wind/4/wr-#LANG##DIR#.gif"  // where #DIR# = wind dir (e.g. NNW), #LANG# = wrImg.lang
to
Code: [Select]
var wrImg =
   {src   : imgDir+"wind/4/wr-#LANG##DIR#.png"  // where #DIR# = wind dir (e.g. NNW), #LANG# = wrImg.lang
since your PHP dashboard is using the .png images.

Best regards,
Ken
« Last Edit: February 17, 2012, 07:39:56 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 suddenincline

  • Member
  • *
  • Posts: 47
    • Inclinemedialive.com
Re: Alt dashboard wind rose problem
« Reply #2 on: February 17, 2012, 08:56:18 PM »
Sorry Ken,
   Yeah it is www.inclinemedialive.com I was posting via tapatalk on my phone and spellcorrect messed it up...I will try that and see if it works I'm sure it will thank you!

Jonathan

Offline suddenincline

  • Member
  • *
  • Posts: 47
    • Inclinemedialive.com
Re: Re: Alt dashboard wind rose problem
« Reply #3 on: February 18, 2012, 08:27:39 AM »
Ken,
I changed what you  recommended for some reason it still does not seem to be working could I have missed something else?

Offline BurnsvilleWeather

  • Burnsville, MN USA
  • Forecaster
  • *****
  • Posts: 863
  • Retired from Weather!
Re: Alt dashboard wind rose problem
« Reply #4 on: February 18, 2012, 11:07:31 AM »
Jonathan

You have the right image files showing now but the code to update it seems to not be working.  You didn't modify anything else in the code did you?  The only thing you should have needed to change was this section in ajaxWDwx-settings.js

Code: [Select]
wrImg.src     = imgDir+"wr-{LANG}{DIR}.jpg";
wrImg.width   = 74;
wrImg.height  = 74;
//wrImg.hspace  = 0;
//wrImg.vspace  = 0;
//wrImg.border  = 0;
//wrImg.style   = "";
//wrImg.align   = "";
//wrImg.lang    = "";     // {LANG} eg. 'nl' i.e. initial icon set
//wrImg.calm    = "calm"; // {DIR}
//wrImg.xlate   = true;   // translate wind direction for icon names (multilingual system)
wrImg.useTag  = "ajaxwindiconwr";

Change the .jpg to .png

Scott
www.BurnsvilleWeatherLIVE.com (Formally Webster Weather LIVE)
Home of the Alternative Dashboard and Mobile Dashboard Scripts. Weather Display Scripts and Graphics


Davis VP2 with, UV, Solar, Leaf, Web Cam.

Offline suddenincline

  • Member
  • *
  • Posts: 47
    • Inclinemedialive.com
Re: Re: Alt dashboard wind rose problem
« Reply #5 on: February 18, 2012, 11:38:02 AM »
The alaxWDwx.js is where I made those changes I don't have a settings.js

Jonathan

Offline suddenincline

  • Member
  • *
  • Posts: 47
    • Inclinemedialive.com
Re: Re: Alt dashboard wind rose problem
« Reply #6 on: February 18, 2012, 01:57:09 PM »
Scott,
Do I need a ajaxWDwx-settings.js for this to work?

Offline BurnsvilleWeather

  • Burnsville, MN USA
  • Forecaster
  • *****
  • Posts: 863
  • Retired from Weather!
Re: Re: Alt dashboard wind rose problem
« Reply #7 on: February 18, 2012, 10:08:17 PM »
Scott,
Do I need a ajaxWDwx-settings.js for this to work?

No, you don't need it but it saves you from having to make changes over and over again as ajaxWDwx.js is updated in the future!  If it's still not updating, you may want to check the changes you made with the original and make sure you didn't delete or change anything else by accident, it appears to be working just that one tag is not being updated.

Scott
« Last Edit: February 18, 2012, 10:09:51 PM by WebsterWeather »
www.BurnsvilleWeatherLIVE.com (Formally Webster Weather LIVE)
Home of the Alternative Dashboard and Mobile Dashboard Scripts. Weather Display Scripts and Graphics


Davis VP2 with, UV, Solar, Leaf, Web Cam.

Offline suddenincline

  • Member
  • *
  • Posts: 47
    • Inclinemedialive.com
Re: Alt dashboard wind rose problem
« Reply #8 on: February 19, 2012, 09:24:38 AM »
would this poss be the problem

  ;;;set_ajax_obs('ajaxProgress',rand+'rose','in WindRose');
      if (gust > 0.0 || wind > 0.0 || wrImg.calm=="") {
         windicon = '<img src="' + imgDir + windDir + '.gif' // small arrow direction
            + '" alt="'   + langWindFrom + valLang
            + '" title="' + langWindFrom + valLang
            + '" width="14" height="14" />';
         set_ajax_obs("ajaxwindicon"  , valLang, windicon);
         set_ajax_obs("gizmowindicon" , valLang, windicon);
         set_ajax_obs("ajaxwinddir"   , valLang);
         set_ajax_obs("ajaxwinddir2"   , valLang);
         set_ajax_obs("gizmowinddir"  , valLang);
         set_ajax_obs("ajaxwinddeg"   , windDeg + uom.Deg);
         set_ajax_obs("gizmowinddeg"  , windDeg + uom.Deg);


maybe change the gif to png ?


Offline BurnsvilleWeather

  • Burnsville, MN USA
  • Forecaster
  • *****
  • Posts: 863
  • Retired from Weather!
Re: Alt dashboard wind rose problem
« Reply #9 on: February 19, 2012, 09:35:39 AM »
That would display a red "X" if it were wrong, something is stopping it from updating all together.  Email me a zipped copy of your ajaxWDwx.js, there is an email link under my name in this post.

would this poss be the problem

  ;;;set_ajax_obs('ajaxProgress',rand+'rose','in WindRose');
      if (gust > 0.0 || wind > 0.0 || wrImg.calm=="") {
         windicon = '<img src="' + imgDir + windDir + '.gif' // small arrow direction
            + '" alt="'   + langWindFrom + valLang
            + '" title="' + langWindFrom + valLang
            + '" width="14" height="14" />';
         set_ajax_obs("ajaxwindicon"  , valLang, windicon);
         set_ajax_obs("gizmowindicon" , valLang, windicon);
         set_ajax_obs("ajaxwinddir"   , valLang);
         set_ajax_obs("ajaxwinddir2"   , valLang);
         set_ajax_obs("gizmowinddir"  , valLang);
         set_ajax_obs("ajaxwinddeg"   , windDeg + uom.Deg);
         set_ajax_obs("gizmowinddeg"  , windDeg + uom.Deg);


maybe change the gif to png ?


www.BurnsvilleWeatherLIVE.com (Formally Webster Weather LIVE)
Home of the Alternative Dashboard and Mobile Dashboard Scripts. Weather Display Scripts and Graphics


Davis VP2 with, UV, Solar, Leaf, Web Cam.

Offline suddenincline

  • Member
  • *
  • Posts: 47
    • Inclinemedialive.com
Re: Alt dashboard wind rose problem
« Reply #10 on: February 19, 2012, 11:58:54 AM »
Scott,

I have it zipped up and ready to go but I don't see a email address for you?

I went to your site and did not find one under contact us? could you send me your email I would very much appriciate having you review my code and thank you all for the help you are giving....

Jonathan