Back to Parent

Process

The process was a long and painful journey. What started out as an expected 5 hour project, quickly turned into a 20-25 hours test of patience but I am a better man having gone through it. Originally, I had intended to build a weather app using a thermometer as input and sending customized SMS messages via Twillio to my wife with clothing suggestions...if I got fancy, I played around with using Kimono to pull relevant images off pinterest. However, I later realized that this design did not meet the requirements for the project and began searching for an alternative. 


Having missed her social showing on Sunday, on Wednesday my wife and I caught up on the latest episode of Downton Abbey and I got the idea for this device. Having worked with photosensors during the workshop, I thought this would be an easy project to assemble. While I quickly was able to augment the workshop code to achieve the desired functionality locally (getting photosensor readings, blinking LEDs, and turning on LED when low photo readings) getting the code logic around the time syntax was far more challenging then I expected. After googling and attempting numerous efforts myself, Dr. Bryne was able to help find the errors in my code and get the logic working properly to drive actionable response on the Photon only during the time periods at and right before the show. The key it turns out was in the Time.weekday numbering which I can erroneously being using so my code thought it was the wrong day of the week...thus was not working. 

Altering clearing this hurdle, I was able to take time to implement the time logic for the photosensor and twitter integrations as well as clean up the code a bit through indentation and added comments. Please note that when posting the code into the window below, this seems to have causes more of a mess than benefit but I promise the code looks much cleaner in my ATOM terminal. 


Content Rating

Is this a good/useful/informative piece of content to include in the project? Have your say!

0