File Exchange

image thumbnail

influxdb-matlab

version 0.1.0 (18.3 KB) by ESala
MATLAB client for InfluxDB

13 Downloads

Updated 17 Jan 2021

From GitHub

View license on GitHub

This is a MATLAB client library for interacting with InfluxDB.

The library has been tested with InfluxDB 1.5 and MATLAB R2018a.

Earlier versions of InfluxDB or MATLAB may also work but have not been tested.

Cite As

ESala (2021). influxdb-matlab (https://github.com/EnricSala/influxdb-matlab), GitHub. Retrieved .

Comments and Ratings (10)

Peter Gamma

MATLAB client for InfluxDB could be really helpful to handle physiological sensor data in Matlab.
There is now Matlab support for Bluetooth low energy sensors like heart rate sensors or foot pod sensors:
https://ch.mathworks.com/help/matlab/import_export/collect-data-from-fitness-monitoring-devices.html
Unfortunately, there is not ANT+ support for Matlab. MATLAB client for InfluxDB, MQQT in combination with InfluxDB and Grafana, and the Linux Pinephone project is a solution which is superior the Bluetooth low energy solution of Matlab, since it does not need a direct pairing of the sensors to a PC, but can be routed over MQQT:
https://www.thisisant.com/forum/viewthread/7372/P15
This makes this solution more practical for mobile applications.

Peter Gamma

There is a new solution available to stream ANT+ sensor data from Garmin watches to Matlab (trough an MQTT brocker) and from there to MATLAB client for InfluxDB
https://forum.bitalino.com/viewtopic.php?f=19&p=2170&sid=9f8579abed6fb1eb5eee921f59d65a7b#p2170
As long as there is no android application available which sends sensor data to an MQTT brocker and from there to Matlab, integrate the example code from Reto in a Linux Pine Phone
https://www.thisisant.com/forum/viewthread/7362/
Also the Bitalino support team commented the idea regarding the InfluxDB a very promising solution to organize data acquired and processed from a multi-sensor setup (see Bitalino Forum)

Peter Gamma

Peter Gamma

Bluetooth smart sensors might be easier to stream into Matlab than ANT+ sensors:
https://www.mathworks.com/matlabcentral/answers/142677-capturing-heart-rate-from-usb-ant-dongle-and-chest-strap

What is missing are examples in Matlab for instance for the POLAR OH1 sensor (BLE & ANT+) as currently potentially the most accurate optical heart rate sensor and the Stryd foot pod (BLE & ANT+) as currently the most accurate foot pod:

https://www.mathworks.com/help/comm/examples/modeling-of-ble-devices-with-heart-rate-profile.html

Developers welcome.

Sylvain

I am trying this tool to generate data for Influx, to that I can read them with another tool like Grafana. I have noted the run command "show database" provide no answers.

Sylvain

Peter Gamma

To solve the problem to stream ANT+ sensor data to the MATLAB client for InfluxDBMatlab could be solved by:
1. Contributing to the GITHUB project "What-happened-to-livetrack.io Is it possible to bring livetrack.io back to live again?"
https://github.com/PeterGamma/What-happened-to-livetrack.io-
2. Modifying the example "virtual power" for bicycle turbo trainers to stream to the MATLAB client for InfluxDBMatlab :
https://github.com/dhague/vpower
3. IoT streaming with a GARMIN watch and adding Lab Streaming Layer (LSL):
https://www.youtube.com/watch?v=_39eKRNK3UU&t=1s

Peter Gamma

This MATLAB client for InfluxDB could be helpful to stream ANT+ sensor data from Garmin watches to Matlab. Garmin watches have excellent optical heart rate sensors. Unfortunately, nobody has solved the problem to stream ANT+ sensor data to Matlab to this date. That is a pity, since the optical heart rate sensor of GARMIN watches are accurate enough also for scientific studies. And they are comfortable to wear and can aquire data up to 24 h. This could be helpful for long-term meditation studies with multiple subjects, which require low-cost devices.

https://www.thisisant.com/forum/viewthread/7074

https://forums.garmin.com/developer/connect-iq/f/discussion/8077/sending-sensors-data-to-pc/974001?focus=true

https://www.youtube.com/watch?v=omn7y3TIsGc&t=110s

Peter Gamma

MATLAB Release Compatibility
Created with R2018a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!