Particle Weather Widget

Doug Melton
Oct 7, 2015 · 1 min read

I love Particle. It’s the perfect combination of a little bit of hardware and a little bit of software. It removes all the annoying bits of creating a thing: the firmware flashing, the command-line debugging. It lets me just make things.

So when I found the Sparkfun Particle OLED Shield, I knew it could do something cool. A few days after it arrived, I stumbled upon this inspiring project. So I set out to create my own Particle Weather Widget, and here it is:

Particle has a trick up its sleeve that gives it a huge advantage over the Adafruit project: webhooks. Basically: webhooks make it easy to parse complex data (from forecast.io, for instance).

My version of a weather widget has a couple bits of polish that I want to point out:

  1. It scrolls naturally. You might not notice it, because it looks natural. Scrolling at a linear rate, on the other hand, would look quite mechanical. Indeed, I used the same Accelerate-Decelerate function that can be found in the Android platform source code.
  2. I recreated all the icons at a 32x32 resolution, by hand using Inkscape (to convert svg -> png), GIMP (to convert to 2-color), and LCD Creator. It’s a bit tedious.

Get the source code and tech details on GitHub

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store