Skip to content

Commit 52c8988

Browse files
committed
updated setup.md
1 parent e9bb5cd commit 52c8988

2 files changed

Lines changed: 17 additions & 8 deletions

File tree

setup.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ VITE_FIREBASE_STORAGE_BUCKET=
107107
VITE_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
110111
VITE_API_DOMAIN=
111112

112113
# set this to the livekit websocket url (if using livekit)
@@ -208,6 +209,17 @@ Run cypress tests:
208209

209210
This 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

213225
Setup virtual Python environment:

webmoti-react/src/constants.ts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,11 @@ export const GALLERY_VIEW_MARGIN = 3;
2727
export const WEBMOTI_CAMERA_1 = 'Student-View';
2828
export 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

3936
export const enum MsgTypes {
4037
Hand = 'HAND',

0 commit comments

Comments
 (0)