- Create three buckets with a common prefix of your choosing, followed respectively by
bath,chargeandstudyin your InfluxDB instance. - Create an
.envunder the project's directory, and fill it in according to.env.example. - Run with
node --env-file .env index.js, or build withdocker build ..
For charge.js: The script will try accessing the API endpoint, then obtain authorization if the request failed. A request error will always occur on its first attempt during each startup, which can be safely ignored if such doesn't happen again.