Coder Social home page Coder Social logo

metro-train-screens's Introduction

A3 Metro Train Screen

Getting Started

  • Install Node.js
  • Install dependencies
npm install --global gulp-cli
npm install -d
  • Launch gulp to build css file
gulp
  • Launch server. --dummy option will switch stations in a loop. Normally it is enough to test.
node BE/server.js --dummy

Serial port emulation

In order to emulate the serial port and send custom DTMF sequences, follow the manual:

  1. Open a new terminal window and run the following command to allocate a pseudo-terminal.

    socat -d -d pty,raw,echo=0 pty,raw,echo=0

    You will get something like this:

    2017/01/28 16:43:09 socat[13278] N PTY is /dev/pts/20
    2017/01/28 16:43:09 socat[13278] N PTY is /dev/pts/21
    2017/01/28 16:43:09 socat[13278] N starting data transfer loop with FDs [5,5] and [7,7]
  2. Launch server with --port option:

    node BE/server.js --port=/dev/pts/20
  3. Send DTMF sequences to the second PTY port:

    echo 0108 > /dev/pts/21

metro-train-screens's People

Contributors

veikus avatar silverfire avatar

Stargazers

SupinePandora43 avatar Oleh Kuchuk avatar Ігор Кушніренко avatar Vitalii Saienko avatar Myroslav Kiurchev avatar Serge Smalko avatar Olexandr Shalakhin avatar Olena Sovyn avatar Volodymyr Kyrylov avatar Misha Mykolyshyn avatar Andrii Vasyliev avatar  avatar Vadym Borodin avatar chornoslyv avatar Viktor avatar

Watchers

Volodymyr Kuriy avatar  avatar James Cloos avatar Alex Kolodko avatar Serge Smalko avatar Danylo Mylian avatar Oleksandr Ponomarov avatar

metro-train-screens's Issues

Отображать текущее время на дисплее

На Facebook от многих комментаторов поступает просьба добавить отображение времени.

Насколько я понял из ответов, есть какая-то блокирующая проблема, связанная с синхронизацией времени на компьютере в поезде, верно?

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.