GithubHelp home page GithubHelp logo

hellange / lksystems Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 145 KB

OBSOLETE. Worked with the older LKSystems webserver. Refer to lksystems-cloud repo for newer lksystems webserver and cloud solution

JavaScript 3.40% TypeScript 59.36% HTML 35.94% Dockerfile 0.95% Pug 0.35%

lksystems's Introduction

OBSOLETE:

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.

About

Experimental code to learn more about node, express, rest, typescript based projects and cloud deployment using docker-compose.

LK Systems

Reads temperature and system settings from LK Systems Webserver. Stores result periodically in a database.

Preconditions

Add your lk system credentials in a lk_credentials.env file

Build and run

  1. Install dependencies - npm install

After that, after you do changes in the code:

  1. Compile (and assets) - npm run build
  2. Run the app + database - docker-compose up. It uses the lk system credentials from a environment file.

Docker deploy

docker / docker-compose

Url

Service should now be available on - http://localhost:3000/api/v1/thermostats and http://localhost:3000/static/

References

Initial setup of node/typescript based on blog post.

lksystems's People

Contributors

hellange avatar

Watchers

 avatar  avatar

lksystems's Issues

Change temperature using API

Hi,
Do you know if it's possible to change temperature using lk webserver API?
Do you have any documentation for the API? Can't find any information at all except for this repo.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.