File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ VITE_FIREBASE_STORAGE_BUCKET=
107107VITE_FIREBASE_MESSAGING_SENDER_ID=
108108
109109# set this to the remote.it persistent link (ending in /api)
110+ # if running hand server locally, comment this out
110111VITE_API_DOMAIN=
111112
112113# set this to the livekit websocket url (if using livekit)
@@ -208,6 +209,17 @@ Run cypress tests:
208209
209210This runs on the raspberry pi (student-view only).
210211
212+ It's responsible for:
213+
214+ - Raising the hand on the raspberry pi
215+ - Keeping the hand queue updated
216+ - Live captions
217+ - Tactile notifications (from the hand queue website)
218+ - Ai schedules
219+ - Text to speech
220+ - Push to talk using livekit
221+ - Hosting the website for hand queue and in person students
222+
211223### Server setup
212224
213225Setup virtual Python environment:
Original file line number Diff line number Diff line change @@ -27,14 +27,11 @@ export const GALLERY_VIEW_MARGIN = 3;
2727export const WEBMOTI_CAMERA_1 = 'Student-View' ;
2828export const WEBMOTI_CAMERA_2 = 'Board-View' ;
2929
30- // uncomment for testing (and comment other)
31- // const API_DOMAIN_ = '127.0.0.1:8080/api'
32- // export const HTTPS_SERVER_URL = `http://${API_DOMAIN_}`
33- // export const WS_SERVER_URL = `ws://${API_DOMAIN_}/ws`;
34-
35- const API_DOMAIN_ = clientEnv . API_DOMAIN ( ) ;
36- export const HTTPS_SERVER_URL = `https://${ API_DOMAIN_ } ` ;
37- export const WS_SERVER_URL = `wss://${ API_DOMAIN_ } /ws` ;
30+ const API_DOMAIN_ = clientEnv . API_DOMAIN ( ) || '127.0.0.1:8080/api' ;
31+
32+ const isHttps = API_DOMAIN_ . startsWith ( '127.0.0.1' ) ? false : true ;
33+ export const HTTPS_SERVER_URL = `${ isHttps ? 'https' : 'http' } ://${ API_DOMAIN_ } ` ;
34+ export const WS_SERVER_URL = `${ isHttps ? 'wss' : 'ws' } ://${ API_DOMAIN_ } /ws` ;
3835
3936export const enum MsgTypes {
4037 Hand = 'HAND' ,
You can’t perform that action at this time.
0 commit comments