Skip to content

Running the web app

pootle edited this page Aug 21, 2020 · 2 revisions

The web app provides a detailed interface into the stepper driver app. All the settings can be displayed and many can be updated.

The web app provides access to all the driver app functionality.

The web app takes the following key parameters:

-c --config
The primary configuration and startup file. This is a python file and starts up the stepper driver app and links it to the web server. The app can be run with this file unchanged.

-s --settings
A json file that provides detailed information on the various steppers, how they are driven and values for maximum step rates, acceleration etc. A version of this file that contains (at least) the proper gpio pin numbers for your setup is required.

A typical command is: ./app.py -c config_full.py -s motorunipole.json

Once the app is running, it reports the IP address and port the web server is running on to stdout: Starting webserver on 192.168.33.30:8000

The address won't normally change thereafter so you can autostart the app when the pi is switched on and just connect to it from another computer.

Use a web browser (not edge!) any any local machine to open the web page. I have tested using chrome and firefox on windows, linux and android

Clone this wiki locally