The SparcCore reads the weather forecast from yr.no 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.
@sebnil, awesome project. The Spark team could use the same here in Minneapolis–“Should I bring a coat?”. Although, it’s still the dead of winter here, so it’ll be some months before that’s even a question
This seems great. I might make something similar. You could go a step further and reduce the needed components by utilizing the built-in LED. Since it is an RGB LED you could setup colors to indicate more than just precipitation. Here’s a first thought: Red - Temperature, Blue - Precipitation, Green - Wind.
@sebnil I’m curious why you didn’t just use your php script to POST to the Core api rather than relying on the Core to create the client connection. Is this merely so you can have many devices accessing a single endpoint?
I uploaded it again to the core but this time it somehow messed it up
what i see in putty:
but then nothing more. what i hear is the sound windows makes when you unplug and replug a usb device.
so it looks like the tcpclient call to my service crashes the core somehow?!
but how can this be? all I changed was the url… and the web service seems ok!