Esempio n. 1
0
def water_the_plant():
    #this method is called by the ev3 when the arm is in the soil
    result = grove.sensor_readings()
    print(result)
    print(type(result))
    moisture = result['m2']
    print("Moisture for EV3 is:" + str(moisture))
    return str(moisture < 600)
Esempio n. 2
0
def sensor_reading():
    if (raspPi):
        return jsonify(grove.sensor_readings())
    return ""
Esempio n. 3
0
def sensor_reading():
    return render_template('index2.html',
                           sensor_reading=grove.sensor_readings())