Skip to content

Instantly share code, notes, and snippets.

Wesley Archer raspberrycoulis

Block or report user

Report or block raspberrycoulis

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@pbojinov
pbojinov / blinkt-weather.py
Last active Jun 11, 2018 — forked from brentajones/blinkt-weather.py
A weather status script for the Raspberry Pi and Blinkt module - https://blog.bjones.net/2018/02/04/pi-blinkt-weather-status/
View blinkt-weather.py
import json, time, os.path
import blinkt, requests
status_colors = {'current':[1,1,1],'high':[1,0,0],'low':[0,0,1],'precip':[0,1,0]}
blinkt.set_clear_on_exit()
blinkt.set_brightness(.1)
def getForecast(key,lat,lng):
url = 'https://api.darksky.net/forecast/' + key + '/' + str(lat) + ',' + str(lng)
You can’t perform that action at this time.