WebControl - RaspberryPi Install from Image File

I’m not sure what’s going on there, new to Raspberry, so basically trying different things to see what they do. The first time I tried installing this combo, when my laptop was connected to the AP, I could connect to the internet when a cable was plugged into the raspberry. RaspAP was flaky until I deleted the info under wifi client, but lost my internet connection when connected to the AP. Then I couldn’t update WebControl, so tried reinstalling everything a second time. Hopefully it will remain stable.
Did you get yours to stop hanging?

no, I tried to make my own access point software web page. more on the other post… Do you want to run in bridged mode? Wireless LAN acts as access point and wired connection to internet? It might be faster to get an ethernet switch to boost the signal rather than use the rpi. It sucks power to run as an access point and that may be part of the stabiltiy issue with the rpi.

Not quite sure I understand “bridged mode”, there is a bit of a distance from where the wireless router is in the house to the garage, so not too concerned about internet in the garage. So would be satisfied if the rpi could function dependably as an AP, or just buy a wireless router for the garage, without acutally being connected to the internet.

bridged mode is where you have the rpi function as wifi access point and route traffic to internet via the wired connection. I set up a raspicast device and did the access point manually by following the instructions here. That setup has allowed me to play videos from my phone or local to the rpi without issue. I’d go that way. It seems the prepackaged options are having trouble trying to do so much more than is needed.

1 Like

How do I enable “fake servo” in WebControl?

Actions->Fake Servo (Advanced)… but you have to know the secret code to enable it. It’s the answer to life, the universe, and everything… also is equal to 6 x 7. I made it this way so if someone is stumbling around clicking buttons, they can’t accidentally turn it on.

2 Likes

It fails with this in the logs, do I need a driver board attached?

Abridged Log

1665.53: Sent: B99 ON
1665.55: B99 ON
1665.56: error: Invalid statement

Which firmware are you using? I know holey calibration firmware supports it, but don’t recall if stock firmware does (I don’t think it does, but not entirely sure). You need to use the holey calibration firmware that’s included in webcontrol (Actions->Update Holey…)

Stock firmware, ok, I’ll upgrade, thanks.

I installed webcontrol-0.929-win64-singledirectory on my laptop for comparison, and couldn’t get it to upgrade to holey calibration firmware from that. It worked using webcontrol-0.929-win64-singlefile. I enabled Fake Servo, opened a file and am running it as a simulation. I’ll see how it behaves. I disabled the raspAP interface, for performance reasons. I’ll turn it back on and try it that way as well.

edit:already lost connection with it. Try it with raspAP interface back on.
edit 2: AP would never reconnect. Something got wiped out. Giving up on the rpi as an AP. Less of a headache to go by a wifi router for the garage, and use it locally.

I tried setting up SAMBA last night, and while I could access the Maslow folder from the laptop, I couldn’t get to the GCODE folder, it gave me an error (I reinstalled buster lite last night, and forgot to write down the exact error message). I uploaded a gcode file using webcontrol, searched on it, and it showed up under ./root/.WebControl/gcode/. I tried editing the path to that, with and without the preceding dot to no avail. Did webcontrol previously put the gcode folder under /home/pi/.webcontrol, but now moved it under root?
I didn’t want to spend too much more time on it, since my base install is working nicely. Working on installing ssh client for the phone for reboot and shutdown.

are you running webcontrol with sudo? you should not need to do that. if you run it as pi user than you will have .WebControl/gcode in /home/pi/

oh, yes, that’s how I have it start up. This way if I attach to a tv I get webcontrol commands printed to the screen. If I ran it as a service, I didn’t. Guess there was a negative to that.
Thanks!

when you run it as a service, you can dump the output to the screen.

it has to do with a | or a > and tty. I don’t have the syntax in front of me, but you can google how to output to screen and it will work from the pi user.

EDIT: you can change the .service file and make sure this line is in there:

StandardOutput=tty
StandardError=tty

This is the file typically suggested:

[Unit]
Description=webcontrol
After=network.target
[Service]
ExecStart=/home/pi/webcontrol/webcontrol
WorkingDirectory=/home/pi/webcontrol
StandardOutput=inherit
StandardError=inherit
Restart=never
User=pi
[Install]
WantedBy=multi-user.target

I’ll retry it that way, ability to use Samba to access gcode folder looks like it will be easier to manage files and especially delete them.

This is slick, I added juiceSSH client to my phone and added menus so when I log in with my phone or laptop, it brings up a menu in ssh to shutdown or reboot.

Did webcontrol previously put the gcode folder under /home/pi/.webcontrol, but
now moved it under root?

it depends what user webcontrol is running as, if it’s running as the user
pi, it will be under /home/pi, if it’s running as root it will be under /root

Working on installing ssh client for the phone for reboot and shutdown.

I really like termux for this

This worked great, no need to hardwire switch into raspberry, connect with juiceSSH, log in, brings up a simple menu where you can reboot or shutdown, or you can just escape out of to access command line.

https://thisdavej.com/wp-content/uploads/2016/12/rmenu.png

This reminds me of the commercials when chevy came out with shift-on-the-fly four-wheel drive. they showed the chevy truck entering the mud, the driver then slides the lever and drives through, while the Ford guy entered the mud, jumped out, twisted the manual hub lock on each front tire and then ran back to get in the cab and drive through. Both methods get through, but one has a lot less interaction involved.

Thanks, Samba working now. Can reboot/shutdown from phone, I’ll run WebControl in simulation to check stability.
Anything else helpful to add, so far looks good?
Thanks again with your help.

I’m testing the manual AP installation that Orob linked to, and it is working, so far in testing.

https://www.raspberrypi.org/documentation/configuration/wireless/access-point.md

2 Likes