Skip to content

Update Matrix Portal New Guide Scroller Code.py #3005

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 1 commit into from
Apr 1, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Matrix_Portal/Matrix_Portal_Learn_Stats/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
DISPLAY_NUM_GUIDES = 5
# Data source URL
DATA_SOURCE = (
"https://learn.adafruit.com/api/guides/new.json?count=%d" % DISPLAY_NUM_GUIDES
"https://learn.adafruit.com/api/guides.json?count=%d" % DISPLAY_NUM_GUIDES
)
TITLE_DATA_LOCATION = ["guides"]

Expand Down Expand Up @@ -65,7 +65,7 @@ def get_guide_info(index):
print("Obtaining guide info for guide %d..." % index)

# Traverse JSON data for title
guide_count = matrixportal.network.json_traverse(als_data.json(), ["guide_count"])
guide_count = matrixportal.network.json_traverse(als_data.json(), ["guides_total_count"])

# Set guide count
matrixportal.set_text(guide_count, 0)
Expand Down