Commits

Anonymous committed 71dfab4 Draft

turn on flow sensor reading

  • Participants
  • Parent commits 5712b05

Comments (0)

Files changed (2)

File arduino/HotHouseArduinoSketch/HotHouseArduinoSketch.ino

     NbTopsFan = 0;   //Set NbTops to 0 ready for calculations
     attachInterrupt(flow_sensor, rpm, RISING); //attach interrupt
     sei();      //Enables interrupts
-    delay (500);   //Wait 1 second
+    delay (1000);   //Wait 1 second
     cli();      //Disable interrupts
     detachInterrupt(flow_sensor); //detach interrupt
     FlowCalc = (NbTopsFan * 60 / 5.5); //(Pulse frequency x 60) / 5.5Q, = flow rate "L/hour"

File domain/devices.py

 
 class LiquidFlowSensor(Sensor):
     def read(self):
-        """
         if 'READ' not in self.config:
             raise Exception("Configuration Error")
         r_conf = self.config.READ
         io_device = self.garden.io[r_conf["DEVICE"]]
         return io_device.readFlowSensor(*r_conf["PARAMS"])
-        """
 
 class ThermoSensor(Sensor):
     def read(self):