Project

General

Profile

« Previous | Next » 

Revision 77f1c73c

Added by David Sorber about 13 years ago

Continuing to work on final project documentation. Also fixed another minor bug in rpi_client.py.

View differences:

525.743/code/rpi_client.py
# Create the SensorReading object before we sort the temps
reading = SensorReading(now, temps[0], temps[1], temps[2],
temps[3], relay_state)
temps[3], False)
# Sort all the temperature readings for easier manipulation
temps.sort(reverse=True)
......
relay_state = True
relay.on()
# Update the relay status after deciding to turn it on or off
reading.relay_status = relay_state
# Send a reading to the server once every minute
if interval_counter == REMOTE_DATA_INTERVAL:
if DEBUG:
525.743/code/server.py
from bfcslib.sensor_reading import SensorReading
DB_PATH = '/home/dsorber/bfcs/beer_temps.db'
HOST = '10.0.0.6'
HOST = '192.168.1.1'
PORT = 2243
def main():

Also available in: Unified diff