Coder Social home page Coder Social logo

moravcik94 / openremote Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openremote/openremote

0.0 1.0 0.0 225.39 MB

OpenRemote v3

License: Other

Java 57.29% HTML 0.31% FreeMarker 0.74% Groovy 15.80% JavaScript 0.40% XSLT 0.11% Shell 0.25% Swift 3.18% PLpgSQL 0.12% CSS 1.88% Kotlin 1.28% Dockerfile 0.16% VCL 0.01% TypeScript 18.43% Ruby 0.01% Python 0.02%

openremote's Introduction

OpenRemote v3

CI/CD tests Open Source? Yes!

Source · Documentation · Community · Issues · Docker Images · OpenRemote Inc.

We are currently working on OpenRemote Manager v3, a concise 100% open source IoT platform. This is beta software.

Quickstart

Before following this quickstart make sure you have prepared your environment. There are three options how to start with OpenRemote:

  1. Starting OpenRemote with images from Docker Hub, easiest for working with the default setup;
  2. Starting OpenRemote with source-build images, required for developers;
  3. Starting OpenRemote with Openremote CLI, in beta and only tested on MacOSX.

After that you can use the openremote manager UI.

1. Starting OpenRemote with images from Docker Hub

Use this methods if you want the easiest way to set up OpenRemote locally and use the webapp as an admin user. We publish Docker images to Docker Hub. First clone or download our source code. Execute the following command from the checked out root project directory:

docker-compose pull

To run OpenRemote using Docker Hub images:

docker-compose up --no-build

To run OpenRemote is swarm mode, which uses Docker Hub images:

docker stack deploy --compose-file swarm/swarm-docker-compose.yml openremote

you don't need to pull or build images in this case, docker swarm mode does this automatically.

2. Starting OpenRemote with source-build images

Alternatively you can build the Docker images locally from source, please see here for required tooling and checkout the openremote project. This method is advised for developers who want to contribute to the project, or customize their local deployment. Let's first get the default manager running. Build the code from the root project directory:

./gradlew clean installDist

Next, if you are using Docker Community Edition build the Docker images and start the stack with:

docker-compose up --build

A first build will download many dependencies (and cache them locally for future builds), this can take up to 30 minutes.

Next steps on working with the openremote code would be Setting up an IDE and Working on the UI

3. Starting OpenRemote with command-line-interface CLI (beta)

openremote-cli (short or) is a command line tool which can be used for installing an instance of OpenRemote stack on local machine. In this method you won't have to pull the openremote repository. You should already have python, wget, docker and docker-compose installed. Note that this method is in beta.

python3 -m pip install -U openremote-cli
openremote-cli -V
or deploy --action create

For Windows machines use these commands if or deploy --action create does not execute properly:

docker volume create openremote_deployment-data
docker volume rm openremote_postgresql-data
docker run --rm -v openremote_deployment-data:/deployment openremote/deployment:latest
wget -nc https://github.com/openremote/openremote/raw/master/swarm/swarm-docker-compose.yml
docker swarm init
docker-compose -f swarm-docker-compose.yml -p openremote up -d

Using the OpenRemote manager

When all Docker containers are ready, you can access the OpenRemote UI and API with a web browser (if you are using Docker Toolbox replace localhost with 192.168.99.100):

OpenRemote Manager, master realm: https://localhost
Username: admin
Password: secret

Smart City realm with Demo setup: https://localhost/main/?realm=smartcity Username: smartcity
Password: smartcity

You must accept and make an exception for the 'insecure' self-signed SSL certificate. You can configure a production installation of OpenRemote with a your own certificate or automatically use one from Let's Encrypt.

Preserving data and configuration

Interrupting the docker-compose up execution stops the stack running in the foreground. The OpenRemote containers will stop but not be removed. To stop and remove the containers, use:

docker-compose down

This will not affect your data, which is durably stored independently from containers in Docker volumes (see all with docker volume ls):

  • openremote_deployment-data (map tiles, static resources)
  • openremote_postgresql-data (user/asset database storage)
  • openremote_proxy-data (SSL proxy configuration and certificates)

If you want to create a backup of your installation, make a copy of these volumes.

The default configuration will wipe the user/asset database storage and import demo data when containers are started! This can be changed with the environment variable SETUP_WIPE_CLEAN_INSTALL. Set it to to false in docker-compose.yml or provide it on the command line.

When a configuration environment variable is changed, you must recreate containers. Stop and remove them with docker-compose down and then docker-compose up the stack again.

More configuration options of the images are documented in the deploy.yml profile.

Contributing to OpenRemote

We work with Java, Groovy, TypeScript, Gradle, Docker, and a wide range of APIs and protocol implementations. Clone or checkout this project and send us pull requests, ensure that code is covered by tests and that the full test suite passes.

For more information and how to set up a development environment, see the Developer Guide.

Discuss OpenRemote

Join us on the community forum.

See also

openremote's People

Contributors

richturner avatar miggets7 avatar aktur avatar robin-dekkers avatar donwillems avatar wbalcaen avatar christianbauer avatar pierrekil avatar hmica avatar developers-openremote avatar damienkusters avatar jvervier avatar kklin avatar ramonpeek avatar rensvdlinden avatar mestiez avatar

Watchers

James Cloos 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.