dcc-go

command module
v0.0.0-...-d0d8caf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2023 License: GPL-2.0 Imports: 14 Imported by: 0

README

dcc-go

A DCC (Digital Command Control) Throttle to control model trains. DCC-GO can be installed on a computer like the raspberry pi to talk to an Arduino running DCC-EX CommandStation or DCCPlusPlus BaseStation

DCC-GO is written in Golang and was inspired by DCCute.

This repo contains:

Find Arduino USB device

ls /dev |egrep 'ttyACM|ttyUSB'
ttyACM0
# found /dev/ttyACM0

Installation

Install binary and run

# install
go get github.com/dmowcomber/dcc-go

# run with default address 3 and default device /dev/ttyACM0
dcc-go

# run with overridden address and usb device
dcc-go -address=3 -device=/dev/ttyACM0

Build docker image and run using docker-compose or docker

docker-compose
docker-compose up -d

After making changes or pulling latest you'll need to rebuild and restart the service:

docker-compose build
docker-compose kill
docker-compose rm -f
docker-compose up -d
docker
docker build . -t github.com/dmowcomber/dcc-go
docker run -p 8080:8080 --device /dev/ttyACM0 github.com/dmowcomber/dcc-go

Screenshot

GitHub Logo

WARNING

dcc-go is alpha quality software at this time. Although it works, it has not been tested with any commercial DCC system. It has only been tested with Raspberry Pi, DCC++ or DCC-EX on an Arduino Uno, and an ESU Loksound decoder. The author of dcc-go claims no responsibility or liability for any damage to your system, equipment or trains.

USE AT YOUR OWN RISK.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
ui
api
cli

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL