Skip to content

Add Cheerlights Example! #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 11, 2020
Merged

Add Cheerlights Example! #8

merged 2 commits into from
Mar 11, 2020

Conversation

brentru
Copy link
Member

@brentru brentru commented Mar 11, 2020

Adding example for Cheerlights (https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI/blob/master/examples/esp32spi_cheerlights.py).

Note: URL changed from https to http since CircuitPython does not have a native SSL/TLS implementation.

Tested on: Adafruit CircuitPython 5.0.0-beta.5 on 2020-02-05; Adafruit Feather M4 Express with samd51j19

IMG_8730

Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.
code.py output:
Fetching json from http://api.thingspeak.com/channels/1417/feeds.json?results=1
{'channel': {'id': 1417, 'latitude': '40.5', 'name': 'CheerLights', 'longitude': '-80.22', 'updated_at': '2018-07-20T01:05:15Z', 'description': 'CheerLights is an \u201cInternet of Things\u201d project created by Hans Scharler that allows people\u2019s lights all across the world to synchronize to one color set by Twitter. This is a way to connect physical things with social networking experiences.', 'last_entry_id': 678401, 'field2': 'CheerLights HEX Color', 'field1': 'Last CheerLights Command', 'created_at': '2011-12-01T03:30:04Z'}, 'feeds': [{'created_at': '2020-03-11T15:58:21Z', 'field2': '#FF0000', 'field1': 'red', 'entry_id': 678401}]}
[{'created_at': '2020-03-11T15:58:21Z', 'field2': '#FF0000', 'field1': 'red', 'entry_id': 678401}]
{'created_at': '2020-03-11T15:58:21Z', 'field2': '#FF0000', 'field1': 'red', 'entry_id': 678401}
#FF0000

@brentru brentru requested a review from a team March 11, 2020 16:12
@ladyada ladyada merged commit e7306cd into adafruit:master Mar 11, 2020
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Mar 12, 2020
Updating https://github.com/adafruit/Adafruit_CircuitPython_Wiznet5k to 1.0.1 from 1.0.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_Wiznet5k#8 from brentru/add-cheerlights
  > update pylintrc for black
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants