This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 1. Use the EXACT string for the header to avoid concatenation issues | |
| let AUTH_TOKEN = "Token <Influx API token2>"; | |
| let SERVER_ADDY = "<IP or FQDN of INFLUX2>" | |
| let ORG_ID = "<the long Hexidecimal ID> | |
| let BUCKET = "<the long Hexidecimal ID> | |
| let INTERVAL = 5 //Time in Seconds | |
| function pushToInflux() { | |
| Shelly.call("PM1.GetStatus", { id: 0 }, function (result, error_code, error_message) { | |
| if (error_code !== 0) return; |