Initial commit of SOP Monitoring Dashboard

This commit is contained in:
2026-07-28 12:50:28 +05:30
commit 0894a9c21e
40 changed files with 5676 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
const { Client } = require('pg');
const client = new Client({ user: 'admin', host: 'localhost', database: 'sop_monitoring', password: 'password', port: 5432 });
client.connect().then(() => client.query("SELECT * FROM events WHERE camera_zone = 'Conveyor' ORDER BY start_time ASC"))
.then(res => { console.log(res.rows); client.end(); }).catch(console.error);