All Projects → carlosazaustre → twitch-chat-raspi-leds

carlosazaustre / twitch-chat-raspi-leds

Licence: MIT license
Let to Twitch chat users to interact with RaspberryPi LEDs

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to twitch-chat-raspi-leds

Twire
Twire is an alternative and open source Twitch client for Android
Stars: ✭ 204 (+1175%)
Mutual labels:  twitch
Gatsby Remark Embedder
Gatsby Remark plugin to embed well known services by their URL.
Stars: ✭ 245 (+1431.25%)
Mutual labels:  twitch
extensions-js
An Easier way to build Twitch Extensions using this JavaScript library for interfacing with Muxy's extensions backend.
Stars: ✭ 26 (+62.5%)
Mutual labels:  twitch
Awesome Live Coding Streams
Stars: ✭ 216 (+1250%)
Mutual labels:  twitch
Twitch
Interact with Twitch's API, chat, PubSub and subscribe to WebHooks.
Stars: ✭ 237 (+1381.25%)
Mutual labels:  twitch
Cracking The Coding Interview Rust
Cracking the Coding Interview problem solutions in Rust
Stars: ✭ 246 (+1437.5%)
Mutual labels:  twitch
Twitch Dl
CLI tool for downloading videos from Twitch.
Stars: ✭ 194 (+1112.5%)
Mutual labels:  twitch
pajbot2
pajbot in go
Stars: ✭ 79 (+393.75%)
Mutual labels:  twitch
Twitch Hls Adblock
Block advertisements that are inserted in Twitch streams directly.
Stars: ✭ 242 (+1412.5%)
Mutual labels:  twitch
CounterStrike-GlobalOffensive-LiveStat-for-OBS-Studio
Showing you LIVEstats of CS:GO in your Stream like OBS-Studio while playing/streaming.
Stars: ✭ 24 (+50%)
Mutual labels:  twitch
All In One Customized Adblock List
An all-in-one adblock list that thoroughly blocks trackers, popup ads, ads, unwanted cookies, fake news, cookie warning messages, typosquatters, unwanted comment sections, crypto-coin mining, YouTube clutter, Twitter guff and social network hassles.
Stars: ✭ 217 (+1256.25%)
Mutual labels:  twitch
Twitch Js
A community-centric, community-supported version of tmi.js
Stars: ✭ 225 (+1306.25%)
Mutual labels:  twitch
elm-twitch-chat
Elm powered Twitch chat using WebSockets
Stars: ✭ 14 (-12.5%)
Mutual labels:  twitch
Twitch4j
Modular Async/Sync/Reactive Twitch API Client / IRC Client
Stars: ✭ 209 (+1206.25%)
Mutual labels:  twitch
twitchtube
Twitch YouTube bot. Automatically make video compilations of the most viewed Twitch clips and upload them to YouTube using Python 3.
Stars: ✭ 398 (+2387.5%)
Mutual labels:  twitch
Pajbot
Twitch moderation bot
Stars: ✭ 198 (+1137.5%)
Mutual labels:  twitch
Streamlabs Obs
Free and open source streaming software built on OBS and Electron.
Stars: ✭ 3,473 (+21606.25%)
Mutual labels:  twitch
streamcord
A Discord bot that interacts with the popular streaming service Twitch.tv
Stars: ✭ 83 (+418.75%)
Mutual labels:  twitch
TwitchMarkovChain
Twitch Bot for generating messages based on what it learned from chat
Stars: ✭ 87 (+443.75%)
Mutual labels:  twitch
siren
Telegram bot for webcasts alerts
Stars: ✭ 40 (+150%)
Mutual labels:  twitch

twitch-chat-leds

Control Raspberry Pi LEDs connected to GPIO via Twitch Chat.

Tested on Raspberry Pi v2 Model B (2012, ARMv6)

YouTube Video Tutorial

https://youtu.be/AbuJbDUK2jI

JavaScript in Raspberry Pi

Installation

Clone this repository and change the following values in config/index.js:

module.exports = {
  options: {
    channels: ['YOUR_TWITCH_CHANNEL'],
  },
}

Also, you can change the LEDs positions in your Raspberry Pi GPIO pines:

{
  devices: [
    { name: 'led0', driver: 'led', pin: 12 }, //GPIO pin #18
    { name: 'led1', driver: 'led', pin: 16 }, //GPIO pin #23
    { name: 'led2', driver: 'led', pin: 18 }, //GPIO pin #24
    { name: 'led3', driver: 'led', pin: 11 }, //GPIO pin #17
    { name: 'led4', driver: 'led', pin: 15 }, //GPIO pin #22
  ]
}

Run the program in your Raspberry. You will need to connect via SSH or using a Keyboard/Monitor plugged in the Raspberry.

I highly recommend to use a upstart service o pm2 service to run the programa inside the Raspberry.

pi@raspberrypi:~$ npm install -g pm2
$ p2m start twitch-chat-raspi-leds/index.js --name 'twitch-leds'

pi@raspberrypi:~$ pm2 start twitch-chat-raspi-leds --name 'twitch-leds'
[PM2] Spawning PM2 daemon with pm2_home=/home/pi/.pm2
[PM2] PM2 Successfully daemonized
[PM2] Starting /home/pi/_test-leds in fork_mode (1 instance)
[PM2] Done.
┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐
│ id │ name               │ mode     │ ↺    │ status    │ cpu      │ memory   │
├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤
│ 0  │ twitch-leds        │ fork     │ 0    │ online    │ 0%       │ 21.7mb   │
└────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘

Usage

In your twitch chat, write down the following command:

> !led 11111

It will turn on the 5 LEDs connected in your Raspberry PI

> !led 0
> !led 00000

It will turn off the all LEDs.

> !led 10001

It will turn on the first and last LED. Play with them!

License

MIT © Carlos Azaustre

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].