ways to have code in PI work at school. Please help

December 14, 2023, 17:36

RattFan

Ok, so quick run down; I have code in my laptop that will take in audio and detect city names, then it will send the city names to the Raspberry Pi, get the weather info about the city, and then send it back to my laptop to a TTS. Issue is, i would LIKE to take this final project to school, but, there are some issues. The code works at home when both the laptop and Pi are connected to the same wifi network, so i thought about using my phone as a hotspot, but, it took a while for the Pi to connect to it, and, id need to change the IPs in the code to fit the new IPs when connected to the hotspot. I could change the code at home whule connected to the hotspot, but, then, another issue is, the fact that at school i dont have a monitor, keyboard or mouse to check the PI. While i have an internal file script that runs the Pi code when it connects to a wifi, i wont fully know if the Pi connects to the hotspot mainly due to having issues when trying to connect here at home to the hotspot. If anyone has any solutions, please let me know asap

illegitimate_egg

Why use a pi at all?

RattFan

School work

illegitimate_egg

but it's not really doing anything

illegitimate_egg

except making this more complicated

oops.se

Stop using IP in the code and rely on "hostname" and the hostname is multicasted over the network with mDNS. And as for the school network they could have implemented "Client isolation" a technology that stop clients on the same WLAN to reach each other.