Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
app-notes:status-sdk-influxdb [2024/01/29 13:00] – [status2influx script] dodenhoeftapp-notes:status-sdk-influxdb [2025/01/13 19:58] (current) – [status2influx script] dodenhoeft
Line 66: Line 66:
 ==== status2influx script ==== ==== status2influx script ====
 <code c status2influx.are> <code c status2influx.are>
-*/ DESC: This script is sendinf the current cli WWAN infos to a external InfluxDB+/DESC: This script is sending the current cli WWAN infos to a external InfluxDB
 *  created by [TD] 24.9.2023 *  created by [TD] 24.9.2023
 *  Copyright (C) (2013-2024) NetModule AG, Switzerland *  Copyright (C) (2013-2024) NetModule AG, Switzerland
 */ */
 +
 url = "https://eu-central-1-1.aws.cloud2.influxdata.com/api/v2/write?org=01ad2d78e27c0e0d&bucket=netmodule&precision=ns"; url = "https://eu-central-1-1.aws.cloud2.influxdata.com/api/v2/write?org=01ad2d78e27c0e0d&bucket=netmodule&precision=ns";
 usr = ""; usr = "";
Line 83: Line 84:
  
  
-//define header with text/plain WORKS+//define header with valid influx API Token
 header = "Authorization: Token XansFOeVPLFvPkfGiboGW7RvXwaio1WmjodVklcbtOJPumgqH5KGhIQyHQuMlflL72bWk27liAybzE2EhA3ksQ=="; header = "Authorization: Token XansFOeVPLFvPkfGiboGW7RvXwaio1WmjodVklcbtOJPumgqH5KGhIQyHQuMlflL72bWk27liAybzE2EhA3ksQ==";