From b0d6474809bc3b348a9b34491296120cea44e5c7 Mon Sep 17 00:00:00 2001 From: Craig Oates Date: Sun, 12 Jan 2020 01:39:48 +0000 Subject: [PATCH] comment out testing/debugging print states in cli_meter. --- README.md | 2 +- cli_meter.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 50bac23..94d4b83 100644 --- a/README.md +++ b/README.md @@ -77,7 +77,7 @@ You can set the Pi up to automatically login to the desktop but the recommended #### Network Connections -Before installing the Raspberry Pi in its final location (gallery/exhibition), make sure it can connect to the galleries internet -- either via wi-fi or Ethernet cable. If you use an Ethernet cable, you do not need to do anything, but the wi-fi requires a little work on the command-line (if you are using a "headless" version of Rasbpian). If you are unsure how to connect to a router via wi-fi, use the following link to learn how: +Before installing the Raspberry Pi in its final location (gallery/exhibition), make sure it can connect to the galleries internet -- either via wi-fi or Ethernet cable. If you use an Ethernet cable, you do not need to do anything, but the wi-fi requires a little work on the command-line (if you are using a "headless" version of Raspbian). If you are unsure how to connect to a router via wi-fi, use the following link to learn how: - [Raspbian Wi-Fi Tutorial](https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md) diff --git a/cli_meter.py b/cli_meter.py index dfd60af..79b8c5c 100755 --- a/cli_meter.py +++ b/cli_meter.py @@ -78,13 +78,13 @@ def push_reading(lvalue): time = get_timestamp() headers = {"content-type": "application/json"} payload = { "reading": int(lvalue), "time": time, "token": "QWERTYuiopasdfghjklzxcvbnm_1234567890"} - print(payload) + # print(payload) # For testing. res = requests.post(api_url, data=json.dumps(payload), headers=headers) def update_reading(): light = light_from_r(read_resistance()) reading_str = "{:.0f}".format(light) - print(reading_str) + # print(reading_str) # For testing. push_reading(light) def main():