Update README.md
This commit is contained in:
11
README.md
11
README.md
@@ -1,12 +1,13 @@
|
||||
# Node-RED_Twitch_EventSub
|
||||
Node-RED flow to subscribe, receive and respond to Twitch webhook
|
||||
<img src="https://github.com/n3odym3/Node-RED_Twitch_EventSub/blob/main/pictures/Dashboard.png" >
|
||||
<img src="https://github.com/n3odym3/Node-RED_Twitch_EventSub/blob/main/pictures/EventSubFlow.PNG" >
|
||||
|
||||
## Note
|
||||
- My [Twitch channel](https://www.twitch.tv/ioodyme)
|
||||
- To [support me](https://paypal.me/ioodyme)
|
||||
- It is **HIGHLY** recommended to [secure](https://nodered.org/docs/user-guide/runtime/securing-node-red#editor--admin-api-security) your Node-RED flow (your server will be exposed to the internet) !!
|
||||
- [EventSub doc](https://dev.twitch.tv/docs/eventsub)
|
||||
- This Flow is compatible with the "regular" [Twitch API](https://dev.twitch.tv/docs/api/reference) and the following [flow](https://github.com/n3odym3/Twitch-API_Node-RED)
|
||||
- This Flow is compatible with the [Twitch API](https://dev.twitch.tv/docs/api/reference)
|
||||
|
||||
## Prerequisites
|
||||
- [Node-RED](https://nodered.org/) running on port 443 with [HTTPS](https://nodered.org/docs/user-guide/runtime/securing-node-red#enabling-https-access) enabled OR a [ngrok auth token](https://dashboard.ngrok.com/get-started/your-authtoken)
|
||||
@@ -34,7 +35,7 @@ Node-RED flow to subscribe, receive and respond to Twitch webhook
|
||||
- Add the following URL using your domain name or ngrok tunnel URL
|
||||
<img src="https://github.com/n3odym3/Node-RED_Twitch_EventSub/blob/main/pictures/Redirect.png" width="80%">
|
||||
|
||||
Rem : As your Node-RED should be secured with http basic auth the URI are **https://admin:password@xxxxxxxxx.eu.ngrok.io** or **https://admin:password@your.domain.name** with "admin" and "password" corresponding to you Node-RED auth.
|
||||
*Note : As your Node-RED should be secured with http basic auth the URI are **https://admin:password@xxxxxxxxx.eu.ngrok.io** or **https://admin:password@your.domain.name** with "admin" and "password" corresponding to you Node-RED auth.*
|
||||
|
||||
## Node-RED Setup
|
||||
- [Import](https://nodered.org/docs/user-guide/editor/workspace/import-export) the [flow](https://github.com/n3odym3/Node-RED_Twitch_EventSub/blob/main/EventSub-Twitch-Flow.json)
|
||||
@@ -46,10 +47,12 @@ Rem : As your Node-RED should be secured with http basic auth the URI are **http
|
||||
- Sub URI : your Node-RED server name or ngrok tunnel URL **WITHOUT** "HTTPS://" (Ex : your.domain.name or xxxxxxxxxxx.ngrok.io and admin:password@your.domain.name or admin:password@xxxxxxxxxxx.ngrok.io for a properly secured server)
|
||||
- [Scopes](https://dev.twitch.tv/docs/authentication#scopes) (space-separated)
|
||||
<img src="https://github.com/n3odym3/Node-RED_Twitch_EventSub/blob/main/pictures/Settings.png" width="50%">
|
||||
|
||||
- Go to the Node-RED dashboard (https://your.domain.name/ui or https://xxxxxxxxxx.ngrok.io/ui)
|
||||
- Generate an APP token and USER token by clicking on Auhtorize APP and Authorize USER (will requires to loggin with your Twitch account and accept the scopes)
|
||||
- Optional : you can test the validity and expiration of the Token using "Validate" nodes on the Node-RED editor
|
||||
- Clic on the "Get channel ID" inject node
|
||||
- Clic on the "Get channel ID" inject node
|
||||
|
||||
<img src="https://github.com/n3odym3/Node-RED_Twitch_EventSub/blob/main/pictures/Authorizations.png" width="25%">
|
||||
|
||||
## Subscribe
|
||||
|
||||
Reference in New Issue
Block a user