Files
seweb/README.md

2.4 KiB

SEAWeb

The WEB GUI client of SEA.

This repository contains the code of the server for the control and graphical parts, plus the client code (HTML, CSS, JS)

Global architecture

The current server exposes some routes for the graphical part and the control part. It also serves the client files.

Installation (!!! WIP !!!)

  1. Clone this repository on the ~ folder on your machine
  2. If not done yet, activate a Python environnment
  3. Run the command cd seaweb

Configuring the application (!!! WIP !!!)

Starting the application (!!! WIP !!!)

  1. Run the command cd ~/seaweb

Stopping the application (!!! WIP !!!)

  1. Run the command ps ax | grep seaweb
  2. In the output of the previous command, identifiy the PID corresponding to the server process
  3. Run the command kill <previously_identified_PID>

InfluxDB

(24/07/24) The InfluxDB instance is fed every 30 seconds with the last values contained in the timerange [now - 30s, now]. We do not know if this process is synchronized for all the measurements or not.

Server

Client

The way the main page is served (where you can select the instrument you want to interact with) has not been decided yet, even if its code is in this repository.

Process

For a selected instrument, there is a single HTML file that holds the application : the SEAWebClient.html file, which is served as the main route. It includes all the JS files needed, meaning all the JS files located in the client/jsFiles folder excepted SeaWebClientStart.js, plus the external librairies (client/externalFiles/).

The entry point is the SEAWebClientMain.js, which has a window.onload function and which initiates all the content of the page, plus the responsitivity.

External libraries

Name Version Website
AlertifyJS v1.8.0 http://alertifyjs.com
ChartJS v2.9.4 https://www.chartjs.org
+ Zoom plugin for ChartJS v0.7.3 https://www.chartjs.org
EventSource unknown https://github.com/Yaffle/EventSource/
Hammer.JS v2.0.7 http://hammerjs.github.io/
Swipper v4.5.0 http://www.idangero.us/swiper/