Merge pull request #2954 from brentru/fix-iot-bird-feeder

Fix: IoT Bird Feeder
This commit is contained in:
Brent Rubell 2025-01-24 09:28:20 -06:00 committed by GitHub
commit 38f661bf64
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -59,7 +59,7 @@ pir.direction = digitalio.Direction.INPUT
def send_jpeg_to_io():
# before we send the image to IO, it needs to be encoded into base64
encoded_data = binascii.b2a_base64(jpeg).strip()
encoded_data = binascii.b2a_base64(jpeg).strip().decode("utf-8")
# then, send the encoded_data to Adafruit IO camera feed
print("Sending image to IO...")
io.send_data(feed_camera["key"], encoded_data)