From 2a167d1c4d60a62b5bf4f15583d578de314841ad Mon Sep 17 00:00:00 2001 From: Matt Jadud Date: Fri, 4 Nov 2022 10:26:17 -0400 Subject: [PATCH] Fixes config, table field 1. The table field for the serial was VAR(32). Windows serials could be longer. Bumping to VAR(64). 2. The session counter ini template for the Windows installer is out of date. Updating to reflect recent changes. NOTE: It does not have a *good* default URL yet. I used localhost. --- imls-backend/init/120-tables.sql | 2 +- imls-windows-installer/session-counter.ini | 13 +++++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/imls-backend/init/120-tables.sql b/imls-backend/init/120-tables.sql index 0e352043..14516e06 100644 --- a/imls-backend/init/120-tables.sql +++ b/imls-backend/init/120-tables.sql @@ -30,7 +30,7 @@ imlswifi.heartbeats ( heartbeat_id SERIAL PRIMARY KEY, fscs_id character varying(16) NOT NULL REFERENCES imlswifi.libraries(fscs_id), ping_time timestamp with time zone DEFAULT CURRENT_TIMESTAMP, - sensor_serial character varying(32) NOT NULL, + sensor_serial character varying(64) NOT NULL, sensor_version character varying(16) NOT NULL ); diff --git a/imls-windows-installer/session-counter.ini b/imls-windows-installer/session-counter.ini index 54e53914..e1211c27 100644 --- a/imls-windows-installer/session-counter.ini +++ b/imls-windows-installer/session-counter.ini @@ -1,21 +1,26 @@ [device] [api] -host=localhost:3000 +host=localhost scheme=http -pres_uri=/rpc/update_presence -hb_uri=/rpc/update_hb +port=3000 +presences_uri=/rpc/update_presence +heartbeat_uri=/rpc/beat_the_heart +login_uri=/rpc/login [config] maximum_minutes=600 minimum_minutes=5 +device_memory=7200 [cron] +data_collection_cron=*/2 * * * * +heartbeat=*/10 * * * * reset=0 0 * * * [log] level=DEBUG -loggers=local:stderr,local:tmp,api:directus +loggers=local:stderr,local:tmp [mode] run=prod