This commit is contained in:
parent
865a38ccd1
commit
06fc8e5850
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -1455,7 +1455,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "servicepoint-simulator"
|
||||
version = "0.1.0"
|
||||
version = "0.2.0"
|
||||
dependencies = [
|
||||
"clap",
|
||||
"env_logger",
|
||||
|
|
10
Cargo.toml
10
Cargo.toml
|
@ -1,10 +1,16 @@
|
|||
[package]
|
||||
name = "servicepoint-simulator"
|
||||
version = "0.1.0"
|
||||
version = "0.2.0"
|
||||
edition = "2021"
|
||||
publish = false
|
||||
publish = true
|
||||
license = "GPL-3.0-or-later"
|
||||
keywords = ["cccb", "cccb-servicepoint", "cli"]
|
||||
description = "A simulator for the Service Point display."
|
||||
homepage = "https://git.berlin.ccc.de/servicepoint/servicepoint-simulator"
|
||||
repository = "https://git.berlin.ccc.de/servicepoint/servicepoint-simulator"
|
||||
readme = "README.md"
|
||||
rust-version = "1.80.0"
|
||||
resolver = "2"
|
||||
|
||||
[dependencies]
|
||||
# basics
|
||||
|
|
22
README.md
22
README.md
|
@ -1,14 +1,16 @@
|
|||
# servicepoint-simulator
|
||||
|
||||
An emulator for the CCCB airport display.
|
||||
A simulator for the CCCB airport display.
|
||||
|
||||

|
||||
|
||||
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.
|
||||
In CCCB, there is a big LED matrix screen you can send images to via UDP.
|
||||
This crate contains an application that can receive packages in the same binary format and display the contents to the
|
||||
user.
|
||||
|
||||
Use cases:
|
||||
- getting error messages for invalid packages
|
||||
|
||||
- getting error messages for invalid packages (instead of nothing happening on the display)
|
||||
- test your project when outside CCCB
|
||||
- test your project while other people are using the display
|
||||
|
||||
|
@ -17,9 +19,12 @@ The screenshot above shows the output of two example projects running in paralle
|
|||
|
||||
## Running
|
||||
|
||||
With cargo installed: `cargo install servicepoint-simulator`
|
||||
|
||||
With nix flakes: `nix run github:kaesaecracker/servicepoint-simulator`
|
||||
|
||||
Without nix: check out this repository and use `cargo run --release`.
|
||||
You can also check out this repository and use `cargo run --release`.
|
||||
Make sure to run a release build, because a debug build _way_ slower.
|
||||
|
||||
## Command line arguments
|
||||
|
||||
|
@ -44,6 +49,13 @@ Because this program renders to an RGB pixel buffer, you can enjoy the following
|
|||
- 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)
|
||||
|
||||
## Known differences
|
||||
|
||||
- The font used for displaying UTF-8 text is your default system monospace font, rendered to 8x8 pixels
|
||||
- The brightness levels will look linear in the simulator
|
||||
- Some commands will be executed in part on the real display and then produce an error (in a console you cannot see)
|
||||
while the simulator refuses to execute the whole command
|
||||
|
||||
## Contributing
|
||||
|
||||
Contributions are accepted in any form (issues, documentation, feature requests, code, reviews, ...).
|
||||
|
|
Loading…
Reference in a new issue