Closed DJDevon3 closed 2 months ago
This example also has the base64 encoded string appending with \n which likely will fail for you if the other private example does. I find it really odd and a bit concerning that this works for me but not for you. I'll take another look into this one today too and ensure the \n append is sliced off.
Also added .strip to the end of binascii.b2a_base64(b"" + str(OSN_CREDENTIALS)).strip()
which will strip off the \n. still have to use slice but it's 2 less characters to slice off. as far as i know this should be the final version for review.
Double checked the other PR's. This one is ready for review.
Private API, website credentials required. Instructions in code comments. More daily calls than Public API. Pulls flight data from a geographic area. Example is around Orlando airport.
Added
Changed from circuitpython_base64 community library to adafruit_binascii. It encodes to base64 much faster and has Adafruit library support. It's a better way to go for examples needing base64 encoding.
Serial output example: