Development Plan & Requirements - Sinapse-Energia/CMS-Revolution GitHub Wiki

Introduction

MVP - 1

Navigation

  • The green pages should be implemented

MVP-1: Site Map - Navigation

Features

MQTT

  • The CMS-Revolution should act as a MQTT Client
  • The user should be able to connect to a MQTT Broker with user / password credentials
  • The user should be able to subscribe to N topics
  • The user should be able to publish a message in a topic
  • In background, the MQTT Client should process all the messages received trough the topics subscribed

Devices

  • Only CMC Devices: CMC Devices
  • The user should be able to create, modify and delete a CMC
  • The user should be able to act in demand over CMCs.
  • The user should be able to see the real time status of a CMC.
  • The user should be able to see the monitored magnitudes of a CMC in real time.

Views

MQTT

MQTT Connect

MQTT Publish

MQTT Subscribe

Monitoring > Real Time

  • Table with a row per CMC with CMC_NAME, CMC_ID, CMC_RADIO and last message received
  • Clicking in a CMC, the next information should be displayed after the table:
  • Once selected the CMC, last 10 messages recived
  • Once selected the CMC, The CMS-R will display a chart for each kind of magnitude (I, V, P..etc) with the last 24 hour measurements.
  • Each magnitude chart will display all the magnitudes of same type. Eg: for magnitude "Current" will be displayed I1, I2, I3 and IN, for magnitude "Voltage" will be displayed U12, U23, U31, V1N, V2N and V3N and so on.
  • A "user defined" chart where the user can select 3 magnitudes and in order to compare them in the last 24 hours

Monitors - Real Time

Actuators > Real Time (On demand)

  • Table with a row per CMC with CMC_NAME, CMC_ID, CMC_RADIO and current status of the relays.
  • If the CMC have less than 7 relays (number of circuits). All the relays until 7 should contains the value X
  • Combobox where the user can select ONE or SEVERAL CMCs
  • Tri state button per relay where the user can select OFF, ON or X (leave as it is). Example of tri-state button: https://codepen.io/goldsteinr/pen/ftysC
  • The user, after select the desired relay status can send the message to the selected CMCs.
  • The should be published in the correct topic and should contains the correct values. See Act on demand message
  • If the user select N CMCs, then the message should be published in N topics.
  • In MVP-1, the value if overwrite scheduler should be always TRUE.
  • After send the message, the current status of the relays should be saved and the database (operational data) and displayed in the table displaying the status of the relays

Actuator - Real Time

Example

The user select the CMCs House 1 (CMC RADIO = 123456) and House 2 (CMC RADIO = AB1235) and set ON the relays 1 & 3, set OFF the relay 2 and leave the others in the current state. Supposing the installation name is DEMOSTRADOR, then should be published next messages in the following topics:

TOPIC: DEMOSTRADOR/CMC/ACT/123456 , MSG: 11;ACT1;ACT0;ACT1;ACTX;ACTX;ACTX;ACTX;TRUE;

TOPIC: DEMOSTRADOR/CMC/ACT/AB1235 , MSG: 11;ACT1;ACT0;ACT1;ACTX;ACTX;ACTX;ACTX;TRUE;

MVP - 2

Advanced features