Skip to content

Instantly share code, notes, and snippets.

@makcuk

makcuk/suntrio.conf

Created Dec 29, 2019
Embed
What would you like to do?
SAJ SunTrio fetch data using Telegraf
[[inputs.http]]
## One or more URLs from which to read formatted metrics
urls = [
"http://<ip_of_suntrio>/status/status.php"
]
## Optional HTTP headers
headers = {"Authorization" = "Basic <auth_token_use_chrome_dev_tools_to_get_it>="}
data_format = "csv"
csv_header_row_count = 0
csv_delimiter = ","
csv_column_names = ["count","tot_gen","running_time", "today_gen","today_running","pv1_dc_volt","pv1_dc_current","pv2_dc_volt","pv2_dc_current","pv3_dc_volt","pv3_dc_current","pv1_str_curr1","pv1_str_curr2","pv1_str_curr3","pv1_str_curr4","pv2_str_curr1","pv2_str_curr2","pv2_str_curr3","pv2_str_curr4","pv3_str_curr1","pv3_str_curr2","pv3_str_curr3","pv3_str_curr4","grid_power","grid_freq","line1_volt","line1_curr","line2_volt","line2_curr","line3_volt","line3_curr","bus_dc_volt","unit_temp","co2_emission","end"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment