Skip to content

Latest commit

 

History

History
81 lines (61 loc) · 1.13 KB

configuration.md

File metadata and controls

81 lines (61 loc) · 1.13 KB

Configuration

Default config values are found in configs/index.js.

Create a custom.js in configs/ to override default and process.env config values.

Example

module.exports = {
	lifxApi: {
		hostname: 'lifx.local',
		port: 4000,
	},
}

Config Values

env

Node.js environment. This value can be either 'development' or 'production'.

Environment Variables

NODE_ENV

Example

nodeEnv: 'development',

flicClient

Domain location of the Flic Client process from the Flic SDK.

Environment Variables

FLIC_CLIENT_HOSTNAME FLIC_CLIENT_PORT

Example

flicClient: {
	hostname: 'localhost',
	port: 5551,
},

lifxApi

Domain Location of the LIFX Controller.

Environment Variables

LIFX_API_HOSTNAME LIFX_API_PORT LIFX_API_PROTOCOL

Example

lifxApi: {
	hostname: 'localhost',
	port: 36001,
	protocol: 'http',
},

wemoApi

Domain Location of the WeMo Controller.

Environment Variables

WEMO_API_HOSTNAME WEMO_API_PORT WEMO_API_PROTOCOL

Example

wemoApi: {
	hostname: 'localhost',
	port: 36002,
	protocol: 'http',
},