I posed this question on Reddit but i got no response. I have a python script that gets data via serial RS232 and prints it out. This code works very well, updating at a rapid pace. import serial port = serial.Serial("/dev/ttyUSB0", baudrate=9600, timeout=3.0) def filewrite(rcv): logfile = open("tem...
Hello all. I have a script that when i read my /dev/USB0 it will print out the data and does so with out fail import serial port = serial.Serial("/dev/ttyUSB0", baudrate=9600, timeout=3.0) def filewrite(rcv): logfile = open("templog.txt", "a") logfile.write(rcv) Logfile.close while True: rcv = port....
I am currently working on a Beehive monitor and would like to record the weight twice per day. The scale i purchased is a CPWplus 200 Bench Scale with a 9 pin D-sub on it for RS232. What is the best way to hook this up to my RPi? I don't believe speed will be an issue but i am not sure. I don't mind...
Hello All. I am trying to add a second DHT22 to my script. When i run it, it works fine, logging the temps in Google Sheets. I added some math to convert it over to deg F and I get a TypeError: unsupported operand type(s) for *; 'NoneType" and 'float' What am I doing wrong? Line 118 is where i am tr...
JF002 your comments worked. I had to move the print temp to line 112 for it to work in the loop. Thanks so much!!! I appreciate your time as that was no quick 2 sentence response. I assume I have to rename the Temp Line113 to something else so that id = '28-00000657a569' print "Temp : " + '{:.3f}'.f...
Hello All. I have completed a couple tutorials and I wanted to combine them. I have completed the logging temps with DHT11 and logging them onto Google docs, and I have completed the 1 wire thermometer with success as well. Links provided below. My next challenge was to combine the 2 projects. I hav...