Skip to content

Commit

Permalink
problematic camera should be working
Browse files Browse the repository at this point in the history
  • Loading branch information
dougchestnut committed Jun 14, 2024
1 parent a20f87d commit 6a29b96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/occupancy-tools/lib/gate-counter.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class GateCounter {
{ loc: 'Clemons', url: 'http://172.29.5.87/local/occupancy-estimator/.api?occupancy-export-json&res=24h&date=' },
{ loc: 'FAL', url: 'http://172.29.8.29/local/people-counter/.api?export-json&res=24h&date=' },
{ loc: 'Music', url: 'http://172.29.72.19/local/people-counter/.api?export-json&res=24h&date=' },
{ loc: 'Shannon', gateID: 4, software: "3d", urls: ['http://172.29.3.47', 'http://172.29.3.48', 'http://172.29.3.49', 'http://172.29.3.50', /*'http://172.29.3.51',*/ 'http://172.29.3.52', 'http://172.29.3.53', 'http://172.29.3.54', 'http://172.29.3.55', 'http://172.29.3.56', 'http://172.29.3.57', 'http://172.29.3.58', 'http://172.29.3.59', 'http://172.29.3.60'].map(url => `${url}/a3dpc/api/export/json?start=yesterday&end=today&resolution=day`) }
{ loc: 'Shannon', gateID: 4, software: "3d", urls: ['http://172.29.3.47', 'http://172.29.3.48', 'http://172.29.3.49', 'http://172.29.3.50', 'http://172.29.3.51', 'http://172.29.3.52', 'http://172.29.3.53', 'http://172.29.3.54', 'http://172.29.3.55', 'http://172.29.3.56', 'http://172.29.3.57', 'http://172.29.3.58', 'http://172.29.3.59', 'http://172.29.3.60'].map(url => `${url}/a3dpc/api/export/json?start=yesterday&end=today&resolution=day`) }
];
// Initialize the digest-fetch client with authentication
const client = new DigestFetch(process.env.AXISUSER, process.env.AXISPASS, { algorithm: 'MD5' });
Expand Down
3 changes: 3 additions & 0 deletions apps/occupancy-tools/lib/occupancy-poller.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/env node
import { config } from 'dotenv';
import { resolve } from 'path';
import GateCounter from './gate-counter.js';
config({ path: resolve(__dirname, '../.env.local') });
class OccupancyPoller {
constructor() {
// Initialize gateCounter with an instance of GateCounter class
Expand Down

0 comments on commit 6a29b96

Please sign in to comment.