Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Latest commit

 

History

History
99 lines (63 loc) · 2.81 KB

FORMER_README.md

File metadata and controls

99 lines (63 loc) · 2.81 KB

Overview

This webui is intended to be both a part of aktos-dcs project as its SCADA infrastructure and the official website of aktos-elektronik, The Open Source Telemetry and Automation Systems Company, Turkey.

This webui is online at https://aktos.io/

Similar projects

Crossbar.io : https://github.com/crossbario

Used Technologies / Libraries

  • ZeroMQ
  • Socket.io
  • Livescript
  • Ractive
  • Jade
  • Bootstrap
  • jQuery
  • CSS
  • Flot
  • ...and others (see vendor)

File Structure

  • app: application specific directory, see brunch.io
  • static: applicaction specific jade/livescript/css... files
  • modules: modules intended to be reused
  • partials: ractive partials that will be rendered into index.html
  • assets: contains files/folders which will be copied into $(PROJECT)/public directory
  • templates: jade layouts, mixins, etc.
  • styles: stylesheet files
  • vendor: 3rd party library files, see brunch.io
  • public: compiled files for web server, see brunch.io
  • server: server application
  • test: test codes, see brunch.io
  • manual-tests: projects to test aktos-dcs infrastructure
  • disabled: disabled modules, partials, 3rd party libraries etc.
  • config.coffee: configuration file for brunch.io
  • package.json: dependencies and package information file for Node.js
  • Makefile: includes some quick operation commands (clearer than package.json/scripts block)

INSTALL

  • install aktos-dcs

    • cd test-folder
    • git clone https://github.com/ceremcem/aktos-dcs
    • follow installation notes
  • install aktos-dcs-lib

    git clone https://github.com/ceremcem/aktos-dcs-lib aktos-dcs-lib

  • install Node.js

  • install global dependencies:

    • as root: npm install -g livescript brunch@1.8.5 pm2

    • install libzmq-4.x

        sudo apt-get install libzmq3-dev  # or install from source
      

      For OS X

        brew install zeromq
      
  • clone this project and install rest of the dependencies

    • clone or download this project
    • open terminal in project directory
    • as normal user: npm install

Quick start

While in project directory,

  • open a terminal and type:

      npm start
    
  • open another terminal and type:

      python manual-test/python-messaging/test_message_sending.py
    

Then open http://localhost:4000 and see if the button clicks are sent to python process and analog display (the realtime graph) is incrementing.

Optional

optional: in order to see server.ls logs:

npm run show-logs

optional: In order to build production code:

make production