Skip to content

Utility Modules

Matteo Golin edited this page Nov 20, 2022 · 3 revisions

storage

set_resolution

Sets the number of historical data points that should be stored in the local storage buffer. By default, this number is 10.

Parameters:

  • new_res (integer) The number of historical data points that should be stored.

Returns: Nothing.

read_telemetry

Parameters: None.

Returns: The latest telemetry data stored in the buffer.

write_telemetry

Writes the latest telemetry data received from the WebSocket to the local storage buffer. When the buffer is full, the oldest piece of data is removed to make room for the newest data.

Parameters:

  • recent_data (JSON object) The most recent telemetry data received from the WebSocket.

Returns: Nothing.

clear_telemetry

Clears the buffer of telemetry data in local storage.

Parameters: Nothing.

Returns: Nothing.

chart-options

Clone this wiki locally