Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/meinside/scroll-daemon

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/meinside/scroll-daemon

  • v0.0.1
  • Source
  • Go
  • Socket score

Version published
Created
Source

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

FAQs

Package last updated on 29 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc