A Lovebox clone (see https://en.lovebox.love/) inspired by the work of julisa99. This versions uses websocket to send messages that are displayed by the Wemos client in a 3D printed case.
It's one year later and I also stumbled across this new LoveBox approach. I also struggled with the setup.
Here's what I had to find out:
Theres a couple of libraries that need to be installed (one for the Servo and one for the Display)
As for the Display, you need to install "ESP8266 and ESP32 Oled Driver for SSD1306 display" for the code to work
You need to copy both files server.js and package.json to a system you want to be your webserver
When running npm install from that folder, the Node Package Manager reads the package.json file and installs all dependencies
When running node index.js the webserver starts and creates a websocket on the machine that you run it from
In your local network, the socket will be reachable via your local computers' ip address (for instance 192.168.178.62) on port 8080
So when configuring your credentials.h file, you need to put both your wlans credentials in there as well as the websockets address (for instance ws://192.168.178.62:8080)
To try it out, you need to compile and upload the message.ino to your wemos d1 mini and have your websocket started (see above)
Your display should display "hi server"
To send messages, you need to have a websocket client at your hands
First off thank you for creating another avenue to the lovebox project to receive messages.
Is there a way you can include a bit more detail in the software configuration?
I have been trying to learn about creating web socket servers and I am struggling with trying to implement your files.
After typing node index.js and navigating to http://localhost:8080/ i get "upgrade required"
I am assuming I did not create the server correctly...
This is a christmas gift and I am running out of options trying to get this to work. No luck with gist polls either.