# node-hoganas-energi

> Retrieves energi data from Hoganas Energi using your credentials

Latest version **1.0.3** (published 2018-11-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install node-hoganas-energi
pnpm add node-hoganas-energi
yarn add node-hoganas-energi
bun add node-hoganas-energi
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2018-11-15 |
| First published | 2018-06-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 8.4 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | nidayand |
| Maintainers | nidayand |

## Links

- npm: https://www.npmjs.com/package/node-hoganas-energi
- Repository: https://github.com/nidayand/node-hoganas-energi
- Homepage: https://github.com/nidayand/node-hoganas-energi#readme
- Issues: https://github.com/nidayand/node-hoganas-energi/issues
- npm.io page: https://npm.io/package/node-hoganas-energi

## Dependencies (3)

- [cheerio](https://npm.io/package/cheerio.md) ^1.0.0-rc.2
- [request](https://npm.io/package/request.md) ^2.87.0
- [tabletojson](https://npm.io/package/tabletojson.md) ^0.9.4

## Recent versions

- 1.0.3 (latest) — 2018-11-15
- 1.0.1 — 2018-06-26
- 1.0.0 — 2018-06-13

## README

# node-hoganas-energi [![npm version](https://badge.fury.io/js/node-hoganas-energi.svg)](https://badge.fury.io/js/node-hoganas-energi)
## Install
```bash
npm install node-hognas-energi
```

## Methods
```javascript
/**
 * Retrieves a month report. If year and month are not passed
 * it will take the current month
 * @param {string}          username Username at Höganäs Energi
 * @param {string}          password Password at Höganäs Energi
 * @param {number/function} p1       Year of report (YYYY) or callback (gets current year and month)
 * @param {number}          p2       Month of report or empty (1-12)
 * @param {function}        p3       callback function or empty
 */
getMonth = function(username, password, p1, p2, p3)

/**
 * Get report for a specific day
 * @param {string}   username Username at Höganäs Energi
 * @param {string}   password Password at Höganäs Energi
 * @param {Date}     date     Date object for specific day
 * @param {function} callback callback function for result
 */
getDay = function(username, password, date, callback)

/**
 * Retreives the consumption from yesterday
 * @param {string}   username Username at Höganäs Energi
 * @param {string}   password Password at Höganäs Energi
 * @param {function} callback callback function
 */
getYesterday = function(username, password, callback)
```

## Example
```javascript
var nodeHoganasEnergi = require("node-hoganas-energi")
// uid = 123456, pwd = 101112
nodeHoganasEnergi.getYesterday('123456', '101112',function(m){
    console.log(m);
})
```

---
_Source: https://npm.io/package/node-hoganas-energi · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
