<%include file="/pageheader.html"/>
<%from kaithem.src import directories, settings
import os%>
<title>KSettings</title>


<h1>Settings and Tools</h1>
<div class="decorative-image-settings decorative-image" style="height: 20em; width: 20em; margin: auto;"></div>

<div class="window paper relative">

    <div style="position: absolute; top: 0%; right: 0%; height: 6em; width: 10em;" class="decorative-image-corner-ur decorative-image"></div>
<dl>

<h3>Help</h3>
<dl>
<dt><a href="/helpmenu"><i class="mdi mdi-help-circle-outline"></i>Help</a></dt>
<dd>View help for this server</dd>
</dl>

<h3><i class="mdi mdi-cog-outline"></i>Settings</h3>
<dl>
<dt><a href="/settings/account"><i class="mdi mdi-account"></i>My Account</a></dt>
<dd>View and edit your account and security info</dd>
<dt><a href="/settings/system"><i class="mdi mdi-cog-outline"></i>System Settings</a></dt>
<dd>View and edit system global settings</dd>
<p class="warning">WARNING: Yappi has High CPU use, may crash on rasPi or similar.</p>
<dt><a href="/auth"><i class="mdi mdi-account-group"></i>Users and Groups</a></dt>
<dd>Manage users, Groups, and Permissions</dd>

<dt>Idle Status Reporting</dt>
<dd>Show idle/screen lock status of this browser in the admin page. Mostly useful for kiosks. <button onclick="IdleDetector.requestPermission()">Enable reporting idle status</button></dd>
<dt><a href="/settings/fix_alsa_volume"><i class="mdi mdi-speaker"></i>Set ALSA mixer volume to full</a></dt>
<dd>Quick shortcut to fix too-quiet Linux audio settings</dd>

</dl>

<h3><i class="mdi mdi-list-box-outline"></i>Logging</h3>
<dl>
<dt><a href="/syslog"><i class="mdi mdi-list-box-outline"></i>System Logs</a></dt>
<dd>View system and debug logs</dd>
<dt><a href="/logs"><i class="mdi mdi-bus-alt-2"></i>Message Bus Logs</a></dt>
<dd>View recent logs from the message bus, choose what topics are logged to the system log.</dd>
<dt><a href="/settings/loginfailures"><i class="mdi mdi-error"></i>Failed Login Attempts</a></dt>
<dd>View IPs that have recently attempted to log in with an incorrect password</dd>
</dl>

<h3><i class="mdi mdi-folder-open"></i>File Management</h3>
<dl>
<dt><a href="/settings/files">File Manager</a></dt>
<dd>Download, upload, view, and delete files on the filesystem(But only those Kaithem can access)</dd>

<dt><a href="/settings/files/${directories.vardir|u}">File Manager(Kaithem var dir)</a></dt>
<dd>Download, upload, view, and delete files on the filesystem(But only those Kaithem can access)</dd>

</dl>

<h3><i class="mdi mdi-light-bulb"></i>Status</h3>
<dl>
<dt><a href="/tagpoints"><i class="mdi mdi-chart-flow-2"></i>Tag Points</a></dt>
<dd>View Tagpoints</dd>
<dt><a href="/settings/processes"><i class="mdi mdi-monitor"></i>Processes</a></dt>
<dd>View processes running on the server(Depends on the unix utility top)</dd>
<dt><a href="/settings/dmesg"><i class="mdi mdi-monitor"></i>Kernel Messages</a></dt>
<dd>View dmesg output</dd>
<dt><a href="/settings/threads"><i class="mdi mdi-sub-listing"></i>Threads</a></dt>
<dd>View Kaithem Threads on the server.</dd>


<dt><a href="/settings/profiler"><i class="mdi mdi-pie-chart"></i>Profiler</a></dt>
<dd>Measure and profile the application performance(Depends on the module yappi.)</dd>

<dt><a href="/settings/settime">Set Time</a></dt>
<dd>Set time based on time reported by browser(Kaithem must run as a user with passwordless sudo)
</dd>
</dl>

<h3><i class="mdi mdi-tools"></i>Utilities</h3>
<dl>


<dt>Object Inspector(Explore starting from the list of modules)</dt>

<dd><form method="post" action="/modules/module/DUMMY/obj/sysmodule/?objpath=amodules&objname=modules"><button>Inspect</button></form>
</dd>

<dt><a href="/settings/gcsweep">Trigger Python garbage collection</a></dt>
<dd>Try this if you have objects sticking around when you think they should not be.</dd>

<dt><a href="/settings/mdns">MDNS</a></dt>
<dd>View HTTP services on the LAN</dd>

<dt><a href="/settings/upnp">UPnP Scanner</a></dt>
<dd>View all port mappings reported by UPnP routers</dd>


</dl>






<dt><a href="/settings/environment">Environment</a></dt>
<dd>Environment vars as seen by kaithem
</dd>



<dt><form method="post" action="/settings/stopsounds"><button>Stop All Sounds currently playing</button></form></dt>
<dd>Click to stop all sounds playing on the server.</dd>

</dt>


<h3>Places</h3>

<dt><a href="/settings/files/${directories.vardir[1:]}">vardir</a></dt>
<dd>Kaithem's main data folder</dd>

%if os.path.exists("/home/pi"):
<dt><a href="/settings/files/home/pi">"pi" user home folder</a></dt>
<dd>On Raspberry pi, the home folder for the default user</dd>
%endif


</div>





</dd>
<%include file="/pagefooter.html"/>