Skip to content

MattGrayYes/MastoDot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mastodot - Mastodon on a Dot Matrix Printer

This is being made as an installation for Electromagnetic Field Festival

Usage

You'll need to install the dependencies first:

npm install

Then compile and run the two programs at the same time in two terminals:

npm run mastodot
npm run mastoprint

How it Works

  • Mastodot
    • connects to the mastodon streaming api
    • saves all received toot objects as json files in the out folder.
  • Mastoprint
    • connects to the printer
    • goes through each toot json in the out folder
    • formats the toot with ESC/P commands
    • sends the formatted toot to the printer
    • moves the now-printed toot json file to the done folder

These have been separated as the toots can come in way faster than the printer can print them.

We're accessing the printer directly with ESC/P -- It doesn't have a queue. If you try to print while something else is trying to print, it errors.

So Mastoprint acts as the print queue.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%