Skip to content

Instantly share code, notes, and snippets.

@cmplant3210
cmplant3210 / bsitowu.py
Last active July 21, 2021 01:53
BloomSky image uploader for Wunderground using Raspberry Pi. Set cron job to upload as often as you'd like.
import urllib.request
import json
import ftplib
url = 'http://api.bloomsky.com/api/skydata/'
api = '<insert your api from dashboard.bloomsky.com>'
req = urllib.request.Request(url,headers={'Authorization':api})
response = urllib.request.urlopen(req)