@westh/vindstoed

1.0.0 • Public • Published

@westh/vindstoed

Extracts the monthly power consumption from Vindstød.

Seems like the data for the current month is updated daily.

Usage

const getVindstoedReadings = require('@westh/vindstoed')

async function main () {
  const readings = await getVindstoedReadings({
    username: process.env.VINDSTOED_USERNAME,
    password: process.env.VINDSTOED_PASSWORD
  })

  console.log(readings)
}

main()

Which outputs something like this:

[
  { month: '2022-04', kWh: 1233 },
  { month: '2022-05', kWh: 1234 },
  { month: '2022-06', kWh: 1255 },
  { month: '2022-07', kWh: 1223 },
  { month: '2022-08', kWh: 1274 },
  { month: '2022-09', kWh: 1285 },
  { month: '2022-10', kWh: 100 }
]

Installation

npm i @westh/vindstoed

License

MIT

Package Sidebar

Install

npm i @westh/vindstoed

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

5.28 kB

Total Files

5

Last publish

Collaborators

  • westh