cloudy

Author Topic: Cellphone/Mobile Scripts (XHTML Mobile 2.3 Certified)!  (Read 3365 times)

0 Members and 3 Guests are viewing this topic.

Offline tman1991

  • Posts: 524
  • Tucson, AZ (US)
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 9.0.1
    • Countryside Manor
Re: Cellphone/Mobile Scripts (XHTML Mobile 2.3 Certified)!
« Reply #165 on: January 26, 2012, 11:10:47 PM »
sent

Offline tman1991

  • Posts: 524
  • Tucson, AZ (US)
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 9.0.1
    • Countryside Manor
Re: Cellphone/Mobile Scripts (XHTML Mobile 2.3 Certified)!
« Reply #166 on: January 30, 2012, 04:51:34 PM »
Looks like ptsdds got most of the bugs working..  Glad u have it running now!


Offline ptsdds

  • Posts: 56
  • Lodi, California
  • OS/Browser:
  • Win XP
  • Firefox 3.6.25
    • Lodi Lake Wilderness Area
Re: Cellphone/Mobile Scripts (XHTML Mobile 2.3 Certified)!
« Reply #167 on: January 30, 2012, 05:11:09 PM »
Thanks. All is well except the "feels like" part, but I can live with that.

Pat

Offline tman1991

  • Posts: 524
  • Tucson, AZ (US)
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 9.0.1
    • Countryside Manor
Re: Cellphone/Mobile Scripts (XHTML Mobile 2.3 Certified)!
« Reply #168 on: January 30, 2012, 05:19:20 PM »
Well I can help you fix that..   Let me know if you want that fixed..

There has been much confusion on that topic -- its just a matter of editing the js..  Not that big of a deal.. Others have made it into a mountain.. 

PS you put the edits for the other js in there..   The main confusion is there is TWO versions of the JS.  Saratoga and Webster Weather..


Since you are running saratoga you need the saragota "feelslike code" which is NOT which is posted on the first thread..

Your feels like section should look like this;

Code: [Select]
// FeelsLike
temp = clientraw[4]; // note.. temp in C
        if (temp <= 16.0 ) {
  feelslike = clientraw[44]; //use WindChill
  feelslike1 = clientraw[44]; //use WindChill
} else if (temp >=27.0) {
  feelslike = clientraw[45]; //use Humidex
  feelslike1 = clientraw[45]; //use Humidex
} else {
  feelslike = temp;   // use temperature
  feelslike1 = temp;   // use temperature
}
var feelslike  = Math.round(convertTemp(feelslike));
var feelslike1  = Math.round(convertTemp(feelslike1));
        set_ajax_obs("ajaxfeelslike",feelslike + uomTemp);
        set_ajax_obs("ajaxfeelslike1",feelslike1 + uomTemp);



Offline ptsdds

  • Posts: 56
  • Lodi, California
  • OS/Browser:
  • Win XP
  • Firefox 3.6.25
    • Lodi Lake Wilderness Area
Re: Cellphone/Mobile Scripts (XHTML Mobile 2.3 Certified)!
« Reply #169 on: January 30, 2012, 06:31:08 PM »
Thanks,

I'll try that when I get home.


Pat

Offline ptsdds

  • Posts: 56
  • Lodi, California
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 3.6.10
    • Lodi Lake Wilderness Area
Re: Cellphone/Mobile Scripts (XHTML Mobile 2.3 Certified)!
« Reply #170 on: January 30, 2012, 07:28:14 PM »
That did it!
Thanks.

Now I notice that the current condition animated gif is flashing.  I must have a setting somewhere that is jpg instead of gif?

Offline n7xrd

  • Posts: 841
  • Steve
  • Renton,Wa.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • MS IE 9.0
    • Renton,Wa. Weather
Re: Cellphone/Mobile Scripts (XHTML Mobile 2.3 Certified)!
« Reply #171 on: February 11, 2012, 04:14:57 PM »
is there a way to change the width of the dark background where it says forecast discussion  ??  it's a little to wide for the border.....
http://www.n7xrd.tzo.com/wdisplay/web/cell-forecast.php

Offline tman1991

  • Posts: 524
  • Tucson, AZ (US)
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 10.0.1
    • Countryside Manor
Re: Cellphone/Mobile Scripts (XHTML Mobile 2.3 Certified)!
« Reply #172 on: February 11, 2012, 05:12:51 PM »
If you edit your forecast-summary.php

look for this line. (line 139)

$charwrap = round($pagewidth/7.25);

Try making it 7 instead of 7.25.  See if that fixes it.


Offline n7xrd

  • Posts: 841
  • Steve
  • Renton,Wa.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • MS IE 9.0
    • Renton,Wa. Weather
Re: Cellphone/Mobile Scripts (XHTML Mobile 2.3 Certified)!
« Reply #173 on: February 11, 2012, 06:01:22 PM »
If you edit your forecast-summary.php

look for this line. (line 139)

$charwrap = round($pagewidth/7.25);

Try making it 7 instead of 7.25.  See if that fixes it.
Strange that didn't fix it but I went to 7.5 and that did!!! ?? :D  Thanks for the help!!

Offline tman1991

  • Posts: 524
  • Tucson, AZ (US)
  • OS/Browser:
  • Unknown
  • Safari 6.0.0.600
    • Countryside Manor
Re: Cellphone/Mobile Scripts (XHTML Mobile 2.3 Certified)!
« Reply #174 on: February 11, 2012, 06:11:07 PM »
Yeah of course,  I had it backwards.  7 makes it bigger.  Lol. 

Offline neomanu16

  • Station de vars
  • Posts: 12
  • Vars 16330 France
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 17.0.963.56
    • meteo 16
Re: Cellphone/Mobile Scripts (XHTML Mobile 2.3 Certified)!
« Reply #175 on: March 01, 2012, 12:21:54 AM »
Bonjour,

I am worried configuration, with uv, solar radiation and the firedanger

Does someone could help me configure this part I really can pas #-o

http://www.meteo16-vars.com/cell.php

regards,

Emmanuel

Offline tman1991

  • Posts: 524
  • Tucson, AZ (US)
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 10.0.2
    • Countryside Manor
Re: Cellphone/Mobile Scripts (XHTML Mobile 2.3 Certified)!
« Reply #176 on: March 01, 2012, 12:39:09 AM »
check your pm's.

Offline jbonzey

  • Posts: 106
  • Auburn, MA
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • MS IE 8.0
    • Auburn MA Weather
Re: Cellphone/Mobile Scripts (XHTML Mobile 2.3 Certified)!
« Reply #177 on: March 11, 2012, 09:57:04 PM »
Can someone take a look at my page and try and point me in the right direction.  I have everything working except the solar/uv / fire area on the main page.  For some reason the data is shifted and not reading the uv data.  I don't have a uv or solar sensor and have marked it as false.  My main page www.auburnweatherlive.com has the data so i'm sure its a formating issue etc.

Cell page is www.auburnweatherlive.com/cell.php

thanks and FANTASTIC script.
John

Offline tman1991

  • Posts: 524
  • Tucson, AZ (US)
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 10.0.2
    • Countryside Manor
Re: Cellphone/Mobile Scripts (XHTML Mobile 2.3 Certified)!
« Reply #178 on: March 11, 2012, 10:08:09 PM »
do you have the uv forecast script turned on?

$UVscript      = 'get-UV-forecast-inc.php'; // worldwide forecast script for UV Index

you need that to fetch the uv forecasts

Offline jbonzey

  • Posts: 106
  • Auburn, MA
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • MS IE 8.0
    • Auburn MA Weather
Re: Cellphone/Mobile Scripts (XHTML Mobile 2.3 Certified)!
« Reply #179 on: March 12, 2012, 01:41:26 AM »
Thanks for the quick response.  Yes $UVscript is turned on in cell-ajax-dashboard