https://github.com/pmiddend/simplon-stub
Simplon API Mock
https://github.com/pmiddend/simplon-stub
eiger haskell simplon
Last synced: 4 months ago
JSON representation
Simplon API Mock
- Host: GitHub
- URL: https://github.com/pmiddend/simplon-stub
- Owner: pmiddend
- License: agpl-3.0
- Created: 2024-06-28T15:01:56.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-05-15T11:56:03.000Z (about 1 year ago)
- Last Synced: 2025-10-11T19:42:32.383Z (8 months ago)
- Topics: eiger, haskell, simplon
- Language: Haskell
- Homepage:
- Size: 58.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# simplon-stub-hs

A program mimicking the Dectris' detector's Simplon API, reading a H5 file and outputting it via ZeroMQ.
## Usage
Build it, either with `nix build` or via `cabal` and then run it via:
```
simplon-stub --input-h5-file ~/some-file.nx5 --zmq-bind-address tcp://*:9999
```
It will then listen on port 8080 for HTTP requests, and 9999 for ZMQ connections.
*Note*: If you're trying to use HDF5 files written by, for example, Eiger detectors, you will need to have the "bitshuffle" HDF5 plugin in your `HDF5_PLUGIN_PATH`. The executable created via `nix build` will already include this, but your manual `cabal` call might not.