Cellphone / Mobile / iPhone Weather Script

Mobile / Cellphone / iPhone Browser Script

SAMPLES:
Here’s a screenshot in Opera Mini:

DESCRIPTION:
Is anyone interested in a script for cellphones?
You can have a look here online: [color=blue]Cellphone Weather[/color]

ADDITIONAL SCRIPTS:
Additional scripts you might be interested in:
[color=blue]Cloud Base Graphic[/color]
[color=blue]Gradient Thermometer[/color]
[color=blue]Alternate ajaxWDwx.js[/color]

CREDITS:
Please put the following snippet into your “wxabout.php” page:
Cellphone script courtesy of Bronberg Weather

DOWNLOAD: AVAILABLE SOON

Here’s the source for it so long.
You’ll also need a clientraw.txt parser with it.

  1. [color=blue]http://www.bashewa.com/cell_ajax-dashboard.php?sce=view[/color]
  2. [color=blue]http://www.bashewa.com/clientraw-parser.php?sce=view[/color]

Sample page here: [color=blue]http://www.bashewa.com/cell.html?skip=1[/color]

Here’s the source for the forecast page.
You’ll need the updated WU Forecast script for it.

  1. [color=blue]http://www.bashewa.com/cell-WU-forecast.php?sce=view[/color]
  2. [color=blue]http://www.bashewa.com/WU-forecast.php?sce=view[/color]

Sample page here: [color=blue]http://www.bashewa.com/cell-forecast.php?skip=1[/color]

You’ll also need the handheld Style Sheet: [color=blue]http://www.bashewa.com/handheld.css[/color]

Here are the graphics required for the cell pages:[[color=blue]http://www.bashewa.com/downloads/bws-icons-current.zip[/color]](http://www.bashewa.com/downloads/bws-icons-current.zip) ..... current conditions icons. [[color=blue]http://www.bashewa.com/downloads/bws-icons-wind.zip[/color]](http://www.bashewa.com/downloads/bws-icons-wind.zip) ........ wind rose icons. [[color=blue]http://www.bashewa.com/downloads/bws-icons-moon.zip[/color]](http://www.bashewa.com/downloads/bws-icons-moon.zip) ........ moon icons x 28 [[color=blue]http://www.bashewa.com/downloads/bws-icons-moonphase.zip[/color]](http://www.bashewa.com/downloads/bws-icons-moonphase.zip) ... moon phase, rising, falling, steady and sun/moon rise & set icons. [[color=blue]http://www.bashewa.com/downloads/bws-icons-forecast.zip[/color]](http://www.bashewa.com/downloads/bws-icons-forecast.zip) .... WU forecast icons.

Thats nice. Would it be possible to add weather warnings/advisories to it?

I’m sure you could.
It’s a stripped down version of the ajax-dashboard.php script.

Here’s the source for it.
You’ll also need a clientraw.txt parser with it.

  1. http://www.bashewa.com/cell_ajax-dashboard.php?sce=view
  2. http://www.bashewa.com/clientraw-parser.php?sce=view

Sample page here: http://www.bashewa.com/cell.html?skip=1

Here’s the source for the forecast page.
You’ll need the updated WU Forecast script for it.

  1. http://www.bashewa.com/cell-WU-forecast.php?sce=view
  2. http://www.bashewa.com/WU-forecast.php?sce=view

Sample page here: http://www.bashewa.com/cell-forecast.php?skip=1

You’ll also need the handheld Style Sheet:
http://www.bashewa.com/handheld.css

Very well done…

Looks good will have a play with that after I finish a few of the current projects I have on.

Im getting an error with this line…

$monthname = langtransstr($monthname);

What is langtransstr? is that just to translate lanuages? if so, Can i just make that line to look like this?

$monthname = ($monthname);

Try just commenting it out because $monthname = ($monthname); does nothing.

Yes its for language translation which is done by common.php
Just add these two functions to the bottom of the page:

if (!function_exists(“langtransstr”)) {
function langtransstr($word) {
return $word;
}
}
if (!function_exists(“langtrans”)) {
function langtrans($word) {
echo $word;
}
}

Make more functions of the same if you run into more problems.

add that to the commom or the cell-ajax file?

Add the functions to the files where you get a problem e.g. cell_ajax-dashboard.php

oh…ok… thank you.

Here are the graphics required for the cell pages:
[http://www.bashewa.com/downloads/bws-icons-current.zip](http://www.bashewa.com/downloads/bws-icons-current.zip) ..... current conditions icons. [http://www.bashewa.com/downloads/bws-icons-wind.zip](http://www.bashewa.com/downloads/bws-icons-wind.zip) ........ wind rose icons. [http://www.bashewa.com/downloads/bws-icons-moon.zip](http://www.bashewa.com/downloads/bws-icons-moon.zip) ........ moon icons x 28 [http://www.bashewa.com/downloads/bws-icons-moonphase.zip](http://www.bashewa.com/downloads/bws-icons-moonphase.zip) ... moon phase, rising, falling, steady and sun/moon rise & set icons. [http://www.bashewa.com/downloads/bws-icons-forecast.zip](http://www.bashewa.com/downloads/bws-icons-forecast.zip) .... WU forecast icons.

I added that to the ajax script and it didnt work. Still getting that same error…

line 241… $monthname = langtransstr($monthname);

Here’s the code for the Gradient Thermometer:
Latest version available here:
http://discourse.weather-watch.com

Sample:

Just replace those function without the “function_exists”:


function langtransstr($word) { return $word; }

function langtrans($word) {
echo $word;
}


That did it… thanks… now to get everything working on it.

I’ve added the following lines to the cell_ajax-dashboard.php script in case common.php does not exist:


if ((include_once "common.php") == 0) { function langtransstr($word) { return $word; } function langtrans($word) { echo $word; } }
Get it here: [http://www.bashewa.com/cell_ajax-dashboard.php?sce=view](http://www.bashewa.com/cell_ajax-dashboard.php?sce=view)