50°F

Aaron Parecki

  • Articles
  • Notes
  • Photos
  • Adding Weather to my Posts!

    December 30, 2017

    I'm super happy to be able to add myself to the list of people who publish weather info in their posts!

    I've had a long-standing goal to include weather info on all of my posts on my site! In fact, I actually started collecting historical weather info just so that I could backfill the data on my site once I added the feature. The weather database I've been collecting goes back to 2012! I decided it's been long enough and bit the bullet and sat down to finally knock it out.

    I've had the current weather up in my website header since 2016, and it turns out that I was able to reuse a lot of that existing code.

    Today I finally added support for storing weather info per post, and adding it when new posts are created. The weather is based on my current location, which I've already been automatically including in my posts for a long time. So now, when a new post is created, if the cached weather info that is shown in the header is recent enough, it bakes it into the post's storage file.

    Now my posts will all have little weather icons and the current temperature!

    I decided on using an icon font for the weather icons so that they are all visually consistent and inline with the text. The icon set I'm using is http://erikflowers.github.io/weather-icons/ The weather info itself comes from Wunderground, although I may switch to Dark Sky in the future since they have a higher per-day API limit.

    I also decided to put the weather info on the same line as the location name, since I feel like this information very closely linked to the location. (It's also stored in the location property internally.) 

    I'm pretty excited to finally have this done, just in time for all my posts in 2018 to be weather-tagged! 

    I'm postponing the work of backfilling all my past posts since that is going to take quite a bit of effort. I'll add it to the ever-growing list of old data to import to my site! 😂

    Portland, Oregon • 39°F
    Sat, Dec 30, 2017 8:15pm -08:00 #indieweb #newwwyear #weather
    1 like 3 replies 2 mentions
    • Calum Ryan
    • SteveSawczyn micro.blog/SteveSawczyn

      @aaronpk Quill is an absolutely wonderful experience, I especially love that the editor is so accessible. Including the text of weather would clutter the post, but I think it’s worth it as it would easily cross post to services like Twitter. My challenge is finding an iOS app that would allow me to share the actual text rather than a screenshot.

      Tue, Nov 12, 2019 4:00pm +00:00
    • Aaron Parecki aaronparecki.com
      Include weather info in location records
      Mon, Jan 1, 2018 1:20pm -08:00
    • adamprocter micro.blog/adamprocter

      @aaronpk excellent will badge up where I can 😊

      Sun, Dec 31, 2017 4:18am -08:00

    Other Mentions

    • Aaron Parecki aaronparecki.com
      My 2017 Year in Review
      Thu, Jan 4, 2018 2:40pm -08:00
    • Aaron Parecki aaronparecki.com
      2017 in Numbers
      Sun, Dec 31, 2017 6:45pm -08:00
Posted in /articles using quill.p3k.io

Hi, I'm Aaron Parecki, Director of Identity Standards at Okta, and co-founder of IndieWebCamp. I maintain oauth.net, write and consult about OAuth, and participate in the OAuth Working Group at the IETF. I also help people learn about video production and livestreaming. (detailed bio)

I've been tracking my location since 2008 and I wrote 100 songs in 100 days. I've spoken at conferences around the world about owning your data, OAuth, quantified self, and explained why R is a vowel. Read more.

  • Director of Identity Standards at Okta
  • IndieWebCamp Founder
  • OAuth WG Editor
  • OpenID Board Member

  • 🎥 YouTube Tutorials and Reviews
  • 🏠 We're building a triplex!
  • ⭐️ Life Stack
  • ⚙️ Home Automation
  • All
  • Articles
  • Bookmarks
  • Notes
  • Photos
  • Replies
  • Reviews
  • Trips
  • Videos
  • Contact
© 1999-2025 by Aaron Parecki. Powered by p3k. This site supports Webmention.
Except where otherwise noted, text content on this site is licensed under a Creative Commons Attribution 3.0 License.
IndieWebCamp Microformats Webmention W3C HTML5 Creative Commons
WeChat ID
aaronpk_tv