Use SparkCore to light up a LED if you should bring an umbrella today
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Should I bring an umbrella?

Living in Göteborg, Sweden means that many mornings you ask yourself the question "do I need an umbrella today?". To outsource more small decisions to computers I programmed a microprocessor that respond with activating a led if an umbrella is recommended.

Spark Core as Umbrella reminder

The idea is very simple. The microprocessor reads the weather forecast from for the next 10 hours (which is about the time I expect to be away from home). If any of these hours include rain (more than a few mm) then light the led. Unlit led obviously means no rain.

How it works


Spark Core Breadboard Light Emitting Diode Resistor Usb cable for power supply

Weather forecast with php and

I run a php script which gets the next forecast from It is published at is relatively easy to use.

Find the city that you want the forecast for and copy the URL. For example, in Gothenburg is theästmanland/Kolbäck/or Kolbäck stra_GÃ ¶ taland/Gothenburg/ Go to = 1&threshold = 0.1&yr_url = Example: Forecast for Gothenburg with a threshold for rain in 0.5 mm looks like this:

Code on the microprocessor

Spark Core is a microprocessor that connects to Wifi. You upload your code to it over their cloud service.

Get a Spark Core or similar and connect it to wifi. Copy my code for the Spark Core. The only needed change is the variable for the url. Upload