Skip to content

Instantly share code, notes, and snippets.

@markuman
Created July 23, 2015 17:02
Show Gist options
  • Save markuman/121299a27c2099bf3f99 to your computer and use it in GitHub Desktop.
Save markuman/121299a27c2099bf3f99 to your computer and use it in GitHub Desktop.
quick&dirty influxdb for GNU Octave and Matlab
function ret = influxquery(QUERY, URL = "http://localhost:8086/query")
% ugly part
command=['curl --silent -G ' URL ' --data-urlencode "db=mydb" --data-urlencode "q=' QUERY '"'];
[output, ret] = system(command);
% requires jsonlab http://iso2mesh.sf.net/cgi-bin/index.cgi?jsonlab
ret = loadjson(ret);
endfunction
@PackElend
Copy link

Is this functioning in Matlab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment