Hi everybody, I'm new to these forums and this is my first post. A couple days ago I was trying to find a simple script that would return an individual's local weather conditions using I.P. based geolocation. After many failed search attempts, I began my quest to create this for myself. I have to admit, it was a bit of a challenge for me as I'm very new to doing "cool" things on the command line. However, though the process of trial and error I have prevailed. Here is what I came up with:
This script will return your current local weather conditions as well as a four day forecast. As you can see, the script utilizes CURL, SED and XMLStarlet. As of right now, this is the best I could do.
Can you do better? Let's see how small and simple we can get this script, because it has the potential to develop into something useful for many people. If you find this challenge too simple for your master skills than perhaps you might like to take this script to the next level and add some features. Whatever the case may be, I look forward to your input.
Thanks,
Jared
Last edited by o0110o; 02-11-2010 at 07:53 PM..
Reason: Typo
#!/bin/sh
#Argentina Only :s
# This script requires curl and iconv, iconv is because they do not use Weather Service utf-8 ¬¬
# 87938 = Ushuaia
# 87934 = Rio Grande
# 87418 = Mendoza
# 87582 = Capital Federal
# 87692 = Mar del Plata
# 87480 = Rosario
# 87344 = Cordoba
# 87371 = Santa Fe
... (8 Replies)
Hi,
Hi want to check weather a file is being used by using a command or java code or shell script.
So, can any body give me some idea..
Thanks
Buddhika (3 Replies)
Hi all,
Please tell me how to verify weather it is a ebcdic file or not . I checked with file commond but it is giving like International Language text.
Regards,
Chaitu (0 Replies)