# light-control-web-app-Temporary-OuluWorkshop **Repository Path**: mirrors_ARMmbed/light-control-web-app-Temporary-OuluWorkshop ## Basic Information - **Project Name**: light-control-web-app-Temporary-OuluWorkshop - **Description**: This is a demo application for a light control system using 6lowpan.(Temporary - will be removed tomorrow) - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2025-11-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Light Control Control connected outlets using a web interface ## Installation and Running ### Installing Dependencies To install all dependencies: ``` npm install ``` ### Configuration Light Control uses [dotenv](https://github.com/motdotla/dotenv) for configuration. The following configuration properties should be set in a `.env` file in the same directory as `app.js`: - URL - URL to the dashboard (including port if necessary, eg. mylightcontrol.com or mylightcontrol.com:4000) - PORT - Port to use for the dashboard (4000 is used by default if this is not specified). - MDS_HOST - URL to the mbed Device Server (mDS) instance/mbed Connector - MDS_DOMAIN - Domain being used in mbed Device Server (mDS) instance - MDS_TOKEN - Token to use for mbed Connector authentication (not needed if using mDS basic auth) - MDS_USERNAME - mDS basic auth username (not needed if using token authentication) - MDS_PASSWORD - mDS basic auth password (not needed if using token authentication) - ENDPOINT_TYPE - Endpoint type of the connected outlets - ENDPOINT_RESOURCE - Path to the endpoint's resource linked to the relay state - ENDPOINT_NAME_RESOURCE - Path to the endpoint's resource that gives its name ### Running the App Start the server using the following command: ``` node app.js ``` Or leave it running continuously: ``` nohup node app.js & ```