From 97543e5eedf79779a7912bb810f0656156467ef7 Mon Sep 17 00:00:00 2001 From: BrahmaFarmsLLC <60452808+BrahmaFarmsLLC@users.noreply.github.com> Date: Fri, 3 Apr 2020 14:29:27 -0400 Subject: [PATCH] Update WriteThePiCode.md Added option to capture the temprate in celsius or fahrenheit --- Steps/WriteThePiCode.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Steps/WriteThePiCode.md b/Steps/WriteThePiCode.md index 884288f..7538ca6 100644 --- a/Steps/WriteThePiCode.md +++ b/Steps/WriteThePiCode.md @@ -236,7 +236,10 @@ Python has a concept of `.env` files to store secrets such as connection details data = { "humidity": round(temp_pressure_humidity.humidity, 2), "pressure": round(temp_pressure_humidity.pressure/10, 2), + #default temperature in celsius "temperature": round(temp_pressure_humidity.temperature, 2), + #comment the above line and uncomment the below line, if you want to capture the temperature in fahrenheit + #"temperature": round(((temp_pressure_humidity.temperature * 9/5) + 32), 2), "soil_moisture": round(moisture, 2) }