Science Event Dashboard

This example largely follows the instructions from the Plotly Dash documentation.

This application demonstrates how to create a simple dashboard for visualizing NOS-T data in real time. It subscribes to the scienceEventPublisher.py application and displays the science utility separated by location.

scienceEventDashboard.on_message(method, properties, body)

Callback to process an incoming message and then run the update_fig function.

Parameters:
  • ch – The channel object.

  • method – The method object.

  • properties – The properties object.

  • body – The message body.

scienceEventDashboard.update_fig()

Updates the dashboard when new data is received.

scienceEventDashboard.start_consumer()

Start consuming messages in a separate thread

Below is what the dashboard will display in a browser.

../../../_images/scienceDash.png