Skip to content

Simple Python script to read the Weather from DarkSky.net

License

Notifications You must be signed in to change notification settings

retrorich75/DSPython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

DSPython

Simple Python script to read the Weather from DarkSky.net (original source http://brainwagon.org/2014/07/08/some-example-python-code-to-fetch-weather-forecasts/)

Example run on Raspberry Pi Console (output in °F)

pi@pidspy:/opt/ds $ sudo python DSPython.py

::: 2016-11-16 20:43:54
::: Conditions: Clear
::: Temperature: 50.3°
::: Dew Point: 46.8°
::: Humidity: 88.0%
::: Wind: 17 mph WSW
::: High: 55.0°
::: Low: 48.9°
        20:00 Clear 53.1°
        21:00 Clear 49.2°
        22:00 Clear 49.0°
        23:00 Partly Cloudy 48.9°
        00:00 Drizzle 48.5°
        01:00 Light Rain 47.4°
        02:00 Light Rain 45.8°
        03:00 Light Rain 44.8°
        04:00 Light Rain 44.8°
        05:00 Light Rain 45.6°
        06:00 Light Rain 46.1°
        07:00 Light Rain 46.0° 

Example run on Raspberry Pi Console (output in °C)

pi@pidspy:/opt/ds $ sudo python DSPython.py
::: Using cached data...
::: 2016-11-17 10:52:53
::: Conditions: Partly Cloudy
::: Temperature: 9.4°
::: Dew Point: 8.1°
::: Humidity: 91.0%
::: Wind: 4 mph WSW
::: High: 11.0°
::: Low: 9.2°
	10:00 Drizzle 9.4°
	11:00 Drizzle 9.4°
	12:00 Drizzle 9.9°
	13:00 Drizzle 10.2°
	14:00 Light Rain 10.3°
	15:00 Light Rain 10.4°
	16:00 Light Rain 10.4°
	17:00 Light Rain 10.7°
	18:00 Light Rain and Breezy 10.9°
	19:00 Light Rain and Breezy 11.0°
	20:00 Light Rain and Breezy 10.8°
	21:00 Light Rain and Breezy 10.5°
	

About

Simple Python script to read the Weather from DarkSky.net

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages