I couldn't get your test script to work at all.
could I get your help making one for weather.com based
This is not my script but I did try it out and made some improvements to it as it did not work for me as listed. First, if you aren't running the script from /var/www/lmce-admin directory, you will need to change the required file path to find the included file. Also, if your city name has a space in it, like my city does and many others (i.e. San Antonoio, Las Vegas, etc.) you will need to urlencode the city name returned from the database query or the script fails.
Other then that, the script works fine in my testing...