Skip to content

Commit

Permalink
Fixes config, table field
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jadudm committed Nov 4, 2022
1 parent 2f6874a commit 2a167d1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion imls-backend/init/120-tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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
);

Expand Down
13 changes: 9 additions & 4 deletions imls-windows-installer/session-counter.ini
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 2a167d1

Please sign in to comment.