Cellphone / Mobile / iPhone Weather Script

I think a lot us do the same thing…this is just a fix until its sorted out properly.

From your Radar Page ! http://icons.wunderground.com/data/640x480/sw_rd_anim.gif

EDIT: no hotlinking now for my moon image as a fix has been found!

Regards
Steve

What I was suggesting was that telling people on a PUBLIC forum that the solution to your problem was to hot link images, was not a good idea.

The forum is archived by many search engines at a very fast clip. Google has already archived the posting pretty much forever.

Reference to the radar page which is new and still under development is not the same thing. I have not posted the code that script uses for that very reason. It’s not completed yet.

This weekend, I am working on the caching code which I completed on the webcam page late last night.

Ie. I am not promoting the use of hot linking.

Added a forums to mine here :slight_smile:
http://wxflint.com/iforum

I also am not a proponent of hotlinking. Causes too much uncertainty and broken pages, images etc. A perfect example of why I say this, for example, is using NWS or similiar on our weather webpages. While this action is allowed and generally the only way to do it, most scripts currently in use do go outside to get the info, look at how many “emergency” messges are on the forum if NWS should go offline for a period of time.

Additionally, and more importantly to me, is if I have to pay for bandwidth, I want my bandwidth being used for it’s intended purpose… people coming to my site and looking at the information supplied, not someone stealing my hard earned created information to diplay on their website and inferring it is their original work.

This is way off topic, Steve only mentioned away that he was doing it, then folks jumped on him for doing so, plus you purposely hotlinked his images to this forum, a bit childish to say the least but mostly hypocritical.

Kevin, Most are using others sites bandwidth in one way or an other, whether it be direct hotlinking, look at your (RADAR PAGES) or using a script to grab images from another site look at your webcam page (WEBCAM PAGE) this in turn is also using another sites bandwidth.

It does seem a bit ironic that the people waving the “no hotlink” and “bandwidth theft” flags are doing this very thing on their public sites, either by a “hotlink” or cached images/information!!.

I agree with Bashy most of us are doing the same thing and therefore I have no axe to grind!.

EDIT: In the interest of peace and harmony I have removed the offending code/link from my previous posts.

Regards
Steve

Looks like the topic is getting away.

May I inquire how you resolved the moonphase issue?

I forgot I already cache a moon image once a day for the astro page so I now use this image for the mobile page.

Regards
Steve

When my conditions are partly cloudy I get the sun icon, where can I change this in the script?


Well that was fun :roll:

I have it working finally, but a LOT of hacking was necessary. I hope it’s viewable.

Here it is. I left the forecast link active as I would like to offer forecasting once I figure out how to get it and serve it lol.

http://www.hrmweather.com/cell.php

All the best
Jim

Ah good ol PHP 4 and 5 differences I am getting a depreciated function split() which is screwing things up in a couple of locations, anyone come up with a fix?

Simply use either explode or preg_split for whatever function you are using for split now.

explode is typically used for a single delimiter. preg_split can be used for regex and other split points.

Fixed, yep explode did the job

http://tokoroaweatherlive.net/cell.php

My turn to play with this great script.

http://www.cnyweather.com/cell-ajax-dashboard.php
Get data here but working on a few path issues

http://www.cnyweather.com/cell.html
Get no data on this page

Ideas?

Thank you!
Tony

I can’t even get the cell_ajax-dashboard.php to work. I get a blank screen and when I view the source I see:

<!--  ajax-dashboard.php - 1.11 - 25-Sep-2008 World-ML Version --> 
<!-- fcstby='' fcstscript='advforecast2.php' fcstorg='NWS' --> 
<!-- Lang='en' --> 

The cell.php works but that’s it.

Anyone have any ideas why I cant get it to work? :frowning:

Change cell.html to cell.php

Ok, did that.

For some reason it’s redirecting to my mobile site after changing it to .php

Use this URL to get to it (the code has some stuff in it to redirect to a test Opera mini-browser if you leave out the param):

I do that, and now I see the following errors:

Warning: include_once(cell_ajax-dashboard.php) [function.include-once]: failed to open stream: No such file or directory in /home/content/c/n/y/cnyweather/html/cell.php on line 84

It appears you’ve removed the cell dashboard file from the root directory.