An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# simplon-stub-hs

![Build](https://github.com/pmiddend/simplon-stub/actions/workflows/build-with-nix.yaml/badge.svg)

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.