Skip to content

Latest commit

 

History

History
76 lines (59 loc) · 3.27 KB

twitch_followers.md

File metadata and controls

76 lines (59 loc) · 3.27 KB

Lovely Sim Racing

Twitch Followers

Workflow script for the Ulanzi Pixel Clock, based on the n8n.io automation software and Awtrix Light.


Display your Twitch Followers on your Ulanzi Pixel Clock

Display

Template: Follower Count Rounded down to three significant figures

Example: 43.42K

Steps

Step 1: Upload Icon

  1. Navigate to your Ulanzi Pixel Clock admin screen (usually 192.168.1.128)
  2. Select the Icons Tab
  3. Type 20643 into the first field named Lametric Icon ID
  4. Click Download

Step 2: Download the Twitch Followers workflow

  1. Visit the Latest Releases section and download the Twitch_Followers.json file to your computer

Step 3: Import Workflow

  1. In your n8n automation server, create a new workflow
  2. Import from File and select the downloaded Workflow

Step 4: Fetch Data

  1. Follow the below steps to get your Twitch API Keys

    1. Sign in to the Twitch Developer Console
    2. Click Register Your Application
    3. Fill in the following information:
      1. Name: Type a name for your app
      2. OAuth Redirect URLs: http://localhost:5678/rest/oauth2-credential/callback
      3. Category: Other
      4. Hit Create
    4. Back on the Twitch Developer Console, click on Manage, next to your newly created app
    5. Copy your Client ID somewhere temporarily
    6. Click on New Secret
    7. Copy your Client Secret somewhere temporarily
  2. Double-click and open the second step of the workflow, named Fetch Data

  3. Under Authentication, select Generic Credential Type

  4. Under Generic Auth Type, select OAuth2 API

  5. Under Credential for OAuth2 API, select Create New Credential

  6. In the pop up screen, enter the following:

    1. Grant Type: Client Credentials
    2. Access Token URL: https://id.twitch.tv/oauth2/token
    3. Client ID: YOUR CLIENT ID
    4. Client Secret: YOUR CLIENT SECRET
    5. Scope: moderator:read:followers
    6. Authentication: Body
    7. Hit Connect my account
    8. In the Twitch Pop-up window, make sure you are logged into the correct Twitch Account (if you have mutliple accounts), then click Authorize App
  7. Back on the Fetch Data screen

    1. Under Query Parameters, replace the XXXXX with your Twitch Broadcaster ID (Find your Twitch ID)
    2. Under Header Parameters, Replace the XXXXX with your YOUR CLIENT ID

Step 5: Send to Clock

  1. On the last step named Send to Clock, make sure the IP address in the URL field is correct (usually 192.168.1.128)
  2. On the Workflow canvas, click on the button Execute Workflow

Step 6: Set to Active

Set the workflow to "Active", to keep it running in the background

Having trouble?

Visit the Lovely Discord and perhaps I can help you there.