4.3.8 • Published 3 years ago

konsum v4.3.8

Weekly downloads
14
License
BSD-2-Clause
Repository
github
Last release
3 years ago

npm License minified size downloads Build Status Styled with prettier Commitizen friendly Known Vulnerabilities Coverage Status

konsum

Collect resource usage in a home environment.

run

konsum --config=<<some dir>> start
konsum --config=<<some dir>> list [category]
konsum --config=<<some dir>> insert category value [time]
konsum --config=<<some dir>> backup [file]
konsum --config=<<some dir>> restore [file]

install

npm -g install konsum

how to configure

create self signed cert

openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes

JWT

token setup

openssl genrsa -out demo.rsa 1024
openssl rsa -in demo.rsa -pubout > demo.rsa.pub

test with:

curl -H "Content-Type: application/json" \
     -d '{"username":"admin","password":"start123"}' \
     -X POST http://localhost:12345/authenticate

and exec a request

TOKEN=...
CATEGORY=...
curl -H "Authorization: Bearer $TOKEN" \
     http://localhost:12345/category/$CATEGORY/value
TOKEN=...
CATEGORY=...
curl -H "Authorization: Bearer $TOKEN" \
     -H "Content-Type: application/json" \
     -d '{"value":"1234.5","time":"1995-12-17T03:24:00"}' \
     http://localhost:12345/category/$CATEGORY/value

Or directly calling the executable

konsum insert ev 90091.3 '2019-06-22T13:44:17'

openapi

see openapi

API

Table of Contents

addRoute

Stop konsum server.

addRoute

Reload konsum systemd config.

addRoute

Create backup on server.

addRoute

Backup data as text.

addRoute

Retrieve service state.

addRoute

Login to request api token. At least one entitlement starting with "konsum" is required.

addRoute

Retrieve list of categories.

addRoute

Add a new category.

addRoute

Delete a category.

addRoute

List values of a category.

addRoute

Insert a value into a category.

addRoute

Delete a value from a category.

addRoute

List meters/notes of a category.

addRoute

Add a meter/note to a category.

addRoute

Update a meter/note.

addRoute

Delete a meter/note.

4.3.8

3 years ago

4.3.7

3 years ago

4.3.6

3 years ago

4.3.4

3 years ago

4.3.3

3 years ago

4.3.5

3 years ago

4.3.2

3 years ago

4.3.1

3 years ago

4.3.0

3 years ago

4.2.36

3 years ago

4.2.37

3 years ago

4.2.33

3 years ago

4.2.34

3 years ago

4.2.31

3 years ago

4.2.32

3 years ago

4.2.30

3 years ago

4.2.28

3 years ago

4.2.29

3 years ago

4.2.27

3 years ago

4.2.25

3 years ago

4.2.26

3 years ago

4.2.24

3 years ago

4.2.23

3 years ago

4.2.22

3 years ago

4.2.21

3 years ago

4.2.20

3 years ago

4.2.19

3 years ago

4.2.17

3 years ago

4.2.18

3 years ago

4.2.13

3 years ago

4.2.14

3 years ago

4.2.15

3 years ago

4.2.16

3 years ago

4.2.12

3 years ago

4.2.11

3 years ago

4.2.10

3 years ago

4.2.9

3 years ago

4.2.8

3 years ago

4.2.7

3 years ago

4.2.3

3 years ago

4.2.5

3 years ago

4.2.4

3 years ago

4.2.6

3 years ago

4.2.2

3 years ago

4.2.1

3 years ago

4.2.0

3 years ago

4.1.9

3 years ago

4.1.8

3 years ago

4.1.7

3 years ago

4.1.6

3 years ago

4.1.5

3 years ago

4.1.4

3 years ago

4.1.3

3 years ago

4.1.2

3 years ago

1.14.1

5 years ago

1.14.0

5 years ago

1.13.7

5 years ago

1.13.6

5 years ago

1.13.5

5 years ago

1.13.4

5 years ago

1.13.3

5 years ago

1.13.2

5 years ago

1.13.1

5 years ago

1.13.0

5 years ago

1.12.3

5 years ago

1.12.2

5 years ago

1.12.1

5 years ago

1.12.0

5 years ago

1.11.0

5 years ago

1.10.0

5 years ago

1.9.9

5 years ago

1.9.8

5 years ago

1.9.7

5 years ago

1.9.6

5 years ago

1.9.5

5 years ago

1.9.4

5 years ago

1.9.3

5 years ago

1.9.2

5 years ago

1.9.1

5 years ago

1.9.0

5 years ago

1.8.3

5 years ago

1.8.2

5 years ago

1.8.1

5 years ago

1.8.0

5 years ago

1.7.7

7 years ago

1.7.6

7 years ago

1.7.5

7 years ago

1.7.4

7 years ago

1.7.3

7 years ago

1.7.2

7 years ago

1.7.1

7 years ago

1.7.0

7 years ago

1.6.1

7 years ago

1.6.0

7 years ago

1.5.0

7 years ago

1.4.0

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago