Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple devices and multiple sources #7

Open
lpatiny opened this issue Mar 10, 2021 · 3 comments
Open

Multiple devices and multiple sources #7

lpatiny opened this issue Mar 10, 2021 · 3 comments
Assignees

Comments

@lpatiny
Copy link
Member

lpatiny commented Mar 10, 2021

We should plan the the information can come:

  • from a MQTT server by subscribing to it
  • from a Serial device attached to the computer

There should be a configuration page in which you define all the sources of information

  • For a MQTT device we should specify URL, Topic, username, password. We also have 2 different kinds:
    • A server kind that simply submit data. We listen to the data and parse it
    • An interactive device (we can send and receive back messages). In this case the instructions are exactly the same as with a Serial device
  • For a Serial device we need to select the port number

Once all the devices are setup we can send the instruction uc to get the 'Compact log'. this will allow to automatically fill the category and also be sure that this device is available. For non interactive device we can simply display the last time we received a packet.

@lpatiny
Copy link
Member Author

lpatiny commented Mar 11, 2021

We should create a new menu item called 'Preferences'. There are 4 submenu:

  1. General
  2. Broadcast devices
  3. Interactive devices
  4. Local devices

General

Currently this section contains only the following parameters:

Database synchronisation:
Those parameters are use to synchronise the data with a remote server

  • url
  • username
  • password

Broadcast devices

A broadcast device is a device that sends a Compact Log

We should be able to add / remove devices. A device contains the following information:

  • Custom name: example "Cellar_server" // only allow number / letters / _ and -. No space. We will use this as DB name
  • Kind (select menu). The following values are allowed (based on https://github.com/Hackuarium/legoino-device-information/tree/master/src/devices):
    • value: Computer / label: Computer
    • value: Beemos / label: Beemos
  • URL: Example: mqtt.beemos.org
  • Topic: Example: "lpatiny/Computer/server"
  • Username
  • Password

Interactive devices

We should be able to add / remove devices. A device contains the following information:

Local devices

@NadjibSb
Copy link
Contributor

Points to clarify :

The sidebar menu is structured like this :
Preferences
|
_ General
|__ Broadcast devices
|__ Interactive devices
|__ Local devices

Then when navigating to Broadcast devices for ex, u'll find the list of connected devices (if no device is available, the "Broadcast devices" subMenu will be disabled or we can simply display an empty list)

is this what you were thinking about ?

NadjibSb added a commit that referenced this issue Mar 22, 2021
@lpatiny
Copy link
Member Author

lpatiny commented Mar 25, 2021

Disable is ok seems ok to me.

NadjibSb added a commit that referenced this issue Apr 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants