[{"data":1,"prerenderedAt":137},["ShallowReactive",2],{"post:\u002F2017\u002F05\u002F23\u002Fsmart-alarm-clock":3},{"id":4,"title":5,"body":6,"date":128,"description":12,"extension":129,"meta":130,"navigation":131,"path":132,"seo":133,"stem":134,"subtitle":135,"__hash__":136},"posts\u002F2017\u002F05\u002F23\u002Fsmart-alarm-clock.md","Smart Alarm Clock",{"type":7,"value":8,"toc":125},"minimark",[9,13,16,42,55,58,69,72,86,99,102,105,111,114,121],[10,11,12],"p",{},"Tired of you boring alarm on your phone? check out my new alarm clock project that wakes you up, greets you and tells you the weather and the news. Lets begin, ssh into your raspberry pi.",[10,14,15],{},"obligatory updates:",[17,18,23],"pre",{"className":19,"code":20,"language":21,"meta":22,"style":22},"language-shell shiki shiki-themes github-dark","sudo apt-get update\n","shell","",[24,25,26],"code",{"__ignoreMap":22},[27,28,31,35,39],"span",{"class":29,"line":30},"line",1,[27,32,34],{"class":33},"svObZ","sudo",[27,36,38],{"class":37},"sU2Wk"," apt-get",[27,40,41],{"class":37}," update\n",[17,43,45],{"className":19,"code":44,"language":21,"meta":22,"style":22},"apt-get upgrade\n",[24,46,47],{"__ignoreMap":22},[27,48,49,52],{"class":29,"line":30},[27,50,51],{"class":33},"apt-get",[27,53,54],{"class":37}," upgrade\n",[10,56,57],{},"now lets begin, the first thing your going to want to do is to clone my Github repository for this project",[10,59,60],{},[24,61,62,63],{},"git clone ",[64,65,66],"a",{"href":66,"rel":67},"https:\u002F\u002Fgithub.com\u002Fconorbr\u002Ftalking-alarm-clock",[68],"nofollow",[10,70,71],{},"Great, now we have the project code. Go ahead and cd into the project folder and run the controller.py file. this is the file that pulls the strings.",[17,73,75],{"className":19,"code":74,"language":21,"meta":22,"style":22},"cd talking-alarm-clock\n",[24,76,77],{"__ignoreMap":22},[27,78,79,83],{"class":29,"line":30},[27,80,82],{"class":81},"sDLfK","cd",[27,84,85],{"class":37}," talking-alarm-clock\n",[17,87,89],{"className":19,"code":88,"language":21,"meta":22,"style":22},"python controller.py\n",[24,90,91],{"__ignoreMap":22},[27,92,93,96],{"class":29,"line":30},[27,94,95],{"class":33},"python",[27,97,98],{"class":37}," controller.py\n",[10,100,101],{},"you can set the time its triggered here in the project code, but what if we could make it easier. well you're in luck! i made an android app to allow you to set the time from your phone.",[10,103,104],{},"go ahead and download the app from this link:",[10,106,107],{},[64,108,109],{"href":109,"rel":110},"http:\u002F\u002Fwww.droidbin.com\u002Fp1b9mn6b4rlr814tf15td7f01pvc3",[68],[10,112,113],{},"and that's it. To make it even better, i know you think thats impossible, but bare with me. we can set the code to run as soon as the device is turned on.",[10,115,116,117],{},"check out my other blog post on raspberry pi startup processes check out my other blog post on startup processes ",[64,118,120],{"href":119},"\u002F2017\u002F05\u002F23\u002Fraspberry-pi-startup-processes","here",[122,123,124],"style",{},"html pre.shiki code .svObZ, html code.shiki .svObZ{--shiki-default:#B392F0}html pre.shiki code .sU2Wk, html code.shiki .sU2Wk{--shiki-default:#9ECBFF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html pre.shiki code .sDLfK, html code.shiki .sDLfK{--shiki-default:#79B8FF}",{"title":22,"searchDepth":126,"depth":126,"links":127},2,[],"2017-05-23 22:48","md",{},true,"\u002F2017\u002F05\u002F23\u002Fsmart-alarm-clock",{"title":5,"description":12},"2017\u002F05\u002F23\u002Fsmart-alarm-clock",null,"CgvwA2Dkmk1qg7OYY_dITq2jkVFvmo3DFdUSXLjxhsQ",1791634646624]