commit 468bc33f7e
Author: Jarno Rankinen <jarno@oranki.net>
Date: Tue Mar 14 09:37:07 2023 +0200
gh-7 Log failed authentications. Forked rocketlaunchr/https-go to add CN to the generated certifcate
commit 0e10c9d925
Author: Jarno Rankinen <jarno@oranki.net>
Date: Sun Mar 12 22:30:53 2023 +0200
gh-7 Added HTTP basic authentication to REST API. Default credentials pingvin:enervent. Still need to implement logging failed auth requests. A log file option is also a good idea.
commit a3165db631
Author: Jarno Rankinen <jarno@oranki.net>
Date: Sun Mar 12 12:41:41 2023 +0200
gh-7 Updated Home Assistant rest example to https
commit 54b555c523
Author: Jarno Rankinen <jarno@oranki.net>
Date: Sun Mar 12 12:25:53 2023 +0200
gh-7 Enabled SSL encryption
commit 2738b60386
Author: Jarno Rankinen <jarno@oranki.net>
Date: Sun Mar 12 12:07:36 2023 +0200
gh-7 Implemented automatic self-signed SSL generation on startup under ~/.config/enervent-ctrl
Closes gh-7
GET /api/v1/coils/N
- read coil N (int)
POST /api/v1/coils/N/VAL
- set coil N (int) to VAL, VAL can be one of accepted values for
strconv.ParseBool (1 or 0 is the simplest)
Internal data handling needs much improvement, as signed/unsigned
integers and other data types are not yet handled.
Javascript seems like a really poor choice for parsing the html
table, currently it takes ~10 seconds to hande the data. API
response time is good, so probably switching to Go templates for
the dynamic tables is the best course of action. This will move
the load from clientside to serverside, hopefully the planned
RPi Zero W can handle the computations