We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f5aec7 commit 788c415Copy full SHA for 788c415
2 files changed
Pi_Hole_Ad_Blocker/mini_pitft_stats.py
@@ -19,7 +19,8 @@
19
from PIL import Image, ImageDraw, ImageFont
20
import adafruit_rgb_display.st7789 as st7789
21
22
-api_url = 'http://localhost/admin/api.php'
+API_TOKEN = "YOUR_API_TOKEN_HERE"
23
+api_url = "http://pi-hole.local/admin/api.php?summaryRaw&auth="+API_TOKEN
24
25
# Configuration for CS and DC pins (these are FeatherWing defaults on M0/M4):
26
cs_pin = digitalio.DigitalInOut(board.CE0)
Pi_Hole_Ad_Blocker/stats.py
@@ -45,7 +45,8 @@
45
# Import Python Imaging Library
46
47
48
49
50
51
# Create the I2C interface.
52
i2c = busio.I2C(SCL, SDA)
0 commit comments