User:Thijshijsijsjss/Pen Plotting Panache/twitchplaysplotter: Difference between revisions

From XPUB & Lens-Based wiki
(Add 2024-02-12 pen plotting party setup image)
(Add a footnote on the 10 year anniversary of TwitchPlaysPokemon)
Line 1: Line 1:
[https://www.twitch.tv/twitchplaysplotter twitchplaysplotter] is a pen plotter project inspired by [https://en.wikipedia.org/wiki/Twitch_Plays_Pok%C3%A9mon TwitchPlaysPokemon] in which a pen plotter can be controlled through the chat of a [https://www.twitch.tv/ Twitch] livestream. This project, worked on by [[User:Vitrinekast|Rosa]], [[User:ØverLørd|Victor]] and [[User:Thijshijsijsjss|Thijs]], was initiated both to experiment with the collaborative and performative nature of plotters, and to facililate participation of pen plotter enthusiasts who were not able to make it to [https://hub.xpub.nl/chopchop/PEN-PLOTTING-PARTY/ the 2024-02-12 pen plotting party] physically.
[https://www.twitch.tv/twitchplaysplotter twitchplaysplotter] is a pen plotter project inspired by [https://en.wikipedia.org/wiki/Twitch_Plays_Pok%C3%A9mon TwitchPlaysPokemon] in which a pen plotter can be controlled through the chat of a [https://www.twitch.tv/ Twitch] livestream. This project, worked on by [[User:Vitrinekast|Rosa]], [[User:ØverLørd|Victor]] and [[User:Thijshijsijsjss|Thijs]], was initiated both to experiment with the collaborative and performative nature of plotters, and to facililate participation of pen plotter enthusiasts who were not able to make it to [https://hub.xpub.nl/chopchop/PEN-PLOTTING-PARTY/ the 2024-02-12 pen plotting party] physically<ref>Coincidentally, this Pen Plotting Party, the deput of twitchplaysplotter, coincides with the 10 year anniversary of TwitchPlaysPokemon!</ref>.


* A Git repository containing the project can be found [https://git.xpub.nl/vitrinekast/twitch-plays-plotter here]
* A Git repository containing the project can be found [https://git.xpub.nl/vitrinekast/twitch-plays-plotter here]

Revision as of 23:00, 15 February 2024

twitchplaysplotter is a pen plotter project inspired by TwitchPlaysPokemon in which a pen plotter can be controlled through the chat of a Twitch livestream. This project, worked on by Rosa, Victor and Thijs, was initiated both to experiment with the collaborative and performative nature of plotters, and to facililate participation of pen plotter enthusiasts who were not able to make it to the 2024-02-12 pen plotting party physically[1].

  • A Git repository containing the project can be found here
  • The twitch channel can be found here

This page will describe the project, provide some documentation and some imagery.

Imagery

A webcam pointed to an XY-plotter connected to a livestreaming laptop
The setup during the 2024-02-12 Pen Plotting Party

Setup

Node.js packages

serialport

We use the serialport package to communicate with the serialport the plotter is connected to:

const { SerialPort } = require('serialport')

const port = new SerialPort({
    path: '/dev/ttyUSB0',
    baudRate: 9600,
})

tmi.js

We use tmi.js for communication with the Twitch chat.

const tmi = require('tmi.js');

const client = new tmi.Client({
    // specify what channel to connect to:
    channels: ['twitchplaysplotter']
});
client.connect();

// function for receiving chat messages:
client.on('message', (channel, tags, message, self) => {

    // print name of chatter and their message
    console.log(`${tags['display-name']}: ${message}`);

});
  1. Coincidentally, this Pen Plotting Party, the deput of twitchplaysplotter, coincides with the 10 year anniversary of TwitchPlaysPokemon!