Hackpads are smart collaborative documents. .
831 days ago
831 days ago
Unfiled. Edited by iamkat@gmail.com , Jun Matsushita 831 days ago
iamkat@gmail.com For the 7 inch screen we were using mode 17 CEA HDMI
 
Jun M Committing code updates to github
 
  • Change the local git config to have the proper author info:
  • git config --global user.name "John Doe"
  • git config --global user.email johndoe@example.com
  • Make sure all file that need to be committed are in the ~/new-atlantis directory
  • cp /home/pi/node-red/flows_raspberry.json /home/pi/new-atlantis
  • Check that the list of files that are about to be committed look right
  • cd /home/pi/new-atlantis
  • git status
  • Add all the files
  • git add .
  • Or only a specific file
  • git add somedir/somefile
  • Commit the file with a message about what happened
  • git commit -m "This is what happened to these files"
  • Push the results to github
  • git push
  • Enter credentials.
 
 
837 days ago
Unfiled. Edited by iamkat@gmail.com 837 days ago
iamkat@gmail.com
  • Node-red file for not waving
 
  • [{"type":"tab","id":"70a58b06.45bd64","label":"Not Waving"},{"type":"tab","id":"a4db4716.a7d828","label":"Sheet 4"},{"id":"8552c587.2af6","type":"twitter-credentials","screen_name":"@katausten"},{"id":"8b1abd49.9c7668","type":"twitter-credentials","screen_name":"@jmatsushita"},{"id":"44f57cc0.7dfdac","type":"twitter in","twitter":"8552c587.2af6","tags":"#water, #fail","user":"false","name":"water","topic":"tweets","x":102,"y":172,"z":"70a58b06.45bd64","wires":[["188722c.7e1afdd"]]},{"id":"188722c.7e1afdd","type":"function","name":"Process Tweet","func":"// is it possible to set this to a variable that  is then\n// counted by the other function and then fed back in\n// iteratively??\n// initialise the counter to 0 if it doesn't exist already\ncontext.count = context.count || 0;    \ncontext.count += 1;\n// make it part of the outgoing msg object\nmsg.count = context.count;\nif (msg.count >= 5) {\n  msg.pour = true\n  context.count = 0\n} else {\n  msg.pour = false\n}\nreturn msg;","outputs":"1","x":294,"y":200,"z":"70a58b06.45bd64","wires":[["ad7f9f55.8be2f8"]]},{"id":"5030b5e6.ccf8f4","type":"debug","name":"Servo Debug","active":true,"console":"true","complete":"false","x":1099.555419921875,"y":97.77777099609375,"z":"70a58b06.45bd64","wires":[]},{"id":"93ebc43b.209f3","type":"template","name":"Display Tweet","template":"<li>{{payload}}</li>","x":623.6666870117188,"y":302.22222900390625,"z":"70a58b06.45bd64","wires":[["bdc0737e.ef7428","dafaacb9.ae6158"]]},{"id":"bdc0737e.ef7428","type":"debug","name":"Display Debug","active":true,"console":"true","complete":"false","x":961.7777709960938,"y":399.7777404785156,"z":"70a58b06.45bd64","wires":[]},{"id":"ad7f9f55.8be2f8","type":"switch","name":"Send pour","property":"pour","rules":[{"t":"true"},{"t":"nnull"}],"checkall":"true","outputs":2,"x":410,"y":127,"z":"70a58b06.45bd64","wires":[["d3220735.f10c88","a3847d89.ad63d8"],["93ebc43b.209f3"]]},{"id":"d3220735.f10c88","type":"template","name":"Pour","template":"Pour!!!","x":616,"y":75,"z":"70a58b06.45bd64","wires":[["5030b5e6.ccf8f4"]]},{"id":"3dff1a17.8de5de","type":"http response","name":"Response Show","x":782,"y":471,"z":"70a58b06.45bd64","wires":[]},{"id":"40f61797.e91e78","type":"http in","name":"Showme","url":"/showme","method":"get","x":174,"y":463,"z":"70a58b06.45bd64","wires":[["46f289e8.0c9e"]]},{"id":"5fc20112.c3f798","type":"debug","name":"","active":true,"console":"true","complete":"true","x":506,"y":144,"z":"a4db4716.a7d828","wires":[]},{"id":"69ceef79.3b3e6","type":"http response","name":"ok","x":691,"y":270,"z":"a4db4716.a7d828","wires":[]},{"id":"f742de94.3f64e8","type":"http in","name":"showmeagain","url":"/showmeagain","method":"get","x":226,"y":224,"z":"a4db4716.a7d828","wires":[["5fc20112.c3f798","a45cd40f.375028"]]},{"id":"a45cd40f.375028","type":"function","name":"","func":"msg.payload = \"test\"\nmsg.statusCode=200\nreturn msg;","outputs":1,"x":454,"y":205,"z":"a4db4716.a7d828","wires":[["69ceef79.3b3e6"]]},{"id":"e8b815b3.f570a","type":"function","name":"","func":"msg.payload = '<html><head><link type=\"text/css\" rel=\"stylesheet\" href=\"/tweets.css\"><meta http-equiv=\"refresh\" content=\"3\"></head><body><ol>' + msg.payload + '</ol></body></html>'\nreturn msg;","outputs":1,"x":585,"y":464,"z":"70a58b06.45bd64","wires":[["3dff1a17.8de5de"]]},{"id":"dafaacb9.ae6158","type":"file","name":"Write tweets_data","filename":"tweets_data","appendNewline":true,"overwriteFile":false,"x":939.5556030273438,"y":312.5555419921875,"z":"70a58b06.45bd64","wires":[]},{"id":"46f289e8.0c9e","type":"file in","name":"reads tweets_data","filename":"tweets_data","format":"utf8","x":385,"y":466,"z":"70a58b06.45bd64","wires":[["e8b815b3.f570a"]]},{"id":"79c8993f.f025b8","type":"inject","name":"Fake #fail","topic":"","payload":"This is a fake #fail tweet","payloadType":"string","repeat":"","crontab":"","once":true,"x":147,"y":256,"z":"70a58b06.45bd64","wires":[["188722c.7e1afdd"]]},{"id":"cad80efb.e2a2b","type":"http in","name":"tweets.css","url":"/tweets.css","method":"get","x":362,"y":543,"z":"70a58b06.45bd64","wires":[["ae7264ea.83a988"]]},{"id":"ae7264ea.83a988","type":"file in","name":"css","filename":"tweets.css","format":"utf8","x":503,"y":545,"z":"70a58b06.45bd64","wires":[["22e0f77f.4d98c"]]},{"id":"22e0f77f.4d98c","type":"http response","name":"","x":640,"y":550,"z":"70a58b06.45bd64","wires":[]},{"id":"3b1c8e12.fa91d2","type":"exec","command":"gpio pwm 1 40","append":"","useSpawn":"","name":"Servo open","x":839.77783203125,"y":133.11109924316406,"z":"70a58b06.45bd64","wires":[["5030b5e6.ccf8f4"],["5030b5e6.ccf8f4"],[]]},{"id":"a3847d89.ad63d8","type":"function","name":"remove payload","func":"msg.payload = \"\"\nreturn msg;","outputs":1,"x":616,"y":179,"z":"70a58b06.45bd64","wires":[["3b1c8e12.fa91d2","4f327f3d.b944f8"]]},{"id":"4f327f3d.b944f8","type":"delay","name":"","pauseType":"delay","timeout":"2","timeoutUnits":"seconds","rate":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":806.666748046875,"y":215.5554962158203,"z":"70a58b06.45bd64","wires":[["b38b5d31.e3744"]]},{"id":"b38b5d31.e3744","type":"exec","command":"gpio pwm 1 23","append":"","useSpawn":"","name":"Servo close","x":968.8889770507812,"y":214.44444274902344,"z":"70a58b06.45bd64","wires":[["5030b5e6.ccf8f4"],["5030b5e6.ccf8f4"],[]]}]
 
Members (2)
Jun Matsushita iamkat@gmail.com

Create a New Collection

Cancel

Move XXX to XXX


XXX will be invited to the XXX on XXX.

Cancel

Contact Support



Please check out our How-to Guide and FAQ first to see if your question is already answered! :)

If you have a feature request, please add it to this pad. Thanks!


Log in / Sign up