Skip to content

Commit

Permalink
Deployed b7bedb8 with MkDocs version: 1.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
mgineer85 committed Oct 29, 2023
1 parent 569137a commit 66f53c6
Show file tree
Hide file tree
Showing 5 changed files with 102 additions and 30 deletions.
2 changes: 1 addition & 1 deletion reference/api/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@
<h1 id="rest-api">REST API</h1>
<p>Following REST-API is provided by the photobooth app.
Use it to integrate with your own clients or smart devices like buzzer.</p>
<p><iframe class="swagger-ui-iframe" frameborder="0" id="03112d17" src="swagger-03112d17.html" style="overflow:hidden;width:100%;" width="100%"></iframe></p>
<p><iframe class="swagger-ui-iframe" frameborder="0" id="65e063fc" src="swagger-65e063fc.html" style="overflow:hidden;width:100%;" width="100%"></iframe></p>
</article>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
}

const resize_ob = new ResizeObserver(function(entries) {
parent.update_swagger_ui_iframe_height("03112d17");
parent.update_swagger_ui_iframe_height("65e063fc");
});

// start observing for resizing
Expand Down
2 changes: 1 addition & 1 deletion search/search_index.json

Large diffs are not rendered by default.

126 changes: 99 additions & 27 deletions setup/installation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -420,23 +420,55 @@
</nav>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="#desktop-shortcut-to-webfrontend">
Desktop shortcut to webfrontend
<a class="md-nav__link" href="#desktop-shortcut-and-autostart">
Desktop shortcut and autostart
</a>
<nav aria-label="Desktop shortcut and autostart" class="md-nav">
<ul class="md-nav__list">
<li class="md-nav__item">
<a class="md-nav__link" href="#bookworm-platform">
Bookworm Platform
</a>
<nav aria-label="Bookworm Platform" class="md-nav">
<ul class="md-nav__list">
<li class="md-nav__item">
<a class="md-nav__link" href="#desktop-icon-bookworm">
Desktop Icon (Bookworm)
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="#autostart-webfrontend-on-system-startup">
Autostart webfrontend on system startup
<a class="md-nav__link" href="#autostart-on-system-startup-bookworm">
Autostart on system startup (Bookworm)
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="#bullseye-platform">
Bullseye Platform
</a>
<nav aria-label="Bullseye Platform" class="md-nav">
<ul class="md-nav__list">
<li class="md-nav__item">
<a class="md-nav__link" href="#desktop-icon-bullseye">
Desktop Icon (Bullseye)
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="#install-development-version">
Install development version
<a class="md-nav__link" href="#autostart-on-system-startup-bullseye">
Autostart on system startup (Bullseye)
</a>
</li>
</ul>
</nav>
</li>
</ul>
</nav>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="../update/">
<span class="md-ellipsis">
Expand Down Expand Up @@ -770,20 +802,52 @@
</nav>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="#desktop-shortcut-to-webfrontend">
Desktop shortcut to webfrontend
<a class="md-nav__link" href="#desktop-shortcut-and-autostart">
Desktop shortcut and autostart
</a>
<nav aria-label="Desktop shortcut and autostart" class="md-nav">
<ul class="md-nav__list">
<li class="md-nav__item">
<a class="md-nav__link" href="#bookworm-platform">
Bookworm Platform
</a>
<nav aria-label="Bookworm Platform" class="md-nav">
<ul class="md-nav__list">
<li class="md-nav__item">
<a class="md-nav__link" href="#desktop-icon-bookworm">
Desktop Icon (Bookworm)
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="#autostart-webfrontend-on-system-startup">
Autostart webfrontend on system startup
<a class="md-nav__link" href="#autostart-on-system-startup-bookworm">
Autostart on system startup (Bookworm)
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="#bullseye-platform">
Bullseye Platform
</a>
<nav aria-label="Bullseye Platform" class="md-nav">
<ul class="md-nav__list">
<li class="md-nav__item">
<a class="md-nav__link" href="#install-development-version">
Install development version
<a class="md-nav__link" href="#desktop-icon-bullseye">
Desktop Icon (Bullseye)
</a>
</li>
<li class="md-nav__item">
<a class="md-nav__link" href="#autostart-on-system-startup-bullseye">
Autostart on system startup (Bullseye)
</a>
</li>
</ul>
</nav>
</li>
</ul>
</nav>
</li>
</ul>
</nav>
</div>
Expand Down Expand Up @@ -864,20 +928,14 @@ <h4 id="update-system">Update System</h4>
<h4 id="install-system-dependencies">Install system dependencies</h4>
<p>Following dependencies to be installed for Raspberry Pi OS 64bit.
Adjust for debian/ubuntu. Picamera2 is only available on Raspberry Pi.</p>
<div class="highlight"><pre><span></span><code><span class="c1"># basic stuff (Bullseye/Bookworm)</span>
<div class="highlight"><pre><span></span><code><span class="c1"># basic stuff</span>
sudo<span class="w"> </span>apt-get<span class="w"> </span>-y<span class="w"> </span>install<span class="w"> </span>libturbojpeg0<span class="w"> </span>python3-pip<span class="w"> </span>libgl1<span class="w"> </span>libgphoto2-dev<span class="w"> </span>fonts-noto-color-emoji<span class="w"> </span>rclone<span class="w"> </span>inotify-tools
<span class="c1"># to use camera modules on rpi (Bullseye/Bookworm)</span>
sudo<span class="w"> </span>apt-get<span class="w"> </span>-y<span class="w"> </span>install<span class="w"> </span>python3-picamera2
<span class="c1"># fix numpy dependency in 1.2.6 (Bookworm only)</span>
sudo<span class="w"> </span>apt-get<span class="w"> </span>-y<span class="w"> </span>install<span class="w"> </span>libopenblas-dev
<span class="c1"># fix opencv dependency (Bookworm only)</span>
sudo<span class="w"> </span>apt-get<span class="w"> </span>-y<span class="w"> </span>install<span class="w"> </span>libatlas-base-dev
</code></pre></div>
<h4 id="tweak-system-settings">Tweak system settings</h4>
<p>To use hardware input from keyboard or presenter, the current user needs to be added to tty and input group.</p>
<div class="highlight"><pre><span></span><code>sudo<span class="w"> </span>usermod<span class="w"> </span>--append<span class="w"> </span>--groups<span class="w"> </span>tty,input<span class="w"> </span><span class="k">$(</span>whoami<span class="k">)</span>
<span class="c1">#example: sudo usermod --append --groups tty,input pi</span>
</code></pre></div>
<p>You also might want to <a href="../../extras/display/">check some display settings</a>.</p>
<h3 id="debianubuntu">Debian/Ubuntu</h3>
<p>There are no dedicated installation instructions available by now.
It should work similar to Raspberry Pi installation, please try these. Feel free to send a pull request to improve the instructions.</p>
Expand Down Expand Up @@ -984,7 +1042,26 @@ <h3 id="manual-service-setup">Manual service setup</h3>
<div class="highlight"><pre><span></span><code>journalctl --user --unit photobooth-app.service
</code></pre></div></p>
</div>
<h2 id="desktop-shortcut-to-webfrontend">Desktop shortcut to webfrontend</h2>
<h2 id="desktop-shortcut-and-autostart">Desktop shortcut and autostart</h2>
<h3 id="bookworm-platform">Bookworm Platform</h3>
<h4 id="desktop-icon-bookworm">Desktop Icon (Bookworm)</h4>
<p>Create the following file at the given location:</p>
<div class="highlight"><span class="filename">~/Desktop/photobooth-app.desktop</span><pre><span></span><code><span class="k">[Desktop Entry]</span>
<span class="na">Version</span><span class="o">=</span><span class="s">1.3</span>
<span class="na">Terminal</span><span class="o">=</span><span class="s">false</span>
<span class="na">Type</span><span class="o">=</span><span class="s">Application</span>
<span class="na">Name</span><span class="o">=</span><span class="s">Photobooth-App</span>
<span class="hll"><span class="na">Exec</span><span class="o">=</span><span class="s">chromium-browser--kiosk --noerrdialogs --disable-infobars --no-first-run --ozone-platform=wayland --enable-features=OverlayScrollbar --start-maximized http://localhost:8000/</span>
</span><span class="na">StartupNotify</span><span class="o">=</span><span class="s">false</span>
</code></pre></div>
<h4 id="autostart-on-system-startup-bookworm">Autostart on system startup (Bookworm)</h4>
<p>Modify the file below as stated. If there is a section <code>[autostart]</code> already, just add the line <code>chromium = ...</code> otherwise insert the complete section.</p>
<div class="highlight"><span class="filename">~/config/wayfire.ini</span><pre><span></span><code><span class="k">[autostart]</span>
<span class="hll"><span class="na">chromium</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">chromium-browser http://localhost:8000/ --kiosk --noerrdialogs --disable-infobars --no-first-run --ozone-platform=wayland --enable-features=OverlayScrollbar</span>
</span></code></pre></div>
<p>After reboot chromium will start automatically.</p>
<h3 id="bullseye-platform">Bullseye Platform</h3>
<h4 id="desktop-icon-bullseye">Desktop Icon (Bullseye)</h4>
<p>Create the following file at the given location:</p>
<div class="highlight"><span class="filename">~/Desktop/photobooth-app.desktop</span><pre><span></span><code><span class="k">[Desktop Entry]</span>
<span class="na">Version</span><span class="o">=</span><span class="s">1.3</span>
Expand All @@ -994,15 +1071,10 @@ <h2 id="desktop-shortcut-to-webfrontend">Desktop shortcut to webfrontend</h2>
<span class="hll"><span class="na">Exec</span><span class="o">=</span><span class="s">chromium-browser --kiosk http://localhost:8000/ --noerrdialogs --disable-infobars --no-first-run --check-for-update-interval=31536000 --touch-events=enabled --password-store=basic</span>
</span><span class="na">StartupNotify</span><span class="o">=</span><span class="s">false</span>
</code></pre></div>
<h2 id="autostart-webfrontend-on-system-startup">Autostart webfrontend on system startup</h2>
<h4 id="autostart-on-system-startup-bullseye">Autostart on system startup (Bullseye)</h4>
<p>Create the same file as for desktop shortcut above and place it in
<code>/etc/xdg/autostart/photobooth-app.desktop</code>.
After reboot chromium will start automatically.</p>
<h2 id="install-development-version">Install development version</h2>
<p>Stable releases are published at <a href="https://pypi.org/project/photobooth-app/">PyPI registry</a> usually.
To test the latest development version install directly from git:</p>
<div class="highlight"><pre><span></span><code>pip<span class="w"> </span>install<span class="w"> </span>git+https://github.com/mgrl/photobooth-app.git@dev
</code></pre></div>
</article>
</div>
</div>
Expand Down
Binary file modified sitemap.xml.gz
Binary file not shown.

0 comments on commit 66f53c6

Please sign in to comment.