Skip to content

Instantly share code, notes, and snippets.

@gadgetmies
gadgetmies / helen.js
Last active November 18, 2022 22:47
Fetch energy consumption from Helen with Puppeteer and push results to InfluxDB
// Put this file under src folder in the path where you put the run.sh
const puppeteer = require("puppeteer");
const http = require("node:http");
const influxOrg = ''
const influxBucket = ''
const influxHost = ''
const influxPort = 8086
const influxToken = ''