wo-bisch.ch Webapp
Go to file
Joerg Lehmann 6cd9966041 get rid of various console.log calls 2021-03-20 18:00:27 +01:00
check_nodes Initial commit 2021-03-09 20:32:57 +01:00
snippets one step ahead... 2021-03-19 15:49:21 +01:00
static get rid of various console.log calls 2021-03-20 18:00:27 +01:00
systemd Initial commit 2021-03-09 20:32:57 +01:00
templates better more commits than less... 2021-03-17 17:20:20 +01:00
wo-bisch-sass Initial commit 2021-03-09 20:32:57 +01:00
.gitignore Initial commit 2021-03-09 20:32:57 +01:00
README.md Initial commit 2021-03-09 20:32:57 +01:00
authentication.go Initial commit 2021-03-09 20:32:57 +01:00
helper.go Initial commit 2021-03-09 20:32:57 +01:00
log.go Initial commit 2021-03-09 20:32:57 +01:00
mail.go Initial commit 2021-03-09 20:32:57 +01:00
main.go still improving map logic 2021-03-12 21:50:41 +01:00
metrics.go change metric format 2021-03-17 18:09:49 +01:00
minify-fa-js.py Initial commit 2021-03-09 20:32:57 +01:00
minify-fa.sh one step better... 2021-03-15 20:23:28 +01:00
persistence.go Initial commit 2021-03-09 20:32:57 +01:00
stripe.go Initial commit 2021-03-09 20:32:57 +01:00
tracker.go Initial commit 2021-03-09 20:32:57 +01:00

README.md

wo-bisch-web - LoraWAN GPS Tracker

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