Bienenstockwaage, Webapplikation
Go to file
Joerg Lehmann 3b2b39a3f0 fix alerting bug 2020-08-07 21:23:53 +02:00
check_mini_beieli_nodes fix alerting bug 2020-08-07 21:23:53 +02:00
mini-beieli-sass update bulma to 0.9.0 2020-06-26 16:51:23 +02:00
snippets tune web design 2020-07-13 16:40:01 +02:00
static cleanup images 2020-06-26 17:36:30 +02:00
systemd Initial commit 2019-03-30 18:41:00 +01:00
templates tune web design 2020-07-13 16:40:01 +02:00
.gitignore monitor program to be used from cron, checking battery and abo 2020-06-15 20:00:29 +02:00
README.md document some redis-cli commands 2020-04-11 16:17:18 +02:00
authentication.go enhance password reset 2020-04-13 10:04:56 +02:00
helper.go adapted password change mail text 2020-04-11 16:23:11 +02:00
log.go go fmt; email message after payment 2020-04-09 14:41:41 +02:00
mail.go adapted password change mail text 2020-04-11 16:23:11 +02:00
main.go adapted password change mail text 2020-04-11 16:23:11 +02:00
metrics.go fix metrics bug 2020-07-13 16:38:18 +02:00
minify-fa.sh modifications 2019-12-26 16:36:31 +01:00
persistence.go monitor program to be used from cron, checking battery and abo 2020-06-15 20:00:29 +02:00
scales.go allow alias to be 25 characters (instead of 16) 2020-06-17 16:47:45 +02:00
stripe.go go fmt; email message after payment 2020-04-09 14:41:41 +02:00

README.md

mini-beieli-web - Bienenstock Ueberwachung

Webapplikation, geschrieben in Golang.

Administration

Redis Commands

$ redis-cli

Show all keys:
127.0.0.1:6379> keys *

Create new user (devs prefixed with @ are read-only devs):
127.0.0.1:6379> HMSET user:joerg.lehmann@nbit.ch my_devs "0002CC01000003E4,@0002CC01000003E5"

Show all values of a key
127.0.0.1:6379> HGETALL user:joerg.lehmann@nbit.ch
 1) "last_login"
 2) "2020-04-11 13:41:57"
 3) "confirm_id"
 4) ""
 5) "password"
 6) "$2a$10$XdDSG2E9SpVuxLE59JWwsO9aJtbrwArSflBGwGVvjWDEQecXEUo06"
 7) "my_devs"
 8) "0002CC01000003E4,@0002CC01000003F5,0002CC01000003F1,0002CC01000003F7,0002CC01000003F3,0002CC01000003E1,0002CC01000003D4,0002CC01000003EC,0002CC01000003E2"
 9) "new_password"
10) "$2a$10$XdDSG2E9SpVuxLE59JWwsO9aJtbrwArSflBGwGVvjWDEQecXEUo06"

Set password (htpasswd in httpd-tools rpm):
$ htpasswd -nbBC 5 USER PASSWORD


27.0.0.1:6379> HMSET user:joerg.lehmann@nbit.ch password '$2a$10$TmNA6PDKWBnMw/XcJ0DDi.zpWzZB0RYyrKc8Bh3x6LHAyCxbByhkC'

Change active_until date:
127.0.0.1:6379> HMSET dev:0002CC01000003E2 active_until "01.05.2021"

show range of last values:
127.0.0.1:6379> LRANGE lastvalues:0002CC01000003E4 0 -1

Autor: Joerg Lehmann, nbit Informatik GmbH