{"id":675,"date":"2016-05-29T16:26:20","date_gmt":"2016-05-29T20:26:20","guid":{"rendered":"http:\/\/www.jwardell.com\/blog\/?p=675"},"modified":"2016-06-01T09:49:34","modified_gmt":"2016-06-01T13:49:34","slug":"bus-countdown-clock","status":"publish","type":"post","link":"http:\/\/www.jwardell.com\/blog\/2016\/05\/29\/bus-countdown-clock\/","title":{"rendered":"Bus Countdown Clock"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-676\" src=\"http:\/\/www.jwardell.com\/blog\/wp-content\/uploads\/2016\/05\/TransitClock1.jpg\" alt=\"TransitClock1\" width=\"480\" height=\"640\" srcset=\"http:\/\/www.jwardell.com\/blog\/wp-content\/uploads\/2016\/05\/TransitClock1.jpg 960w, http:\/\/www.jwardell.com\/blog\/wp-content\/uploads\/2016\/05\/TransitClock1-480x640.jpg 480w, http:\/\/www.jwardell.com\/blog\/wp-content\/uploads\/2016\/05\/TransitClock1-768x1024.jpg 768w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/p>\n<p>I take a bus from home several days a week, commuting to work or heading out for the evening. Each time, I check my phone dozens of times to leave the house at just the right time and\u00a0minimize waiting at the bus stop. Other times it would be nice to have a general idea well ahead of time; instead of waiting\u00a0till I&#8217;m ready, check my <a href=\"http:\/\/transitapp.com\" target=\"_blank\">Transit<\/a> app, and finding out I\u00a0just missed the bus and need to wait 40 minutes for the next one.<\/p>\n<p>I bought a Raspberry PI Zero over the winter and had an idea to attach it to a small display and display departure times for each of my busses. Never wanting to reinvent the wheel, I searched for similar projects. I found this <a href=\"https:\/\/learn.adafruit.com\/nextbus-transit-clock-for-raspberry-pi\/overview\" target=\"_blank\">over-the-top LED matrix scroller<\/a> over on Adafruit that would still take some work to use a cheaper graphical display instead. Then I found a much simpler solution: Phillip Burgess posted a followup Adafruit project that was just what I was looking for, the <a href=\"https:\/\/learn.adafruit.com\/personalized-esp8266-transit-clock\/overview\" target=\"_blank\">Personalized NextBus ESP8266 Transit Clock<\/a>.<\/p>\n<p>This made an excellent weekend project, I customized some of the Arduino code and display effects in less than an hour. It uses Adafruit&#8217;s amazingly affordable and simple <a href=\"https:\/\/www.adafruit.com\/products\/2821\" target=\"_blank\">Huzzah board<\/a> with built-in WiFi to connect to my network and check bus times from <a href=\"http:\/\/www.nextbus.com\" target=\"_blank\">NextBus<\/a>. It then sends the remaining minutes to\u00a07-segment LED <a href=\"https:\/\/www.adafruit.com\/products\/1002\" target=\"_blank\">displays<\/a> with easy-to control I2C controllers. I printed a regular sheet of paper to label the buses (and also diffuse the LEDs), mounted everything into cardboard cutouts, and packed it into an Ikea 5&#215;7&#8243; Ribba frame.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-678\" src=\"http:\/\/www.jwardell.com\/blog\/wp-content\/uploads\/2016\/05\/TransitClock3.jpg\" alt=\"TransitClock3\" width=\"480\" height=\"640\" srcset=\"http:\/\/www.jwardell.com\/blog\/wp-content\/uploads\/2016\/05\/TransitClock3.jpg 960w, http:\/\/www.jwardell.com\/blog\/wp-content\/uploads\/2016\/05\/TransitClock3-480x640.jpg 480w, http:\/\/www.jwardell.com\/blog\/wp-content\/uploads\/2016\/05\/TransitClock3-768x1024.jpg 768w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>The thick frame can stand freely on a table or hang on a wall. The controller just plugs into any USB plug for power (or I can sneak a USB battery behind it). I think it turned out great!<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-677\" src=\"http:\/\/www.jwardell.com\/blog\/wp-content\/uploads\/2016\/05\/TransitClock2.jpg\" alt=\"TransitClock2\" width=\"480\" height=\"640\" srcset=\"http:\/\/www.jwardell.com\/blog\/wp-content\/uploads\/2016\/05\/TransitClock2.jpg 960w, http:\/\/www.jwardell.com\/blog\/wp-content\/uploads\/2016\/05\/TransitClock2-480x640.jpg 480w, http:\/\/www.jwardell.com\/blog\/wp-content\/uploads\/2016\/05\/TransitClock2-768x1024.jpg 768w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Now, if only someone would make an app for the Apple Watch that did\u00a0the same thing,\u00a0showing arrival times for several stops of my choosing.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I take a bus from home several days a week, commuting to work or heading out for the evening. Each time, I check my phone dozens of times to leave the house at just the right time and\u00a0minimize waiting at the bus stop. Other times it would be nice to have a general idea well [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-675","post","type-post","status-publish","format-standard","hentry","category-tech"],"_links":{"self":[{"href":"http:\/\/www.jwardell.com\/blog\/wp-json\/wp\/v2\/posts\/675","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.jwardell.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.jwardell.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.jwardell.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.jwardell.com\/blog\/wp-json\/wp\/v2\/comments?post=675"}],"version-history":[{"count":4,"href":"http:\/\/www.jwardell.com\/blog\/wp-json\/wp\/v2\/posts\/675\/revisions"}],"predecessor-version":[{"id":682,"href":"http:\/\/www.jwardell.com\/blog\/wp-json\/wp\/v2\/posts\/675\/revisions\/682"}],"wp:attachment":[{"href":"http:\/\/www.jwardell.com\/blog\/wp-json\/wp\/v2\/media?parent=675"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.jwardell.com\/blog\/wp-json\/wp\/v2\/categories?post=675"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.jwardell.com\/blog\/wp-json\/wp\/v2\/tags?post=675"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}