Merge pull request #2954 from brentru/fix-iot-bird-feeder
Fix: IoT Bird Feeder
This commit is contained in:
commit
38f661bf64
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue