From 564ee5d938401df45c30c0107e4c04a1e162f8e4 Mon Sep 17 00:00:00 2001 From: Craig Oates Date: Fri, 8 Jan 2021 19:55:42 +0000 Subject: [PATCH] import platform module. The module is used to help determine which device is running the program. The device name allows the rest of the system to know what this device needs when I makes it RESTAPI calls. --- relay.py | 1 + 1 file changed, 1 insertion(+) diff --git a/relay.py b/relay.py index 377cc1b..515dbdf 100644 --- a/relay.py +++ b/relay.py @@ -3,6 +3,7 @@ import RPi.GPIO as GPIO import time import requests +import platform relay_pin = 11 #GPIO.setmode(GPIO.BCM) # GPIO numbers instead of board numbers.