Skip to content

hpssjellis/built-in-ai-wifi-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

built-in-ai-wifi-chat

https://www.youtube.com/watch?v=NTYGkRdZ5Yw&list=PL57Dnr1H_egsvfrvJdJdeVPaHVmy87S0i&index=3&pp=iAQB built-in-ai-wifi-chat

Update: Oct 12, 2025

  1. We have moved the ESP32 code into it's own folder. That is the main code area that needs the ESP32 microcontroller

  2. The nodeJS code has been moved to it's own folder and we will continue to develop it, however we had problems making a standalone hotspot on windows, while the esp32 solution worked immediately. The node code is now working but has several steps that need to be completed explained in the node folder

Note: For all methods to reduce CORS complaints from your browser any webpages should be loaded locally with then allows http connections. IF the page was loaded from the internet your browser would inforce https connections and the websocket would fail. To create a secure websocet wss that is more complex than we wanted to work with in this project.

.

.



Github and WiFi Login
wifi-SSID



Arduino IDE passwords and Serial Monitor for the IP
arduino-serial-monitor



Student access
student-hello



HTTP connection (insecure)
not-secure



ws://#.#.#.#/ws
teacher-login



Teacher Connect
teacher-start



Pre-Prompt
teacher-monitor



Student Prompt
student-prompt

.

.

.

.

.

.

.

.

Old info

Download this repository
extract it
open the main folder that has the node-server.js file
right click Open windows terminal
node -v
npm -v
npm install -g ws
node node-server.js
load teacher-socket.html file

have students enter the url given in the node-server output, or give them the link to the student-socket.html file
students send prompts to the teacher-socket.html which sends back the LLM reply.

All AI chat using chrome built in AI and a mobile hotspot (hopefully without internet)

With internet working
Start the mobile hotspot
disconect your internet.
Set up the node server
access your client to the hotspot url
load the url or run websocket.html and enter the url ws://#.#.#.#:8080

Chat

Probably a good idea to have a usb wifi adaptor so that the hotspot setup allows wifi without a working internet site.

Here is the link to the web-socket page. Best to download it when you have internet. The web server also generates a version of this also.

https://hpssjellis.github.io/built-in-ai-wifi-chat/student-socket.html

I have not tested this yet.

Windows Mobile Hotspot is designed primarily to share an internet connection, which is why it often prevents you from starting it when no internet is available. Since you only want a local network, there are a few workarounds:

  1. Install a Virtual Network Adapter A common workaround is to create a virtual, non-physical network adapter that Windows can "share" as its internet source, thus tricking the Mobile Hotspot feature into activating.

Open Device Manager (right-click the Start button and select it).

Click on your computer name at the top of the list.

Go to the Action menu and select "Add legacy hardware."

In the wizard, choose "Install the hardware that I manually select from a list (Advanced)" and click Next.

Select "Network Adapters" and click Next.

On the left, select "Microsoft" and on the right, select "Microsoft KM-TEST Loopback Adapter" (you may have to wait for the list to populate).

Click Next and then Finish.

Open Settings and navigate to Network & Internet > Mobile hotspot.

Under "Share my internet connection from," select the new Loopback adapter you just created.

Turn on the Mobile hotspot toggle.

Since the Loopback adapter provides a valid "connection" to share, the hotspot should start, creating your local Wi-Fi network even without an external internet source.

  1. Use Third-Party Hotspot Software Alternatively, you can use third-party software designed to create Wi-Fi hotspots, as many of these applications don't have the same internet connection requirement as the built-in Windows feature.

A quick search may reveal options such as MyPublicWiFi or others available in the Microsoft Store that specifically allow you to create a hotspot for a local network only.

About

All AI chat using chrome built in AI and a mobile hotspot (hopefully without internet)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published