2024-10-13 13:14:25 +02:00
# servicepoint-simulator
2024-05-08 13:41:48 +02:00
An emulator for the CCCB airport display.
2024-05-11 23:44:18 +02:00
![example render ](example_render.png )
2024-05-16 17:55:14 +02:00
In CCCB, there is a big LED matrix screen you can send images to via UDP.
This project aims to build a working an application that can receive packages in the same binary format and display the contents to the user.
2024-05-08 13:41:48 +02:00
Use cases:
- getting error messages for invalid packages
2024-05-16 17:55:14 +02:00
- test your project when outside CCCB
2024-05-08 13:41:48 +02:00
- test your project while other people are using the display
2024-05-10 18:24:26 +02:00
2024-06-20 17:49:46 +02:00
Uses the [servicepoint ](https://github.com/cccb/servicepoint ) library for reading the packets.
2024-05-11 23:44:18 +02:00
The screenshot above shows the output of two example projects running in parallel (game_of_life and random_brightness).
2024-05-16 17:55:14 +02:00
## Running
2024-11-07 23:24:41 +01:00
With nix flakes: `nix run github:kaesaecracker/servicepoint-simulator`
Without nix: check out this repository and use `cargo run --release` .
2024-05-16 17:55:14 +02:00
## Command line arguments
2024-10-13 13:14:25 +02:00
The application binds to `0.0.0.0:2342` by default (`./servicepoint-simulator --bind host:port` to change this).
2024-05-16 17:55:14 +02:00
See [env_logger ](https://docs.rs/env_logger/latest/env_logger/ ) to configure logging.
Because this program renders to an RGB pixel buffer, you can enjoy the following additional features not available on the real display:
2024-10-13 13:14:25 +02:00
- enable or disable the empty space between tile rows (`./servicepoint-simulator --spacers` to enable)
- render pixels in red, green, blue or a combination of the three (`./servicepoint-simulator -rgb` for white pixels)
2024-05-16 17:55:14 +02:00
## Contributing
Contributions are accepted in any form (issues, documentation, feature requests, code, reviews, ...).
All creatures welcome.
2024-05-10 18:24:26 +02:00
## Legal stuff
The included font is https://int10h.org/oldschool-pc-fonts/fontlist/font?ibm_bios (included in the download from https://int10h.org/oldschool-pc-fonts/download/). The font is CC BY-SA 4.0.
For everything else see the LICENSE file.