Skip to content

asayuki/oktavio

Repository files navigation

Oktav.IO

Oktav.IO

General Requirements

  • Node.JS
  • NPM
  • MongoDB
  • Redis
  • pilight-daemon

Setup Oktav.IO

Configuration

Copy .env.example to .env and make your configurations there.

Oktav.IO Application

  • HOST - Defaults to OS hostname, or localhost.
  • PORT - Defaults to random.
  • COOKIE_HASH - (Required) 32-char long hash for cookies
  • COOKIE_NAME - (Required) Name for chookie

Redis

  • REDIS_HOST - Defaults to 127.0.0.1
  • REDIS_PORT - Defaults to
  • REDIS_PASSWORD - Defaults to null
  • REDIS_PARTITION - (Required)

MongoDB

  • MONGO_URL - (Required) For example: mongodb://127.0.0.1:27017/ (dont forget the trailing slash)
  • MONGO_DB - (Required)
  • MONGO_USER - Defaults to null
  • MONGO_PASS - Defaults to null

Pilight

  • PILIGHT_SKIP - Defaults to false
  • PILIGHT_HOST - (Required, if skip is not set to True)
  • PILIGHT_PORT - (Required, if skip is not set to True)

Additional configurations

  • SKIP_DOTENV - Skip loading .env-file
  • TESTING - Used by tests
  • COMMENCE_TESTING - Used by tests

Install packages

To install node packages required to run the application, other than general requirements, execute the following command in the project root.

npm install

Add initial User

You wont get far unless you have an account that can login and add/update/delete stuff. Whilst logged in you can create more users.

node bin/createUser

Starting

npm start will start the application but will also exit the application if you close your terminal window.

A good way to start applications and keeping them alive is to use PM2. Follow the installation guide and then run pm2 start oktavio.js.

API

Users

Devices

Modes

Schedules

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published