Skip to content

Reference Script Functions Heartrate

Kristopher Barrantes edited this page Nov 5, 2026 · 2 revisions

Heart rate script functions

Also on the Cuebot Docs site.

Functions for C# (Cb.Call) and Python (a cb method each, or cb.call). See Script functions for how to use them.

A Run Python code step in the action editor

heartrate.get

Gives you the newest heart rate reading from your heart rate monitor (through Pulsoid or HypeRate).

Value In Python What to put in
source source Optional. Where from: "Pulsoid", "HypeRate" or "Latest" (the newest from either). Default "Latest".

Gives back: bpm (beats per minute), source and time of the reading. null when no reading has come in yet.

C#

var answer = await Cb.Call("heartrate.get", new { source = "Latest" });

Python

answer = cb.heartrate_get(source="Latest")

Clone this wiki locally