aidanwhelan / FaceStress

A wearable device for empirically detecting emotional stress.
0 stars 0 forks source link

Adafruit IO Plotting ERROR #6

Open aidanwhelan opened 4 years ago

aidanwhelan commented 4 years ago

Adafruit IO receives a comma-delimited package of data over Bluetooth, but is not able to plot both signals. Data is transmitted at the same rate, but only the first item of the package is plotted (currently PPM).

https://learn.adafruit.com/schluff-the-oshw-sleep-monitor/the-code

Possible fixes:

aidanwhelan commented 4 years ago

From sample plotting code, this is the format of a multi-channel package:

snprintf(buffer, 20, "%s,%s,%d,%d,%s,%d", str_temp_avg, str_hum_avg, full_avg, lux_avg, str_noise_avg, hrm_bpm); ble.print(buffer);

This is called after a sensor-reading loop, just like ours.

aidanwhelan commented 4 years ago

UPDATE: multiple plots should be recognized using the Feeds feature in Adafruit IO.

aidanwhelan commented 4 years ago

After going through the Adafruit tutorial, it looks like they use a specific approach that is a little more involved than our current approach.

What they use is a MacOS Catcher Script and a specific MacOS Bluefruit setup that allows us to create a custom AIO key and link the site to our local script/machine. From there, setting up individual feeds is done automatically.