Much appreciate the help. I changed this in the script: include_once(cell_ajax-dashboard.php)
to include_once(cell-ajax-dashboard.php) The downloaded file had a dash not underscore like in the script for
cell-ajax-dashboard. The page now shows up.
So now, current conditions images dont show. In the script I have:
$imagesDir = './ajax-images/'; // directory for ajax-images with trailing slash
But when the images wont show up. If you look at the source for the image, it’s looking for it
in the root directory, but they are in ajax-images.
My new Droid X will be here next week so I’l getting this ready for myself.
Forecast part is a little different. I haven’t been able to find one to work with this specific mobile script, simply because he’s using the WU as a forecast source, which doesn’t work for the US. If anyone on here has been able to munge up the code to make NWS a viable source for the forecast script, I’m sure all ears on this.
One other thing; in the clientraw.parser.php file, unless you change the following as I have it below, your precision on rain and barometer will not be correct.
Yours shows as:
// temp conversion precision
// determines the number of decimal places
$temp_prec = '1';
// wind conversion precision
// determines the number of decimal places
$wind_prec = '1';
// barometer conversion precision
// determines the number of decimal places
$barom_prec = '1';
// rain conversion precision
// determines the number of decimal places
$rain_prec = '1';
It should be changed to be this:
// temp conversion precision
// determines the number of decimal places
$temp_prec = '1';
// wind conversion precision
// determines the number of decimal places
$wind_prec = '1';
// barometer conversion precision
// determines the number of decimal places
$barom_prec = '2';
// rain conversion precision
// determines the number of decimal places
$rain_prec = '2';
Else your barometer and rain will round up…i.e, 29.84 inches will say 29.90 and 2.16 inches of rain will read as 2.20…
I have been working on this script for the last 2 days and have it almost completed for the time being. I have an issue with my advisories page: http://sacrey.info/cell-advisories.php?skip=1.
I am unable to shrink the top part of the advisory down enough to be readable. Any ideas, thoughts…? I am using the rss-advisory.php for my warning, etc. and created a revised version for this page. I decreased the table width from 630 to 310, but…
Well after playing around with this for 2 days I seem to have found the answer. I created a second copy of the rss-advisory.php script and modified to fit the page pretty close to correct. I am attaching a copy of both the rss-advisory.php and the cell-advisories.php for those who would like one.
I am attaching a .zip file with hopefully all of the information you will need to setup and run the cellphone script. I have changed all of the pertinent information to your area and hope I have all of the directories and settings correct. I’ll apologize in advance if I do not.
Thanks for the help on this one. Put the files in place, had to change the dir as it is located in weather.
The only thing that is wrong is the Advisory it shows:
Advisory Information Unavailable, invalid advisory zone selected.
but it is the correct zone i put in there.