Giter Club home page Giter Club logo

nozomu-printer's Introduction

nozomu-printer

This script prints to a printer using the serial port of a Raspberry Pi, and plays a sound when printing.

Set up

  1. Download the files from GitHub by clicking on the green "Code" button, and "Download ZIP"
  2. Extract the ZIP, and copy start-printing, printer.service and printer.config to the home folder on your Pi*
  3. In your terminal, run sudo cp printer.service /etc/systemd/printer.service

(*) The home folder can be accessed by running cd ~. On a default Pi install, it will probably be in /home/pi.

Configuration

Open the printer.config file in a text editor. The file contains options, in the format option name: option value.

Change the text-path and sound-path options to point at your files. You can use ~ to refer to the home folder, e.g. ~/mysounds/sound.wav.

Change the baud rate to match the rate of your printer.

Usage

Simply open your Terminal, go to your home folder (cd ~) and run ./start-printing.

Things to remember

  • The text file should be a plain .txt
  • The printer will print one line of the text file at a time. So format it so that each paragraph is entirely on one line.
  • Make sure the sound file is a valid WAV file. You can export it as WAV for example in Audacity (File > Export > Export as WAV).

nozomu-printer's People

Contributors

jakubfiala avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.