Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Cumulus PHP Generated WAP Page

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

Post Reply
TNETWeather

Cumulus PHP Generated WAP Page

Post by TNETWeather »

Cumulus PHP Generated WAP Page

URL: http://cumulus.tnetweather.com/wap.php

Requires a WAP compatible Browser as the output is in WML format

This is a simple script that reads the current realtime.txt file and outputs the data contained within it as a simple WAP webpage. This is suitable for many Cell Phones.

Project Page and Downloads

http://cumulus.tnetweather.com/projects/wap
TNETWeather

Re: Cumulus PHP Generated WAP Page

Post by TNETWeather »

Source Code:

TNET Cumulus Project Page

General Info

Like the Avatar and Banner scripts, this is a simple PHP5 script that reads the contents of the current realtime.txt file and outputs in WML format a simple WAP page with the contents of what was found.

In order to view this, you need to have a browser enabled to read WML formatted pages (FF has an addon that can do that, I think MSIE will do it already). Most cell phones can do this as well.

Settings:

Similar to the other scripts, the Settings section is fairly straight forward. This script does include some more settings that related to headers that are output for description, keywords etc...

Code: Select all

############################################################################
# CONFIGURATION INFORMATION
############################################################################
$SITE['version']        = "1.0";
$SITE['hloc']           = "./";
$SITE['datafile']       = "realtime.txt";
$SITE['sitename']       = "Mesa AZ USA - TNET Weather";
$SITE['keywords']       = 'Mesa AZ Weather, Weather, Mesa, AZ, wap, wml, xml';
$SITE['description']    = 'Mesa AZ, AZ, Mesa, Weather, TNET Services Inc.';
$SITE['author']         = 'TNETWap Wap Generation Script - TNET Services Inc.';
$SITE['copyright']      = '(c) 2008 TNET Services, Inc.';
$SITE['timezone']       = ' MST';
$SITE['cumulusver']     = "1.8.2";
$SITE['tempunit']       = " °F";     # ° = degree symbol
$SITE['rainunit']       = "in";
$SITE['barounit']       = " mb";
$SITE['windunit']       = " mph";
You would want to change the sitename, keywords and description to match your site. If you are using different units for Wind, Rain, Temp and pressure likewise.

IF you want to have a degree symbol output, you need to use the ° format.

Also, if your version of Cumulus changes, there is a setting for that as well since that is not included in the realtime.txt output.

If you place the script in the same directory that the realtime.txt file is uploaded to, it should run right out of the box. You would want to change the settings of course.
TNETWeather

Re: Cumulus PHP Generated WAP Page

Post by TNETWeather »

The following link is to an enhanced WAP page generated from Cumulus data using the XML fields script that I've been working on.

It allow basically all the fields that are available in the Cumulus tag list to be used including additional tags for information obtained from a selected Metar.

So the resulting page can have a lot more data than the original script above which only has data from the realtime.txt file.

http://cumulus.tnetweather.com/wap2.php

Requires a WAP compatible Browser as the output is in WML format
User avatar
Paul C
Posts: 538
Joined: Thu 19 Jun 2008 7:45 am
Weather Station: Davis VP2 with solar
Operating System: Windows 10
Location: Brampton, Cumbria, UK
Contact:

Re: Cumulus PHP Generated WAP Page

Post by Paul C »

Up and running this morning. If someone could test and see if it works on their phone it would be appreciated.

http://www.bramptonweather.co.uk/cumulus/wap.php

:D
Paul C
Brampton, Cumbria, UK
117m ASL
http://www.bramptonweather.co.uk
Image
pinto
Posts: 112
Joined: Sat 11 Oct 2008 3:20 pm
Weather Station: Davis Vantage Pro 2 Plus
Operating System: Debian Buster

Re: Cumulus PHP Generated WAP Page

Post by pinto »

OK on Nokia 6600 :)

Jozef
Jozef
User avatar
Paul C
Posts: 538
Joined: Thu 19 Jun 2008 7:45 am
Weather Station: Davis VP2 with solar
Operating System: Windows 10
Location: Brampton, Cumbria, UK
Contact:

Re: Cumulus PHP Generated WAP Page

Post by Paul C »

tks :D
Paul C
Brampton, Cumbria, UK
117m ASL
http://www.bramptonweather.co.uk
Image
User avatar
meteotortosa
Posts: 323
Joined: Thu 04 Dec 2008 12:15 am
Weather Station: Davis Vantage Pro2 Plus
Operating System: Windows XP SP3
Location: Tortosa-Baix Ebre- Catalonia
Contact:

Re: Cumulus PHP Generated WAP Page

Post by meteotortosa »

This is my wap webpage

http://www.meteotortosa.cat/liveview/wap.php

Only two things: I tried to include rain rate, but I can't :oops: and I would like the same webpage on html...my Nokia N80 dont have wap compatible browser :cry:

Thanks,

Lluís
Weather in Tortosa (NE Spain), updated every 15'
Image Image
Post Reply