Actualización del archivo application_events.json para incluir un nuevo evento de inicio de aplicación y ajuste de la fecha de última actualización. Modificación en reglas.mdc para aplicar siempre las reglas. Se implementó una nueva cuadrícula de configuración en index.html para mejorar la organización de los formularios de configuración de PLC y UDP.
This commit is contained in:
parent
f276eb96c5
commit
631850125a
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
alwaysApply: false
|
||||
alwaysApply: true
|
||||
---
|
||||
You can use .doc\MemoriaDeEvolucion.md to obtain a context of the latest modifications and concepts about this project. I would like that with the important knowledge and important decisions acquired in each modification you add them to MemoriaDeEvolucion.md maintaining the style that we already have of simple text without too much code and a summarized semantic.
|
||||
|
||||
|
|
|
@ -1861,8 +1861,15 @@
|
|||
"event_type": "application_started",
|
||||
"message": "Application initialization completed successfully",
|
||||
"details": {}
|
||||
},
|
||||
{
|
||||
"timestamp": "2025-07-19T12:18:29.904793",
|
||||
"level": "info",
|
||||
"event_type": "application_started",
|
||||
"message": "Application initialization completed successfully",
|
||||
"details": {}
|
||||
}
|
||||
],
|
||||
"last_updated": "2025-07-19T12:16:12.281197",
|
||||
"total_entries": 171
|
||||
"last_updated": "2025-07-19T12:18:29.904793",
|
||||
"total_entries": 172
|
||||
}
|
|
@ -69,6 +69,14 @@
|
|||
color: var(--pico-muted-color);
|
||||
}
|
||||
|
||||
/* Configuration grid */
|
||||
.config-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
|
||||
gap: 1.5rem;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
/* Form styling */
|
||||
.form-row {
|
||||
display: grid;
|
||||
|
@ -271,6 +279,10 @@
|
|||
height: 1.2em;
|
||||
}
|
||||
|
||||
.config-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.form-row {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
@ -440,57 +452,62 @@
|
|||
<!-- Status messages -->
|
||||
<div id="messages"></div>
|
||||
|
||||
<!-- PLC Configuration -->
|
||||
<article>
|
||||
<header>⚙️ PLC S7-315 Configuration</header>
|
||||
<form id="plc-config-form">
|
||||
<div class="form-row">
|
||||
<label>
|
||||
PLC IP Address:
|
||||
<input type="text" id="plc-ip" value="{{ status.plc_config.ip }}" placeholder="192.168.1.100">
|
||||
</label>
|
||||
<label>
|
||||
Rack:
|
||||
<input type="number" id="plc-rack" value="{{ status.plc_config.rack }}" min="0" max="7">
|
||||
</label>
|
||||
<label>
|
||||
Slot:
|
||||
<input type="number" id="plc-slot" value="{{ status.plc_config.slot }}" min="0" max="31">
|
||||
</label>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<button type="submit">💾 Save Configuration</button>
|
||||
<button type="button" id="connect-btn">🔗 Connect PLC</button>
|
||||
<button type="button" id="disconnect-btn" class="secondary">❌ Disconnect PLC</button>
|
||||
</div>
|
||||
</form>
|
||||
</article>
|
||||
<!-- Configuration Grid -->
|
||||
<div class="config-grid">
|
||||
<!-- PLC Configuration -->
|
||||
<article>
|
||||
<header>⚙️ PLC S7-315 Configuration</header>
|
||||
<form id="plc-config-form">
|
||||
<div class="form-row">
|
||||
<label>
|
||||
PLC IP Address:
|
||||
<input type="text" id="plc-ip" value="{{ status.plc_config.ip }}"
|
||||
placeholder="192.168.1.100">
|
||||
</label>
|
||||
<label>
|
||||
Rack:
|
||||
<input type="number" id="plc-rack" value="{{ status.plc_config.rack }}" min="0" max="7">
|
||||
</label>
|
||||
<label>
|
||||
Slot:
|
||||
<input type="number" id="plc-slot" value="{{ status.plc_config.slot }}" min="0" max="31">
|
||||
</label>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<button type="submit">💾 Save Configuration</button>
|
||||
<button type="button" id="connect-btn">🔗 Connect PLC</button>
|
||||
<button type="button" id="disconnect-btn" class="secondary">❌ Disconnect PLC</button>
|
||||
</div>
|
||||
</form>
|
||||
</article>
|
||||
|
||||
<!-- UDP Configuration -->
|
||||
<article>
|
||||
<header>🌐 UDP Gateway Configuration (PlotJuggler)</header>
|
||||
<form id="udp-config-form">
|
||||
<div class="form-row">
|
||||
<label>
|
||||
UDP Host:
|
||||
<input type="text" id="udp-host" value="{{ status.udp_config.host }}" placeholder="127.0.0.1">
|
||||
</label>
|
||||
<label>
|
||||
UDP Port:
|
||||
<input type="number" id="udp-port" value="{{ status.udp_config.port }}" min="1" max="65535">
|
||||
</label>
|
||||
<label>
|
||||
Sampling Interval (s):
|
||||
<input type="number" id="sampling-interval" value="{{ status.sampling_interval }}" min="0.01"
|
||||
max="10" step="0.01">
|
||||
</label>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<button type="submit">💾 Save Configuration</button>
|
||||
<button type="button" id="update-sampling-btn" class="secondary">⏱️ Update Interval</button>
|
||||
</div>
|
||||
</form>
|
||||
</article>
|
||||
<!-- UDP Configuration -->
|
||||
<article>
|
||||
<header>🌐 UDP Gateway Configuration (PlotJuggler)</header>
|
||||
<form id="udp-config-form">
|
||||
<div class="form-row">
|
||||
<label>
|
||||
UDP Host:
|
||||
<input type="text" id="udp-host" value="{{ status.udp_config.host }}"
|
||||
placeholder="127.0.0.1">
|
||||
</label>
|
||||
<label>
|
||||
UDP Port:
|
||||
<input type="number" id="udp-port" value="{{ status.udp_config.port }}" min="1" max="65535">
|
||||
</label>
|
||||
<label>
|
||||
Sampling Interval (s):
|
||||
<input type="number" id="sampling-interval" value="{{ status.sampling_interval }}"
|
||||
min="0.01" max="10" step="0.01">
|
||||
</label>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<button type="submit">💾 Save Configuration</button>
|
||||
<button type="button" id="update-sampling-btn" class="secondary">⏱️ Update Interval</button>
|
||||
</div>
|
||||
</form>
|
||||
</article>
|
||||
</div>
|
||||
|
||||
<!-- Dataset Management -->
|
||||
<article>
|
||||
|
|
Loading…
Reference in New Issue