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.
This commit is contained in:
@@ -39,12 +39,52 @@ const SummaryCardsContent = () => {
|
||||
if (!data) return <p>Datos no disponibles.</p>;
|
||||
|
||||
const CardsData = [
|
||||
{ id: 1, title: "Temperatura", content: "N/A", status: "Esperando datos...", titleIcon: '🌡 ' },
|
||||
{ id: 2, title: "Humedad", content: "N/A", status: "Esperando datos...", titleIcon: '💦 ' },
|
||||
{ id: 3, title: "Presión", content: "N/A", status: "Esperando datos...", titleIcon: '⏲ ' },
|
||||
{ id: 4, title: "Nivel de CO", content: "N/A", status: "Esperando datos...", titleIcon: '☁ ' }
|
||||
{
|
||||
id: 1,
|
||||
title: "Temperatura",
|
||||
content: "N/A",
|
||||
status: "Esperando datos...",
|
||||
titleIcon: '🌡 ',
|
||||
className: "col-12 col-md-6 col-lg-3",
|
||||
link: false,
|
||||
text: true
|
||||
},
|
||||
|
||||
{
|
||||
id: 2,
|
||||
title: "Humedad",
|
||||
content: "N/A",
|
||||
status: "Esperando datos...",
|
||||
titleIcon: '💦 ',
|
||||
className: "col-12 col-md-6 col-lg-3",
|
||||
link: false,
|
||||
text: true
|
||||
},
|
||||
|
||||
{
|
||||
id: 3,
|
||||
title: "Presión",
|
||||
content: "N/A",
|
||||
status: "Esperando datos...",
|
||||
titleIcon: '⏲ ',
|
||||
className: "col-12 col-md-6 col-lg-3",
|
||||
link: false,
|
||||
text: true
|
||||
},
|
||||
|
||||
{
|
||||
id: 4,
|
||||
title: "Nivel de CO",
|
||||
content: "N/A",
|
||||
status: "Esperando datos...",
|
||||
titleIcon: '☁ ',
|
||||
className: "col-12 col-md-6 col-lg-3",
|
||||
link: false,
|
||||
text: true
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
if (data) {
|
||||
let coData = data[2];
|
||||
let tempData = data[1];
|
||||
@@ -61,7 +101,7 @@ const SummaryCardsContent = () => {
|
||||
}
|
||||
|
||||
return (
|
||||
<CardContainer text cards={CardsData} />
|
||||
<CardContainer cards={CardsData} />
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user