cloudy

Author Topic: Cellphone / Mobile / iPhone Weather Script  (Read 22715 times)

0 Members and 1 Guest are viewing this topic.

Offline Meerkat

  • Rainer
  • Posts: 695
  • WD v10.37Q b31, Win 7, HP 2 Core 4GB, 72hr UPS
  • Pretoria, South Africa
    • Bashewa
Cellphone / Mobile / iPhone Weather Script
« on: January 05, 2010, 03:32:59 AM »
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: Cellphone Weather

ADDITIONAL SCRIPTS:
Additional scripts you might be interested in:
Cloud Base Graphic
Gradient Thermometer
Alternate ajaxWDwx.js

CREDITS:
Please put the following snippet into your "wxabout.php" page:
Cellphone script courtesy of <a href="http://www.bashewa.com" title="Bronberg">Bronberg Weather</a>

DOWNLOAD: AVAILABLE SOON

Here's the source for it so long.
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

Here are the graphics required for the cell pages:
http://www.bashewa.com/downloads/bws-icons-current.zip ..... current conditions icons.
http://www.bashewa.com/downloads/bws-icons-wind.zip ........ wind rose icons.
http://www.bashewa.com/downloads/bws-icons-moon.zip ........ moon icons x 28
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 .... WU forecast icons.
« Last Edit: January 25, 2011, 07:15:59 AM by Meerkat »
Cheers,
Rainer

Meerkat's Script Collection
Script download links always available on the first page of my threads

Online ALITTLEweird1

  • Mark
  • Posts: 3,984
  • Snoqualmie,WA
    • Snoqualmie Weather
Re: Cellphone / Mobile / iPhone Weather Script
« Reply #1 on: January 05, 2010, 04:03:27 AM »
Thats nice. Would it be possible to add weather warnings/advisories to it?
"Nature can do without man, but man cannot do without nature."

Davis VP2 + 1-Wire Solar + 1-wire Lightning + 1-Wire UV + Logitech Webcam

Offline Meerkat

  • Rainer
  • Posts: 695
  • WD v10.37Q b31, Win 7, HP 2 Core 4GB, 72hr UPS
  • Pretoria, South Africa
    • Bashewa
Re: Cellphone / Mobile / iPhone Weather Script
« Reply #2 on: January 05, 2010, 04:08:18 AM »
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.
Cheers,
Rainer

Meerkat's Script Collection
Script download links always available on the first page of my threads

Offline Meerkat

  • Rainer
  • Posts: 695
  • WD v10.37Q b31, Win 7, HP 2 Core 4GB, 72hr UPS
  • Pretoria, South Africa
    • Bashewa
Re: Cellphone / Mobile / iPhone Weather Script
« Reply #3 on: January 05, 2010, 04:22:34 AM »
« Last Edit: January 05, 2010, 04:54:07 AM by Meerkat »
Cheers,
Rainer

Meerkat's Script Collection
Script download links always available on the first page of my threads

Offline Meerkat

  • Rainer
  • Posts: 695
  • WD v10.37Q b31, Win 7, HP 2 Core 4GB, 72hr UPS
  • Pretoria, South Africa
    • Bashewa
Re: Cellphone / Mobile / iPhone Weather Script
« Reply #4 on: January 05, 2010, 04:50:13 AM »
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
« Last Edit: January 05, 2010, 04:54:55 AM by Meerkat »
Cheers,
Rainer

Meerkat's Script Collection
Script download links always available on the first page of my threads

Offline Meerkat

  • Rainer
  • Posts: 695
  • WD v10.37Q b31, Win 7, HP 2 Core 4GB, 72hr UPS
  • Pretoria, South Africa
    • Bashewa
Re: Cellphone / Mobile / iPhone Weather Script
« Reply #5 on: January 05, 2010, 05:02:37 AM »
You'll also need the handheld Style Sheet:
http://www.bashewa.com/handheld.css
Cheers,
Rainer

Meerkat's Script Collection
Script download links always available on the first page of my threads

Online TNETWeather

  • Kevin Reed (KrelvinAZ)
  • Global Moderator
  • Posts: 5,869
  • Gremlins are at work...
  • Mesa, AZ
    • TNET Weather Station - Mesa AZ
Re: Cellphone / Mobile / iPhone Weather Script
« Reply #6 on: January 05, 2010, 05:05:53 AM »
Very well done...

All you need is Time, Aptitude and Desire ... and you can build just about anything...

Offline arthurhh

  • Tokoroa Weather Live
  • Posts: 369
  • IT Fixer
  • Tokoroa South Waikato New Zealand
    • Tokoroa Weather Live
Re: Cellphone / Mobile / iPhone Weather Script
« Reply #7 on: January 05, 2010, 10:12:34 AM »
Looks good will have a play with that after I finish a few of the current projects I have on.

Online ALITTLEweird1

  • Mark
  • Posts: 3,984
  • Snoqualmie,WA
    • Snoqualmie Weather
Re: Cellphone / Mobile / iPhone Weather Script
« Reply #8 on: January 05, 2010, 11:46:22 PM »
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);
"Nature can do without man, but man cannot do without nature."

Davis VP2 + 1-Wire Solar + 1-wire Lightning + 1-Wire UV + Logitech Webcam

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 22,157
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
    • http://www.realweatherstation.com
Re: Cellphone / Mobile / iPhone Weather Script
« Reply #9 on: January 05, 2010, 11:52:51 PM »
Try just commenting it out because $monthname = ($monthname); does nothing.

Offline Meerkat

  • Rainer
  • Posts: 695
  • WD v10.37Q b31, Win 7, HP 2 Core 4GB, 72hr UPS
  • Pretoria, South Africa
    • Bashewa
Re: Cellphone / Mobile / iPhone Weather Script
« Reply #10 on: January 05, 2010, 11:58:57 PM »
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.
Cheers,
Rainer

Meerkat's Script Collection
Script download links always available on the first page of my threads

Online ALITTLEweird1

  • Mark
  • Posts: 3,984
  • Snoqualmie,WA
    • Snoqualmie Weather
Re: Cellphone / Mobile / iPhone Weather Script
« Reply #11 on: January 06, 2010, 12:07:31 AM »
add that to the commom or the cell-ajax file?
"Nature can do without man, but man cannot do without nature."

Davis VP2 + 1-Wire Solar + 1-wire Lightning + 1-Wire UV + Logitech Webcam

Offline Meerkat

  • Rainer
  • Posts: 695
  • WD v10.37Q b31, Win 7, HP 2 Core 4GB, 72hr UPS
  • Pretoria, South Africa
    • Bashewa
Re: Cellphone / Mobile / iPhone Weather Script
« Reply #12 on: January 06, 2010, 12:14:12 AM »
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
Cheers,
Rainer

Meerkat's Script Collection
Script download links always available on the first page of my threads

Online ALITTLEweird1

  • Mark
  • Posts: 3,984
  • Snoqualmie,WA
    • Snoqualmie Weather
Re: Cellphone / Mobile / iPhone Weather Script
« Reply #13 on: January 06, 2010, 12:17:17 AM »
oh..ok... thank you.
"Nature can do without man, but man cannot do without nature."

Davis VP2 + 1-Wire Solar + 1-wire Lightning + 1-Wire UV + Logitech Webcam

Offline Meerkat

  • Rainer
  • Posts: 695
  • WD v10.37Q b31, Win 7, HP 2 Core 4GB, 72hr UPS
  • Pretoria, South Africa
    • Bashewa
Re: Cellphone / Mobile / iPhone Weather Script
« Reply #14 on: January 06, 2010, 12:23:08 AM »
Here are the graphics required for the cell pages:

http://www.bashewa.com/downloads/bws-icons-current.zip ..... current conditions icons.
http://www.bashewa.com/downloads/bws-icons-wind.zip ........ wind rose icons.
http://www.bashewa.com/downloads/bws-icons-moon.zip ........ moon icons x 28
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 .... WU forecast icons.
« Last Edit: January 10, 2010, 01:48:40 AM by Meerkat »
Cheers,
Rainer

Meerkat's Script Collection
Script download links always available on the first page of my threads