How to build, start and use the web server and web app for configuration? #14
-
Hi @ClemensElflein, maybe you could provide some details here. I think the web server and web app are the least documented (but probably quite powerful) feature of self-o-mat. This repo's current README.md only mentions it as a feature but not how the web server is built, started and used to configure the self-o-mat photo booth. I'd like to shed some light on this.
However, I've collected some hints here:
I've the following questions:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
That is correct!
That is a good idea. To be honest, I have no idea anymore. It has been > 2 years since I created this config.
The web server is included in the self-o-mat software and starts automatically.
Yes, it starts with the software. The web server is accessible on port 9080 on all interfaces.
We have built a bootloader app up-2-date which runs on boot. It shows a nice gui, reads update files from SD card, verifies signatures and starts the photo booth app. I think for a DIY solution this might be overkill. Just create a systemd service.
This is correct.
This is also correct. Although the self-o-mat app links to the CUPS page so you don't need to remember both.
It's Protobuf. The message definitions can be found here: https://github.com/xtech/self-o-mat/blob/master/api.proto
Changes are applied instantly since the web server directly calls C++ functions. All settings are stored on photo booth power off. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your detailed response. I may answer on snippets separately.
Note: Using only http://localhost:9080 will print out "Path not found". Using http://localhost:9080/app (as seen in documentation before) automatically forwards to http://localhost:9080/app/index.html which shows a blank page for me. Edit: Parts of your answer have been modified and copied to the wiki. |
Beta Was this translation helpful? Give feedback.
-
Fixed in 514ec38 |
Beta Was this translation helpful? Give feedback.
Fixed in 514ec38