1
0

149 Commits

Author SHA1 Message Date
Jose
38f23b069f Add files via upload 2025-09-19 00:46:06 +02:00
Jose
1604f1d600 geojson y apidoc 2025-08-13 08:20:24 +02:00
Jose
d2c3b4fd70 last fixes 2025-06-05 21:46:03 +02:00
Jose
97a17b926d Refactor: update DEVICE_ROLE to ACTUATOR and adjust sensor serialization logic 2025-06-04 00:21:38 +02:00
Jose
e30531729a Refactor: update task timer structure, enhance WiFi connection messages, and improve JSON debug output 2025-06-04 00:06:58 +02:00
Jose
c74ddc626c Refactor WiFi connection handling: move PIN definitions, enhance connection logic, and integrate MQTT initialization in setup 2025-06-03 23:21:59 +02:00
Jose
cedf39d95a Update WiFi connection handling, adjust MQTT timer, and implement group ID deserialization 2025-06-03 23:00:50 +02:00
Jose
fc9a622252 Add: get groupId by deviceId for dynamic groupId config on startup 2025-06-03 22:43:16 +02:00
Jose
24802271bb Update WiFi credentials, modify DEVICE_ROLE to SENSOR, and refactor GROUP_ID initialization; enhance MQ7_Read_Fake logic 2025-06-03 22:16:22 +02:00
Jose
fb53c0fb83 Add API endpoint for creating a new device; update PollutionMap colors and Card styles 2025-06-01 18:48:40 +02:00
Jose
2e4fc9db41 Update ApiDocs and HistoryCharts components; enhance PollutionMap with heat layer and toggle Voronoi visibility 2025-05-31 14:00:39 +02:00
Jose
1e5a8f7ee7 Enhance PollutionMap component with Voronoi layer toggle; add GeoJSON data for visualization 2025-05-30 20:53:02 +02:00
Jose
fc130cc92d F I N 2025-05-30 19:28:12 +02:00
Jose
3d9728874a Add FloatingMenu component and integrate DocsButton; update styles for ThemeButton and FloatingMenu 2025-05-26 23:18:31 +02:00
Jose
7b13affb3c Cambios backend/frontend 2025-05-26 22:30:04 +02:00
Jose
870933f389 Remove debug log statement from HistoryChartsContent component 2025-05-18 20:09:09 +02:00
Jose
934ac521a3 Refactor HistoryCharts and PollutionMap components for improved date handling; update SummaryCards data mapping and Card component prop types. 2025-05-18 19:58:58 +02:00
Jose
cdff306ca1 Implemented (partially) Voronoi algorithm for zone-dividing in Seville map. Also refactored some things in frontend. Modified hardware firmware for conditional compilation for both SENSOR and ACTUATOR type boards. 2025-05-16 23:05:46 +02:00
Jose
51862cf0a8 Implement MQTT connection and message publishing based on CO levels; refactor air quality status handling 2025-05-16 13:05:34 +02:00
Jose
a50716c483 Update GPS data retrieval to use fake GPS readings for testing 2025-05-15 13:03:06 +02:00
Jose
785cfc670e Refactor MQTT and WiFi credentials to separate header files 2025-05-11 10:51:09 +02:00
Jose
095dedfabb succesful mqtt connection to server 2025-05-11 10:09:41 +02:00
Jose
7f823cbda0 Fix timestamp handling and improve data extraction in HistoryCharts component 2025-05-10 16:10:15 +02:00
Jose
bf42eccc67 working frontend and backend 2025-05-10 15:08:39 +02:00
Jose
b463b866ce Fix endpoint URL in HistoryCharts component and update sensor IDs in main.hpp 2025-05-10 08:52:21 +02:00
Jose
8dc2787b80 fixed rest on cpp; added batch endpoint 2025-05-10 07:43:30 +02:00
Jose
0ce48c18e2 Refactor application structure and components
- Moved components to a new layout directory for better organization.
- Updated App component to include GroupView and adjust routing.
- Removed unused components (App.jsx, Card.jsx, CardContainer.jsx, Header.jsx, MenuButton.jsx, SideMenu.jsx, ThemeButton.jsx).
- Introduced LoadingIcon component for loading states.
- Updated PollutionMap, SummaryCards, and HistoryCharts components to accept groupId as a prop.
- Modified API endpoint configurations in settings.prod.json for better clarity and consistency.
- Enhanced chart options in historyChartConfig for improved visual representation.
- Updated favicon and logo images.
2025-05-09 22:47:13 +02:00
Jose
02a2a2ce07 added some improved classes from my custom backend and introduced DAOs 2025-05-09 20:48:45 +02:00
Jose
b6f13cfff8 changed deviceId from Integer to String/CHAR(6) 2025-05-08 18:23:12 +02:00
Jose
5665cb3e5e Refactor MqttVerticle and GPS implementations: add stop method, update GPS serial handling, and improve WiFi connection logic with LED feedback 2025-05-08 07:24:28 +02:00
Jose
383202709e Refactor GPS and MQ7 sensor implementations: update function signatures, improve initialization, and streamline data reading logic 2025-05-07 04:14:39 +02:00
Jose
b2c7b7677b In the current state all the timings work flawlessly but MQ is still 0.0f and GPS is not read 2025-05-06 22:56:41 +02:00
Jose
fa1b457004 Refactor frontend components and contexts for improved structure and functionality
- Removed unnecessary comments and documentation from CardContainer, Header, HistoryCharts, MenuButton, PollutionMap, SideMenu, SummaryCards, and ThemeButton components.
- Updated import paths to use aliasing for cleaner code.
- Replaced the old context implementations (ConfigContext, DataContext, ThemeContext) with new hooks and context structure for better state management.
- Introduced a new axios instance for API calls to streamline requests.
- Added new utility functions for date and error parsing.
- Updated the main entry point and pages to reflect new context and component structures.
- Created new configuration files for development and production environments.
- Enhanced data fetching logic with improved error handling and loading states.
2025-05-06 03:52:24 +02:00
Jose
5d1b2feeab Refactor sensor data handling: update sensor read functions to return structured data and improve timer management in main loop 2025-05-04 23:23:37 +02:00
Jose
e57222f46d Refactor MQ7 sensor implementation: remove old files and introduce MQ7v2 with updated reading logic 2025-05-02 17:32:47 +02:00
Jose
b8666c1727 cambios picha 2025-04-30 14:10:00 +02:00
Jose
935631a574 Merge pull request #14 from Gallardo7761/feature/bmp280
refactor
2025-04-28 10:52:56 +02:00
Jose
8c570b11b9 Merge branch 'main' into feature/bmp280 2025-04-28 10:51:31 +02:00
Jose
cf540bdec9 Refactor MAX7219 initialization and update MQ7 reading delay 2025-04-27 22:27:06 +02:00
Jose
51db158354 Add hardware support for GPS, MAX7219, BME280, and MQ7 sensors
- Implemented GPS functionality with initialization and reading latitude and longitude.
- Added MAX7219 display support, including initialization, text display, animation control, and brightness settings.
- Integrated BME280 sensor for reading temperature, pressure, and humidity.
- Developed MQ7 sensor interface for reading gas concentration values.
- Created HTTP client for GET and POST requests.
- Implemented MQTT client for message handling and connection management.
- Added JSON serialization and deserialization functions for sensor and actuator data.
- Established WiFi connection setup for network communication.
2025-04-25 22:29:57 +02:00
Jose
0c09fcd913 Replace BMP280 with BME280: remove BMP280 files and implement BME280 initialization and reading functions 2025-04-25 19:54:28 +02:00
Jose
6c86f85ff1 Remove WebServerVerticle and update API endpoints in settings.json; fix base URL formatting in multiple components 2025-04-24 02:46:07 +02:00
Jose
25382c3396 Co-authored-by: clajimbus <clajimbus@users.noreply.github.com> 2025-04-22 10:36:02 +02:00
Jose
1b470ad910 Remove MQ7 and BMP280 files and update their headers and implementations 2025-04-11 10:07:59 +02:00
Jose
0390edbb97 c to cpp 2025-04-11 10:05:43 +02:00
Jose
b02d3539cb Refactor project structure: update Java version, remove MQ7 files, and add BMP280 support 2025-04-11 10:02:05 +02:00
Jose
bbec62aac9 Merge pull request #13 from Gallardo7761/feature/MQ7
Feature/mq7
2025-04-11 09:26:22 +02:00
Jose
8488209c03 Merge pull request #12 from Gallardo7761/feature/MQTT
Adding MQTT protocol to allow message interchange
2025-04-11 09:25:07 +02:00
Jose
f93ba9ba8b mqtt me la pela 2025-04-11 09:24:51 +02:00
Jose
f1c924f856 me la pela 2025-04-11 09:22:56 +02:00