From 7053a2cba9580c255485aa8962cb9d8b64946d00 Mon Sep 17 00:00:00 2001 From: Simon Albinsson Date: Sat, 7 Apr 2018 21:47:31 +0000 Subject: [PATCH] Imports json, system libs and so on Ads various imports for time keeping and data persistance --- sgptest.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sgptest.py b/sgptest.py index 169a8ff..b81e6b4 100644 --- a/sgptest.py +++ b/sgptest.py @@ -3,7 +3,11 @@ from smbus2 import SMBusWrapper, SMBus, i2c_msg from collections import namedtuple from functools import partial #import Adafruit_PureIO.smbus as adabus -from time import sleep +from time import sleep, asctime,time +import json +from copy import copy +import requests +import os.path DEVICE_BUS = 1 DEVICE_ADDR = 0x58