0.0.1 • Published 8 years ago

sensor_framework_viewer_webserver v0.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
8 years ago

This package includes:

sampleSensorWebserver

This is a set of:

  • Sensors (WebSensors)
  • Monitors (WebMonitors)
  • and a Logger (WebLogger)

To use this Sensors, Monitors, and the Logger, just connect to the configured website (default= localhost:5000). There you can easy configure the different elements

WebsensorAdapter

The adapter is a set of elements used for the sensor_framework It includes:

  • websensor_adapter
  • websensor_logger
  • websensor_monitor

This is a sample Adpater component that can be used to test the sensor_framework and uses the sampleSensorWebserver

SensorFrameworkWebserver

This is a sample server or viewer for the sensor_framework It starts the sensor_framework with all the configured adapters and displays it on the configured URL (default= localhost:4000). This can be used to test your adapters, or as a Sensor Display Webserver. If you use the SensorFrameworkWebserver with the WebserverAdapter, you can see in the Details of the Sensors the real states from the sampleSensors (WebSensors) and the one comes over the WebserverAdapters and you can also configure/use the WebMonitor and the WebLogger.

Normally the sensor_framework is designed to us as server for example the homebridge and and adapters that connects to real sensors.

But the sensor_framework_viewer_webserver module can be used as test environment to show how the sensor_framework is working or also as a control viewer website for your adapters

To start the webservers:

Do configure it in the config.json and start the following command on the command shell:

  • NODE_ENV=debug npm start --> in the debug mode
  • NODE_ENV=production npm start --> in the production mode

Install:

npm install -g sensor_framework_viewer_webserver.
This will also install the sensor_framework if not already installed