After many many hours.. Here they are..
They are just addons to Saratoga.
Based on the original files from Bashewa and K3JAE, Relayweather and Webster Weather and enhancements from many others.. I dont claim to originate these, I just "moderized" them and added some flair.
first zip.
You will need to look at every file. I made a cell-top (think the merging of top, header and menubar). I also have a cell-footer.
make sure to check each page -- even header and footer for the links to your website and your website name and locationThe main page cell.php calls out cell-ajax.dashboard.php. Then there are tabs for cell-cam, cell-forecast, cell-radar, cell-advisories.
note: cell-radar 2nd image has a link to your lat and long and a name that you can put on the image -- change that 2 your locationNote if your NWS center does NOT have a synopsis, the cell-advisories page will look weird..
I cleaned up the css file a bit and even have a background. But feel free to change any of that..
GRAPHICS not included -- if you need any of them I will let u know where to get them or post them.. All of them were from the forums.
In the 2nd zip is mainly the thermometer file which is from Bashewa with mods from Relayweather
Hope you enjoy..
here is what they look like..
http://frogville.us/cell.php--
cell-template-a.zip updated..
Had extra footer.php in zip and found 2 minor css errors in handheld.css and cell-ajax-dashboard.php (forgot to validate the css..doh! )
-- 1/20/2012 updated for the UV/Solar issues found the previous day.
To set the width modify the css file look for "max-width" towards the bottom of the file and cell-top the variable $pagewidth
Fire/chandler icons use what ever icons you want just make sure they are called "CBI-Fire0.gif", "CBI-Fire16.gif", "CBI-Fire25.gif", "CBI-Fire31.gif", "CBI-Fire32.gif" or modifiy the cell-ajax-dashboard.php files to change to whatever you want.
Fire icons from
http://www.websterweatherlive.com/wxScripts.phpor
http://www.bashewa.com/downloads/bws-icons-fire.zipBackground images in "a" zip are for cell-ajax-dashboard make sure you put them in ajax-images
1-20-2012 v2 fixes
added support for iphone page width. (transparent to the user). fixed formatting issues on cell-forecast page.
Note -- if you are using the alt-dashboard js files (from webster weather), you will need to edit the ajaxWDws.js
Fine the //feelslike section and replace it with this..
// FeelsLike ... (°C)
;;;set_ajax_obs('ajaxProgress',rand+'feel','in Feelslike');
temp = clientraw[4]; // note.. temp in C
// switch (true) {
// case (temp<=16.0): feelslike = clientraw[44]; break; // use WindChill
// case (temp>=27.0): feelslike = clientraw[45]; break; // use Humidex
// default : feelslike = temp; // use temperature
// }
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
}
feelslike = Math.round(parseFloat(feelslike).convertTemp());
feelslike1 = Math.round(parseFloat(feelslike1).convertTemp());
set_ajax_obs("ajaxfeelslike",feelslike + uom.Temp);
set_ajax_obs("ajaxfeelslike1",feelslike1 + uom.Temp);
Otherwise just replace the ajaxWDwx.js with the one in the zip if you are using the saratoga.. Note the code for the saratoga ajaxWDwx.js is "slightly" different so ONLY use that code for the webster ajaxWDwx.js.This is the code for the saratoga templates:
// 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);
Added a zip of
UV/Solar Gifs also.
For a
background use
http://frogville.us/2.jpgor anything just call it 2.jpg (or change it in the handheld.css) file.
moon files are from here
http://www.bashewa.com/downloads/bws-icons-moon.zipit appears Bashewa forgot moon 28. So i just copied moon 27 to 28 for both b and w formats.
extra moon icons attached
AQ from here (the graphics are from websterweather)
http://www.websterweatherlive.com/wxScripts.phphttp://www.relayweather.com/downloads.php (air quality script)
1-22-2012 edits.
changed the advisories system so it shows the detailed advisory on the cell-advisory.php page.. (3 files are effected, cell.php, cell-advisory.php and atom-advisory2.php) the last file atom-advisory2.php is a new file.. --- check the settings
updated the cell-dashboard.php to allow non WU users to show stations max/min for current day.
Fixed the spelling error on line 1555 on cell-ajax-dashboard.php
Found a bug in the UV forecast logic in cell-ajax-dashboard.php
for the
atom-advisory images here
www.642weather.com/weather/scripts/noaa-advisory-images.zipUpdated to cell 2.1 version.. Include Beaufort wind markings and alignment with ajax-dashboard function calls.
New common.php, cell-ajax-dashboard.php, a function in ajaxWDwx.js was removed (not needed anymore -- it was added), and removal of clientraw-parser.php (not needed anymore) from zip file.
Updated to 2.11 (minor formatting and variable name usage), nothing major.
NOTE make sure the variable:
$dayornight = '%dayornight%'; // Day or night flag
is IN your testtags.txt