Are there any step-by-step instructions on how to set up Serial Port JSON Server and the picam to run on a Raspberry Pi 3? Ideally, I want to be able to turn on the power to my CNC machine and RPi and be able to control the CNC from anywhere. Right now I have a Arduino Uno + GShield running GRBL but switch out the Uno for my Due and run g2core.
There are a couple Youtube videos that do show downloading SPJS and running it, but there’s actually not a good one on Raspberry Pi showing how to download and then setup a service that auto starts on boot.
There is a blog though that somebody wrote that is good https://nelsontrujillo.com/2015/06/03/controlling-the-cnc-with-raspberry-pi/
I also have the startup script on the Github page for Serial Port JSON Server. https://nelsontrujillo.com/2015/06/03/controlling-the-cnc-with-raspberry-pi/
Thanks, John. I tried following the page and when I entered the “wget
http://chilipeppr.com/downloads/v1.86/serial-port-json-server-1.86_linux_arm.tar.gz” I got ERROR 406: Not Acceptable. Also, does it matter if I use v1.91 or 1.92 instead?
You should always use the latest released SPJS. They are on the Github page, so that link you’re using for wget is not the right one. Go to github releases page and get latest. https://github.com/chilipeppr/serial-port-json-server/releases
I just downloaded the arm binaries fron inside Chilipeppr. SCP to the Pi. Set /etc/http://rc.local to run it. That’s all.
I keep running into ERROR 406: Not Acceptable after running “wget http://chilipeppr.com/downloads…”
Can’t tell what URL you’re trying to download. Are you downloading the latest Github release via wget? If so, your URL should be the Github URL of the binary from the releases tab.
I think I solved it!