I’m desperately trying to install JSON Serial Port Server on my RPi, but since I am a newbie to RPi, I find it difficult.
I seem to remember there was a good how-to on this on the git page for the sw 1-2 years ago, but now I cannot find it.
Now I can only find a setup for the sever to start during boot.
Doe anyone have a good how-to on installing this?
PS: the more step by step and basic, the better.
Extract downloaded file: tar -xpzf /home/pi/Downloads/serial-port-json-server-1.95_linux_arm.tar.gz
Copy SPJS server binary to /usr/bin/ (I don’t want to run it from Downloads folder and I want shorter file name): cp serial-port-json-server-1.95_linux_arm/serial-port-json-server /usr/bin/spjs195
Edit /etc/rc.local file: vi /etc/rc.local or nano /etc/rc.local (depending what editor you use) and add a line inside the file, but before line exit 0: /usr/bin/spjs195
Save the /etc/rc.local file:
vi: press ESC, type :wq and press ENTER
nano: press CTRL+X and Y to confirm
Make sure /etc/rc.local has been updated: cat /etc/rc.local
Reboot rPi: reboot
You’re done with all steps and SPJS will autostart everytime you power on rPi.
Great write up @sszafran . In version 1.95 Added ability to run -createstartupscript on Linux to create an /etc/init.d launcher for auto-start of SPJS on boot