Using Dashblock

What info and where?

First things first, head over to the front page of the Adafruit Learning System at learn.adafruit.com

Scroll to the bottom to find the total guide count.

This is the information that we will extract using Dashblock, make an API for and eventually display on the PyPortal.

Download Dashblock

Next let's download the Dashblock application.

Head over to Dashblock.com and download the software either for Windows or Mac (sorry, there appears to be no Linux version yet).

Once you have the software downloaded, open it up and make an account.

Creating the API

  • Now copy and paste the url: learn.adafruit.com in the search bar of the app.
  • Next you will be taken to the learning system site within the app. Scroll down to the bottom to find the learn guide count, once again.
  • Once there, right click on the text that says "xxxx tutorials and counting"
  • You will be prompted to make a label name for the data. Create a name for the data and hit return to save the name.
  • Next hit the save button in the top right corner of the app.
  • You will see the app loading then it will display the data we just requested in JSON format. Hurrah, the API has been created!

Double check

Lastly to confirm this API is functioning properly, click the button in the top right that says "show code sample".

You will see a line of text that starts with "curl" and then a link.

The link after the curl is what we want so copy the entire link and paste it in a browser of your choice.

  • After some loading, you should see that same JSON data but in your browser, yay!

Now that we have the API set up, it's time to prepare and code the PyPortal to display it.

This guide was first published on Sep 09, 2019. It was last updated on 2019-09-09 18:48:19 -0400. This page (Using Dashblock) was last updated on Sep 16, 2019.