Java Web Chat Server with soft-button functionality on Raspberry Pi 4B
Initial Copyright 2023 Chris Lukin
- A multi-platform Java 17 Web Chat Server that is integrated with Raspberry Pi 4 B when ran from 64 bit OS.
- When ran on Pi, provides a 3D soft-button in HTML, CSS, and Javascript with near real-time JSON messaging which controls and listens to the primary circuit hard-button. When setup correctly, the soft/hard-button will blink the LED.
- Update the OS
sudo apt-get update
sudo apt-get upgrade
- Remove previous version of wiringpi. Retrieve, build, and install new wiringpi
sudo apt-get remove wiringpi -y
sudo apt-get --yes install git-core gcc make
cd ~
git clone https://github.com/WiringPi/WiringPi --branch master --single-branch wiringpi
cd ~/wiringpi
sudo ./build
- The user must update to at least Java version: java 17.0.6
java --version
-
Reference Project 2.1 Push Button Switch & LED
-
The following changes:
- wiringPi Pin 2, Hard Button - "pressed input pin"
- wiringPi Pin 4, LED
- wiringPi Pin 5, additional Soft Button output pin to Hard Button "pressed input pin"
- Download WebServePi-xx.xx.xx.zip
- Unzip the zip file
- Read the LICENSE and README
- Execute
java -jar WebServePi.jar