Python

37 0 0
                                        

Python master at your service.

Grammar is critical in python, thats the main point I need to emphasize. What you need to know how to do, is how to think like a computer. Not interperet, but do literally whats told. This combined with the correct grammar makes a programmer. Any questions you have on your code, leave in the comments or a pastebin link and I will get back to you asap. Thanks alot, Ryan.  

Ok so lets approach a raspbian enviroment again, (linux distribution mind you), and setup a SENSEHAT recording program, complete with 12 hour timestamps and written via python, and handled by xterm to append outputs to an excel readable CSV (comma seperated values) file.


There are 2 parts to doing this. First being the background python to sensehat interaction, and a simple print statement that will output to the console line (sort of like how echo does in windows cmd). After, we will have a shell script pickup that python written line and push it to a .CSV file for easy analysis, whether that be via salesforce or excel.

A little background, I wrote this in advance for a Research class on programming I'm enrolled in. This was written in 30 mins (yes I know its a long time for 20 lines of code haha) but the time format was the hardest part, and which is why most of you are sticking around. Stay tuned!

ProgrammingWhere stories live. Discover now