open-audiovisual
Search GitHub

oav-p5 reference · Loading options

telemetry#

optionoav-p5
?oav_telemetry=off | on

Whether the on-screen controller may send one anonymous page-load count to the project: off or on.

In oav-p5 it is off. With on, when the 🎹 panel builds the on-screen controller, @openav/midi sends one anonymous hit per page load to the project's Google Analytics, so the project can see where its controllers end up. The @openav/midi README (section Telemetry) lists exactly what it sends: the kind of embed, the profile, the page's origin (never the path, query or title) and the version. Nothing anyone plays is sent and no cookie is set.

Type
String
Values
off | on
default
off

Only on turns it on.

Notes

  • According to that README nothing is sent from localhost, local network addresses, file:// or openaudiovisual.com itself, or when the browser sends Do Not Track or Global Privacy Control.
  • Set it before oav-p5 loads. window.OAV_P5 = { telemetry: … }; above the loader line wins, then ?oav_telemetry=… on the page address, then ?telemetry=… on the script's own URL. Values in window.OAV_P5 are turned into text, so write 'off', not false. On OpenProcessing the page address takes ?sketch_oav_telemetry=… (the project's README says OpenProcessing forwards it to the sketch).

Examples

jsOpenProcessing ↗
window.OAV_P5 = { telemetry: 'on' };

function setup() {
  createCanvas(400, 300);
}

function draw() {
  background(20);
  fill(255);
  text('telemetry: ' + OAVp5.options.telemetry, 20, 30);   // nothing visible changes
}
Nothing visible changes. The option is passed to the on-screen controller when the 🎹 panel first opens.

To be confirmed

The hit itself was not observed here: the example runs on localhost, where nothing is sent. What it sends is as stated in the @openav/midi README.

Related

  • panel Whether the 🎹 panel starts shut, open, or does not exist: closed, open or off.
  • profile Which controller the on-screen 🎹 shows, by profile id such as akai-lpd8; by default it follows the one that is plugged in.

p5/oav-p5.js, line 129

↑ Back to top · All names