File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 19
19
from PIL import Image , ImageDraw , ImageFont
20
20
import adafruit_rgb_display .st7789 as st7789
21
21
22
- api_url = 'http://localhost/admin/api.php'
22
+ API_TOKEN = "YOUR_API_TOKEN_HERE"
23
+ api_url = "http://localhost/admin/api.php?summaryRaw&auth=" + API_TOKEN
23
24
24
25
# Configuration for CS and DC pins (these are FeatherWing defaults on M0/M4):
25
26
cs_pin = digitalio .DigitalInOut (board .CE0 )
Original file line number Diff line number Diff line change 45
45
# Import Python Imaging Library
46
46
from PIL import Image , ImageDraw , ImageFont
47
47
48
- api_url = 'http://localhost/admin/api.php'
48
+ API_TOKEN = "YOUR_API_TOKEN_HERE"
49
+ api_url = "http://localhost/admin/api.php?summaryRaw&auth=" + API_TOKEN
49
50
50
51
# Create the I2C interface.
51
52
i2c = busio .I2C (SCL , SDA )
You can’t perform that action at this time.
0 commit comments