stakach / Example-Control-Interface

An example HTML interface for em_control

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example Interface for em_control

This is an example interface that could be used as the basis for understanding or building your own interface for a control system built with em_control

How to integrate

  1. Download, fork or directly link to this interface in your em_control gem file
    • Bundle install
  2. From the admin interface http://localhost:3000/interfaces/dashboard
  3. Add the example interface logic code as a dependency
    • Actual name: Flexible demo
    • Module name: Interface
    • Class name: FlexiInterface
    • Filename: flexible_interface.rb
    • Click Save
  4. Create a new Control System (name it what ever)
  5. Create a new Controller logic mapping
    • Link the control system to the dependency you just added

Active the control system

If the control system is not already running just start it:

  • rake control

If the control system is running do the following:

  1. press the tilda key anywhere in the dashboard: ~
  2. Click the console to give it focus
  3. Login to the control system
    • authsource name\username (for login)
  4. type
    • new “control system name”
  5. The control system has been started

Browse to the interface

The URL is: http://localhost:3000/interfaces/flexible_interface/1

  • Where ‘1’ is the control system id

Open multiple windows with the same url (differnet browsers and devices too) to see it in action.

About

An example HTML interface for em_control

License:MIT License


Languages

Language:JavaScript 94.2%Language:Ruby 5.8%