Closed WillNilges closed 2 years ago
wtf why did I just see it get an l_well
nvm when I asked for a n_stairs
nvm
Oh, it's the guest sending that.... wtf?
The client is caught by the music loop and misses it. This is because they're running in the same "Task."
Christ I'm gonna need to update the README again lol
I noticed that when you make multiple requests, sometimes it takes a sec for the subsequent requests to work. Sometimes they don't work at all.
Looked at the logs, and it seems like there's some websocket stuff that's happening that shouldn't be.
Maybe I should make sure the websocket is closed under all circumstances.
Also I should handle websocket-related errors (like the socket being closed) and report them to the user
Also I should fix the awkward-as-all-hell way that I pass the websocket
and mqttclient
to the functions in the server. Those should definitely be in an object. I think trying to combine the actual "Event" object with the "Message" object was a mistake, and I should fix it.
Also I should fix the global variable bullshit that's happening on the Client.
Hmm the client isn't taking the "cancel" properly....
It's a bit flaky. Seems like it might actually be an issue on the Guest (aforementioned websocket nonsense)
Bro there are so many issues that I need to create after this.
Now I want to move the jingles into a file of some kind.
lol I also need to fix the case when people leave their name blank. I think I want to yell at them if that happens...
Ah fuck I still have to re-implement the silence feature
It would also be cool if the guest interface would display the devices currently alive/muted/dead.
Just witnessed the stupid fucking thing loop through a jingle multiple times, WHILE acknowledging a NVM message, and just... not stopping the playback. Somehow, NVM's are lower priority. Sort of makes sense, because you need the MQTT loop to work, but like, it GOT the thing, and it still kept playing...
hmm. It seems to happen for l_well, but not for Level 1 Elevator lobby...
Oh I should add an @here
to the message so people get pinged. Maybe also a few emojis to make it pop. I wish I could change the background color or something.
Perhaps a picture? IDK these comments are not relevant to this PR, I'm just lazy.
Shit I need to update the library documentation and also document the Jingles.
Maybe move them into another folder too
Yea, I upgraded CircuitPython and basically re-wrote the whole thing. It... kinda works.