Coder Social home page Coder Social logo

nexx512 / vito Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 18.63 MB

Graphical user Interface for the Viessmann Heating System

License: GNU General Public License v3.0

JavaScript 14.57% HTML 9.08% Shell 1.26% CoffeeScript 43.50% CSS 8.09% TypeScript 23.49%

vito's Introduction

vito

Graphical user Interface for the Viessmann Heating System

Disclaimer

You use this software at your own risk. I can not be held liable for anything that happens to your heating system, including any damage, by the use of this software.

Prerequisites

You need a running vcontrold server. Details on how to set up the hard- and software to get a vcontrold server running can be found in the OpenV-Wiki.

In order to use this Project, you also need to have node installed in the version defined in .nvmrc. Using nvm is an easy way to ensure that the suitable node version is installed.

Installation

Donwload the source code with

git clone https://github.com/nexx512/vito.git

and go into the folder vito.

If you have nvm installed, run nvm use. If necessary, install the correct node version using nvm install.

Set up the configuration. Use the an example config file in config/config.exmaple.json and save it with you modification in config/config.json.

Install all necessary nvm modules with

npm i

Build the assets for production use with

npm run build

Starting the server

You can now start and stop the server with the start/stop scripts in scripts/local. Start the server with

./scripts/local/start.sh

or stop it with

./scripts/local/stop.sh

Development

For developing the application, you can run it in a development environment. There is a specific npm task to create the assets on the fly while working on the source files. Start this build process with

npm run develop

If you want to test your application against a local mock server instead of a real vcontrold server, you can start the mock with

npm run mock

This mock takes its data from the mock configuration file mock/mockvcontrolddata.json. When this file is modified, the mock is restarted automatically.

Now you can start the vito server with

npm start

Testing

As a good software developer you will surely write your tests before implementing functionality. To simplify test driven development you can run the all tests with

npm run test

In case you were developing using the vcontrold mock, you must first stop it, if you want to start end to end tests. For end to end tests, the server must be running. A MOck is created automatically in the tests that will interfere with a previously started mock.

To run only a certain kind of tests, you can use one of the following tasks

npm run test:unit
npm run test:integration
npm run test:end2end

If oyu only want to run a single test just use mocha directly.

For the end to end tests, cypress is used as test framework. If you want to run it interactively, you can start with with

./node_modules/.bin/cypress open

vito's People

Contributors

nexx512 avatar

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.