Read email from a system pipe into python

Posted by - August 15, 2016

#!/usr/local/bin/python import sys import email full_msg = “” for line in sys.stdin full_msg += line msg = email.message_from_string(full_msg) to = msg fromwho = msg subject = msg #make an emty variable for email body body =...
Read More

Keep Reading : maserFire.py – Fire lasers with transistors and python on a Raspberry Pi 3 maserCycle.py – Cycle through lasers on servos and draw lines servoTurn.Py – a simple python script to turn a servo on a raspberry pi 3 while loop
Read More

Add Clock Via i2c

Posted by - October 24, 2015

Prepare i2c added real time clock driver to raspian Add time variable to picture display Solder pins to clock module ...
Read More

Keep Reading : Chain connect pressure/temperature module i2c on clock module Remote ssh connect from iPad P.C. and laptop using dynamic ip address Hello World LED Blinking
Read More

Wire camera to pi

Posted by - October 24, 2015

Install camera software & configure pi One picture program One picture per blink cycle Print proto time on picture       ...
Read More

Keep Reading : Pi Camera Resolution Fix LED Blinking Add Clock Via i2c Chain connect pressure/temperature module i2c on clock module
Read More

Turn string into array with split

Posted by - October 18, 2015

textWithCommas = “bee,apple,pear,dog,carrot,robot” wordList = textWithCommas.split(“,”) print “the second item is : ” + textWithCommas ...
Read More

Keep Reading : Identify USB device and discover its name and port Serial Commands used by our Satellite transciever. while loop GPS RESPONSE CODE ORDER
Read More