Are you a Youtube star?
Get Realtime updates of subscribers of your Youtube Channel.
Things used in this project
Hardware components
- Arduino UNO x 1
- Idiotware Shield x 1
- Espressif ESP8266 ESP-01 x 1
Software apps and online services
- Arduino IDE
- ThingSpeak API x 1
Story
How cool will it be, if the number of subscribers to your youtube channel can be quickly displayed in realtime? Lets make a youtube subscriber count gadget with the Idiotware Shield.
ThingHTTP from Thingspeak
Thingspeak has a nifty feature called thinghttp which allows parsing of publicly accessible web pages( like Youtube Channels) for data. All you need is a link to the web page, and the path to your data source.
Assuming you have created an account on thingspeak.com navigate to https://thingspeak.com/apps and click on thinghttp at the bottom of page
Once you are there, click new ThingHTTP, and add the URL to the webpage in the URL field
Scroll to the very bottom of the page and add the path to the data point in the “Parse String” Field. This path can be easily extract by right clicking the data on the webpage, selecting “inspect” in the menu and using the “Copy xpath” option.
Hit Save Thinghttp. Thingspeak will provide you with a custom URL, which when accessed from the browser will show you the data from the webpage, whose xpath was used.
This new URL is then used in code, and once program is uploaded to Arduino, the Arduino will fetch the data from the URL, and display it on the OLED.
The refresh rate can be modified in the Arduino code from 15 seconds to 1 hour.