-
Notifications
You must be signed in to change notification settings - Fork 3
Home
Ryan24313 edited this page Oct 30, 2023
·
2 revisions
All websockets use
@sio.on('{name}')
def vbData():
Connect a classroom to the formbar server to edit the individual classroom. It allows each class to have separate features allowing each class to have different data and music. Adds background music, sound effect noises, and allows use of a remote control to manage to formbar.
- Controls the lights inside of the class room
- Displays the responses given from a given user
- Takes poll data from server through websockets
- Creates a unique color for up to 26 answers
'vbData'
vbData accepts an object from the server with all users poll data in that specific class. That data is taken and converted to a more readable form using totalStudents() and changeData(). This data is then sent to changeLights() to update the lightbar in the classroom.