adafruit / Adafruit_CircuitPython_PyPortal

CircuitPython driver for Adafruit PyPortal.
MIT License
45 stars 56 forks source link

New optional json_transform arg to PyPortal constructor to post-process parsed JSON #39

Closed kevinjwalters closed 4 years ago

kevinjwalters commented 5 years ago

This is an implementation of json_transform (was json_transforms) described in #38.

Developed for and tested with nasa.py a new version of NASA image viewer from Adafruit Learn: PyPortal NASA Image of the Day Viewer.

That viewer can now cope with YouTube video urls as it can convert them to a url which fetches a single, still image representing the video. See commit history for the version which forces data to 2019-05-20 for a YouTube video. Tested with CircuitPython 4.0.1 on PyPortal.

tannewt commented 4 years ago

Thank you!