Giter VIP home page Giter VIP logo

scroll-daemon's Introduction

Go daemon for Pimoroni Scroll pHat

With this daemon, you can scroll strings on your Pimoroni Scroll pHat through command line or Telegram messages.

Install

$ go get -d github.com/meinside/scroll-daemon
$ go get github.com/meinside/scroll-daemon/cmd/scroll-cli

and build daemon:

$ cd $GOPATH/src/github.com/meinside/scroll-daemon
$ go build

Configuration

Config file

$ cd $GOPATH/src/github.com/meinside/scroll-daemon
$ cp config.json.sample config.json
$ vi config.json

and edit values to yours:

{
	"api_token": "0123456789:abcdefghijklmnopqrstuvwyz-x-0a1b2c3d4e",
	"local_port": 59991,
	"available_ids": [
		"telegram_id_1",
		"telegram_id_2",
		"telegram_id_3"
	],
	"phat_brightness": 5,
	"phat_scroll_delay": 75,
	"phat_rotate_180degrees": false,
	"telegram_monitor_interval": 1,
	"is_verbose": false
}

systemd

$ sudo cp systemd/scroll-daemon.service /lib/systemd/system/
$ sudo vi /lib/systemd/system/scroll-daemon.service

and edit User, Group, WorkingDirectory and ExecStart values.

It will launch automatically on boot with:

$ sudo systemctl enable scroll-daemon.service

and will start with:

$ sudo systemctl start scroll-daemon.service

Send messages/commands through Telegram

scroll_daemon_telegram

Send messages/commands through command line

# scroll current time
$ scroll-cli -t

# scroll ip addresses
$ scroll-cli -i

# scroll a long message
$ scroll-cli "show me the money $$$"
$ scroll-cli `uname -a`

License

MIT

scroll-daemon's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

scroll-daemon's Issues

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.