firefly.server.startFireflyServer

firefly.server.startFireflyServer(port=5000, frames_per_second=30, decimation_factor=1)[source]
Creates a global interpreter locked process to host a mock web-server

that can be accessed via localhost:<port>.

Parameters
  • port (int, optional) – port number to serve the .html files on, defaults to 5000

  • frames_per_second (int, optional) – enforced FPS for stream quality, used only if localhost:<port>/stream is accessed, defaults to 30

  • decimation_factor (int, optional) – factor to decimate data that is being passed through localhost:<port>/data_input, defaults to 1