https://github.com/c-base/station-announcer
Station information announcer
https://github.com/c-base/station-announcer
msgflo noflo station-announcer
Last synced: about 1 month ago
JSON representation
Station information announcer
- Host: GitHub
- URL: https://github.com/c-base/station-announcer
- Owner: c-base
- Created: 2017-03-22T15:23:42.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-02-26T16:48:51.000Z (over 7 years ago)
- Last Synced: 2026-03-30T09:11:32.994Z (2 months ago)
- Topics: msgflo, noflo, station-announcer
- Language: JavaScript
- Size: 128 KB
- Stars: 0
- Watchers: 12
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
c-base station announcer [](https://travis-ci.org/c-base/station-announcer) [](https://greenkeeper.io/) [](https://hub.docker.com/r/cbase/station-announcer/)
========================
[c-base](https://c-base.org) is a space station, and space stations have announcements. This project can produce them. Plenty of!
**[Open in Flowhub](http://app.flowhub.io/#github/c-base/station-announcer)**
## Examples of output
> Security advise. Due to intergalactic regulations, passengers are required to keep their antigravity generators with them at all times.
> Passengers to Berlin Brandenburg International. Please be adviced that the spaceport is unlikely to ever exist in this spacetime continuum
> Weyland Yutani launch 113 to Kapteyn B is leaving from clamp portal 32
> Passenger Adams proceed immediately to pod bay 41. You are delaying the shuttle
> Starship Titanic launch to Kepler 62 has been delayed due to death star sighting. Estimated departure in 1203 years
## Installation
You need Node.js. Install the project with:
```bash
$ npm install station-announcer -g
```
## Running
Once installed, you can run it with:
```bash
$ station-announcer-textonly
```
The announcements will be written to STDOUT.
If you're in c-base crew network you can only trigger these in audio with:
```bash
$ station-announcer
```
(Note: only triggers an announcement with 20% probability)
## Using with NoFlo
The main logic is provided in the `station-annoucer/Announcer` graph. This can be used as a subgraph and connected to external systems.
## Contributing data
The announcement templates live in `templates.yaml` file. Add new entries as needed. Templates use [Underscore.js template syntax](http://underscorejs.org/#template).
Variables can be defined in their appropriate data files in the `data` dir.