api_csv_export_for_grafana

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revisionBoth sides next revision
api_csv_export_for_grafana [01.09.2020 15:52] Pascal Suterapi_csv_export_for_grafana [01.09.2020 16:01] Pascal Suter
Line 54: Line 54:
 2020-09-01T07:45:14+02:00,707.3,741,0 2020-09-01T07:45:14+02:00,707.3,741,0
 </code> </code>
 +
 +to specify multiple targets the ''target''parameter has to be formatted as an array: 
 +
 +<code>
 +curl -s "http://myserver/csv.php?target[]=time,powermeter.phase1.watt&target[]=powermeter.phase2.watt&target[]=powermeter.phase3.watt&from=1598939104&until=1598939114"
 +</code>
 +would produce the same output as the above query
  
 this makes it much easier for me to process the data afterwards in libre office calc or excel or similar tools.  this makes it much easier for me to process the data afterwards in libre office calc or excel or similar tools. 
  • api_csv_export_for_grafana.txt
  • Last modified: 01.09.2020 16:02
  • by Pascal Suter