This code worked for the older LKSystems webserver. This does not work for the newer LKSystems webserver and cloud solution. Refer to lksystems-cloud instead.
Experimental code to learn more about node, express, rest, typescript based projects and cloud deployment using docker-compose.
Reads temperature and system settings from LK Systems Webserver. Stores result periodically in a database.
Add your lk system credentials in a lk_credentials.env file
- Install dependencies -
npm install
After that, after you do changes in the code:
- Compile (and assets) -
npm run build
- Run the app + database -
docker-compose up
. It uses the lk system credentials from a environment file.
docker / docker-compose
Service should now be available on - http://localhost:3000/api/v1/thermostats
and http://localhost:3000/static/
Initial setup of node/typescript based on blog post.