GithubHelp home page GithubHelp logo

carnaux / devsystems-arcad-ura Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.86 MB

This repo contains all required systems to run a full demo of Arcad.

JavaScript 2.18% Python 11.97% C 80.21% C++ 5.64%

devsystems-arcad-ura's Introduction

Dev dependencies for the Arcad-URA demo

Index

  1. Installation
  2. MQTT Broker
  3. Generating Data
  4. Database server
  5. Arcad

If you will modify the demo, please read the Data Structure Guidelines first!

There is almost none error handling, so beware!

Installation

Clone this repo

Open a terminal

Run: npm run install-dev

Open the local mqtt broker

For Windows:

Go to the mqttBroker folder

Open a terminal

Run: mosquitto -c ./demoConfig.txt

For Linux/Mac:

https://mosquitto.org/download/

But use the demoConfig.txt

Generating Data

To generate data you have two options:

Run an Esp board with the code from the URA repo:
https://github.com/Natalnet/lib_ura_esp/tree/master/devs/MQTT

Run the simulation code from the Esp-Simulation folder

Using an Esp board

Flash esp

https://docs.micropython.org/en/latest/esp8266/tutorial/intro.html

Put files in esp-MicroPython

Go to the URA folder

Open a new terminal

Run the command below:

e.g ampy --port /serial/port put test.py

For linux

/serial/port = /dev/ttyUSB0 || /dev/tty.SLAB_USBtoUART

For windows

/serial/port = COM#
	              # = port number

Using the Esp-Simulation

Go to the Esp-Simulation folder

Open a new terminal

Run: node sim.js

Open the database server

Go to the dbServer folder

Open a new terminal

Run: node server.js

Open Arcad

Link available only for NatalNet labs personnel.

Connect Arcad with the broker server

drawing

User and Password are not required!!!

Arcad will save MQTT data until the database function sends it to the database server, then it will erase it and store new data.

Connect Arcad with the database server

Database config

Login does not works yet!!!

REMEMBER TO CHANGE THE "YOUR IPv4" WITH YOUR IPv4

Export using the button:

drawing

And then select the time range:

drawing

devsystems-arcad-ura's People

Contributors

carnaux avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.