Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add STREAM variables #19

Merged
merged 19 commits into from
Dec 23, 2022
Merged

Add STREAM variables #19

merged 19 commits into from
Dec 23, 2022

Conversation

jenslys
Copy link
Owner

@jenslys jenslys commented Dec 7, 2022

  • Made a API wrapper as a helper to fetch the stream title and game https://github.com/jenslys/twitch-api-wrapper
    • Only downside of this is that the API returns nothing if the streamer is offline
  • Uses https://stedolan.github.io/jq/ to fetch the json values, so this needs to be installed to be on existing servers. sudo apt-get install jq
  • adds STREAM_TITLE and STREAM_GAME as variables to be used in STREAM_TITLE for example
    • API_CALLS needs to be set to TRUE before using the variables

Related issue/request: #17


Todo:

  • Add jq to install script, docker and readme
  • Testing

@jenslys jenslys added the type: enhancement New feature label Dec 7, 2022
@jenslys jenslys changed the title [WIP] added api endpoint to fetch streamtitle and parse it [WIP] Add streamtitle variable Dec 7, 2022
@jenslys jenslys changed the title [WIP] Add streamtitle variable [WIP] Add STREAM variables Dec 8, 2022
It seems that the api dosent return a result on each call, so added a retry of 5
@jenslys jenslys self-assigned this Dec 20, 2022
@jenslys jenslys marked this pull request as ready for review December 23, 2022 23:21
@jenslys
Copy link
Owner Author

jenslys commented Dec 23, 2022

Works from the testing i have done.
closes #17

Will clean everything up once I move all variables to a separate config file.

@jenslys jenslys changed the title [WIP] Add STREAM variables Add STREAM variables Dec 23, 2022
@jenslys jenslys merged commit 3f1be9e into master Dec 23, 2022
@jenslys jenslys deleted the feat/streamTitle branch December 23, 2022 23:25
@Tritri89
Copy link

Working as expected ! Good work @jenslys thank you !

@jenslys jenslys mentioned this pull request Dec 31, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants