Giter Site home page Giter Site logo

shadowfurtive / amplea_app Goto Github PK

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

Project based in Portugal. European Project Semester in the Erasmus Experience at ISEP.

JavaScript 12.63% HTML 0.29% CSS 3.62% Python 0.35% Shell 0.09% C++ 58.62% C 24.41%

amplea_app's Introduction

EUROPEAN PROJECT SEMESTER

SMART ADJUSTABLE ERGONOMIC FURNITURE - APP AND SENSORS PART

N|Solid

N|Solid

European project semester at Instituto Superior de engenharia de Porto.

  • Autor: Team 1 EPS
  • Fecha: 16/06/2023 N|Solid

Features

Project

Wiki

For much more information on the project, please click on the following Link (ipp.pt). This link contains the full project report, together with UML diagrams, flowcharts, component diagrams and class diagrams.

Deploy the project

To deploy the project, only the backend server needs to be generated. To do this, node.js must be installed in order to run the node server.

To run the node server, just run the following line in a terminal:

node component_server.js

The component_server.js can be found in the path /backend.

Once the server is started, you can open the search.html and start browsing for the app. To be able to use the app correctly, you must click "F12" in the browser and select the mobile view, as the website is designed for mobile use.

Dataset

The dataset is located in /backend/data.json. There you can see which users are created or you can create a user if you wish. In addition, the data sent by the sensors or the modifications made from the APP will be saved in the aforementioned file.

While using the app, can be seen the API calls in the terminal open for node.js server.

Arduino

The arduino code is commented and with references to the pages where it has been obtained, so that, in case you need to replicate the circuit, you can implement it without any problem. In addition, in wikipedia you can find all the schematics and important comments on the implementation of the electrical system.

IMPORTANT: To make work the program, the ESP-32 must be connected to internet. There are some params defined in the top of the file that need to get fill with the corresponding values

 
const  char* ssid = "test";
const  char* password = "aloha123";

Also, there is another important point to check. In case that there is the need that the ESP-32 ends http.request to the localhost (as is the case in this project), the correct ip needs to be defined. In this case, the correct ip is the one obtained after performing the next command in the windows cmd console:

ipconfig

Once the IP is set, it must be defined in the URL to make the API calls.

// IMPORTANT -> cmd ip config
String serverName = "http://XXX.XXX.XX.XXX:8000/updateData/1";

Once these is defined, in the serial monitor with the correct baud, it can been seen as it connect to Wi-Fi and start sending http.request (of course, the sensors must be connected to the correct pins).

amplea_app's People

Contributors

shadowfurtive 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.