diff --git a/examples/graphics/clear-day.png b/examples/graphics/climacons/clear-day.png similarity index 100% rename from examples/graphics/clear-day.png rename to examples/graphics/climacons/clear-day.png diff --git a/examples/graphics/clear-night.png b/examples/graphics/climacons/clear-night.png similarity index 100% rename from examples/graphics/clear-night.png rename to examples/graphics/climacons/clear-night.png diff --git a/examples/graphics/climacons/cloudy.png b/examples/graphics/climacons/cloudy.png new file mode 100644 index 0000000..867f232 Binary files /dev/null and b/examples/graphics/climacons/cloudy.png differ diff --git a/examples/graphics/fog.png b/examples/graphics/climacons/fog.png similarity index 100% rename from examples/graphics/fog.png rename to examples/graphics/climacons/fog.png diff --git a/examples/graphics/partly-cloudy-day.png b/examples/graphics/climacons/partly-cloudy-day.png similarity index 100% rename from examples/graphics/partly-cloudy-day.png rename to examples/graphics/climacons/partly-cloudy-day.png diff --git a/examples/graphics/partly-cloudy-night.png b/examples/graphics/climacons/partly-cloudy-night.png similarity index 100% rename from examples/graphics/partly-cloudy-night.png rename to examples/graphics/climacons/partly-cloudy-night.png diff --git a/examples/graphics/rain.png b/examples/graphics/climacons/rain.png similarity index 100% rename from examples/graphics/rain.png rename to examples/graphics/climacons/rain.png diff --git a/examples/graphics/climacons/readme.md b/examples/graphics/climacons/readme.md new file mode 100644 index 0000000..d82ee98 --- /dev/null +++ b/examples/graphics/climacons/readme.md @@ -0,0 +1,10 @@ += Climacons by Adam Whitcroft + +75 climatically categorised pictographs for web and UI design by [@adamwhitcroft](http://www.twitter.com/#!/adamwhitcroft). + +Visit the [Climacons](http://adamwhitcroft.com/climacons/) website for more information. + +Visit [Adam Whitcroft on GitHub](https://github.com/AdamWhitcroft) + +== License +You are free to use any of the Climacons Icons (the "icons") in any personal or commercial work without obligation of payment (monetary or otherwise) or attribution, however a credit for the work would be appreciated. **Do not** redistribute or sell and **do not** claim creative credit. Intellectual property rights are not transferred with the download of the icons. \ No newline at end of file diff --git a/examples/graphics/sleet.png b/examples/graphics/climacons/sleet.png similarity index 100% rename from examples/graphics/sleet.png rename to examples/graphics/climacons/sleet.png diff --git a/examples/graphics/snow.png b/examples/graphics/climacons/snow.png similarity index 100% rename from examples/graphics/snow.png rename to examples/graphics/climacons/snow.png diff --git a/examples/graphics/wind.png b/examples/graphics/climacons/wind.png similarity index 100% rename from examples/graphics/wind.png rename to examples/graphics/climacons/wind.png diff --git a/examples/weather.py b/examples/weather.py index dad9c32..e1a728a 100644 --- a/examples/weather.py +++ b/examples/weather.py @@ -34,7 +34,7 @@ LONG = "114.189945" # Your Location def forecast_icon(idx): icon = data['daily']['data'][idx]['icon'] - image = "/graphics/" + icon + ".png" + image = "/graphics/climacons/" + icon + ".png" return image @@ -75,7 +75,7 @@ def icon(): deg = ' C' # Degree symbol on thermal printer, need to find a better way to use a proper degree symbol # if you want Fahrenheit change units= to 'us' -url = "https://api.darksky.net/forecast/"+API_KEY+"/"+LAT+","+LONG+"?exclude=[alerts,minutely,hourly,flags]&units=si" +url = "https://api.darksky.net/forecast/"+API_KEY+"/"+LAT+","+LONG+"?exclude=[alerts,minutely,hourly,flags]&units=si" #change last bit to 'us' for Fahrenheit response = urllib.urlopen(url) data = json.loads(response.read())