Supprimer README.html
This commit is contained in:
201
README.html
201
README.html
@@ -1,201 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<title>Aorus</title>
|
|
||||||
<style>
|
|
||||||
/* From extension vscode.github */
|
|
||||||
/*---------------------------------------------------------------------------------------------
|
|
||||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
||||||
*--------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
.vscode-dark img[src$=\#gh-light-mode-only],
|
|
||||||
.vscode-light img[src$=\#gh-dark-mode-only],
|
|
||||||
.vscode-high-contrast:not(.vscode-high-contrast-light) img[src$=\#gh-light-mode-only],
|
|
||||||
.vscode-high-contrast-light img[src$=\#gh-dark-mode-only] {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/Microsoft/vscode/extensions/markdown-language-features/media/markdown.css">
|
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/Microsoft/vscode/extensions/markdown-language-features/media/highlight.css">
|
|
||||||
<style>
|
|
||||||
body {
|
|
||||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe WPC', 'Segoe UI', system-ui, 'Ubuntu', 'Droid Sans', sans-serif;
|
|
||||||
font-size: 14px;
|
|
||||||
line-height: 1.6;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<style>
|
|
||||||
.task-list-item {
|
|
||||||
list-style-type: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.task-list-item-checkbox {
|
|
||||||
margin-left: -20px;
|
|
||||||
vertical-align: middle;
|
|
||||||
pointer-events: none;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<style>
|
|
||||||
:root {
|
|
||||||
--color-note: #0969da;
|
|
||||||
--color-tip: #1a7f37;
|
|
||||||
--color-warning: #9a6700;
|
|
||||||
--color-severe: #bc4c00;
|
|
||||||
--color-caution: #d1242f;
|
|
||||||
--color-important: #8250df;
|
|
||||||
}
|
|
||||||
|
|
||||||
</style>
|
|
||||||
<style>
|
|
||||||
@media (prefers-color-scheme: dark) {
|
|
||||||
:root {
|
|
||||||
--color-note: #2f81f7;
|
|
||||||
--color-tip: #3fb950;
|
|
||||||
--color-warning: #d29922;
|
|
||||||
--color-severe: #db6d28;
|
|
||||||
--color-caution: #f85149;
|
|
||||||
--color-important: #a371f7;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
</style>
|
|
||||||
<style>
|
|
||||||
.markdown-alert {
|
|
||||||
padding: 0.5rem 1rem;
|
|
||||||
margin-bottom: 16px;
|
|
||||||
color: inherit;
|
|
||||||
border-left: .25em solid #888;
|
|
||||||
}
|
|
||||||
|
|
||||||
.markdown-alert>:first-child {
|
|
||||||
margin-top: 0
|
|
||||||
}
|
|
||||||
|
|
||||||
.markdown-alert>:last-child {
|
|
||||||
margin-bottom: 0
|
|
||||||
}
|
|
||||||
|
|
||||||
.markdown-alert .markdown-alert-title {
|
|
||||||
display: flex;
|
|
||||||
font-weight: 500;
|
|
||||||
align-items: center;
|
|
||||||
line-height: 1
|
|
||||||
}
|
|
||||||
|
|
||||||
.markdown-alert .markdown-alert-title .octicon {
|
|
||||||
margin-right: 0.5rem;
|
|
||||||
display: inline-block;
|
|
||||||
overflow: visible !important;
|
|
||||||
vertical-align: text-bottom;
|
|
||||||
fill: currentColor;
|
|
||||||
}
|
|
||||||
|
|
||||||
.markdown-alert.markdown-alert-note {
|
|
||||||
border-left-color: var(--color-note);
|
|
||||||
}
|
|
||||||
|
|
||||||
.markdown-alert.markdown-alert-note .markdown-alert-title {
|
|
||||||
color: var(--color-note);
|
|
||||||
}
|
|
||||||
|
|
||||||
.markdown-alert.markdown-alert-important {
|
|
||||||
border-left-color: var(--color-important);
|
|
||||||
}
|
|
||||||
|
|
||||||
.markdown-alert.markdown-alert-important .markdown-alert-title {
|
|
||||||
color: var(--color-important);
|
|
||||||
}
|
|
||||||
|
|
||||||
.markdown-alert.markdown-alert-warning {
|
|
||||||
border-left-color: var(--color-warning);
|
|
||||||
}
|
|
||||||
|
|
||||||
.markdown-alert.markdown-alert-warning .markdown-alert-title {
|
|
||||||
color: var(--color-warning);
|
|
||||||
}
|
|
||||||
|
|
||||||
.markdown-alert.markdown-alert-tip {
|
|
||||||
border-left-color: var(--color-tip);
|
|
||||||
}
|
|
||||||
|
|
||||||
.markdown-alert.markdown-alert-tip .markdown-alert-title {
|
|
||||||
color: var(--color-tip);
|
|
||||||
}
|
|
||||||
|
|
||||||
.markdown-alert.markdown-alert-caution {
|
|
||||||
border-left-color: var(--color-caution);
|
|
||||||
}
|
|
||||||
|
|
||||||
.markdown-alert.markdown-alert-caution .markdown-alert-title {
|
|
||||||
color: var(--color-caution);
|
|
||||||
}
|
|
||||||
|
|
||||||
</style>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
<body class="vscode-body vscode-light">
|
|
||||||
<h1 id="aorus">Aorus</h1>
|
|
||||||
<h2 id="description">Description</h2>
|
|
||||||
<p>installe un service qui creer des entites pour home assistant:</p>
|
|
||||||
<ul>
|
|
||||||
<li>etat de la batterie</li>
|
|
||||||
<li>button pour eteindre le pc</li>
|
|
||||||
</ul>
|
|
||||||
<h2 id="prérequis">Prérequis</h2>
|
|
||||||
<p>installation de python3 et de python-env:</p>
|
|
||||||
<pre><code>sudo apt install python3-venv
|
|
||||||
</code></pre>
|
|
||||||
<pre><code>python3 -m venv monenv
|
|
||||||
</code></pre>
|
|
||||||
<p>activation de l'environnement:</p>
|
|
||||||
<pre><code>source monenv/bin/activate
|
|
||||||
</code></pre>
|
|
||||||
<h2 id="installation">Installation</h2>
|
|
||||||
<pre><code>git clone http://10.0.1.200/pilot/aorus.git
|
|
||||||
</code></pre>
|
|
||||||
<pre><code>cd aorus
|
|
||||||
</code></pre>
|
|
||||||
<p>Création de l'environnement:</p>
|
|
||||||
<pre><code>python3 -m venv monenv
|
|
||||||
</code></pre>
|
|
||||||
<p>Activation de l'environnement:</p>
|
|
||||||
<pre><code>source monenv/bin/activate
|
|
||||||
</code></pre>
|
|
||||||
<p>Installation des paquets additionnels:</p>
|
|
||||||
<pre><code>pip install -r requirements.txt
|
|
||||||
</code></pre>
|
|
||||||
<h2 id="test-du-programme">Test du programme</h2>
|
|
||||||
<pre><code>python3 main.py
|
|
||||||
</code></pre>
|
|
||||||
<p>Sortie de l'environnement:</p>
|
|
||||||
<pre><code>deactivate
|
|
||||||
</code></pre>
|
|
||||||
<h2 id="installation-en-temps-que-service">Installation en temps que service</h2>
|
|
||||||
<p>authorisation de shutdown:</p>
|
|
||||||
<pre><code>sudo visudo
|
|
||||||
</code></pre>
|
|
||||||
<pre><code>gilles ALL=(ALL) NOPASSWD: /sbin/shutdown
|
|
||||||
</code></pre>
|
|
||||||
<p>Installation du service:</p>
|
|
||||||
<pre><code>sudo cp mqtt_pilot.service /etc/systemd/system/
|
|
||||||
</code></pre>
|
|
||||||
<pre><code>sudo systemctl daemon-reload
|
|
||||||
</code></pre>
|
|
||||||
<pre><code>sudo systemctl enable mqtt_pilot.service
|
|
||||||
</code></pre>
|
|
||||||
<pre><code>sudo systemctl start mqtt_pilot.service
|
|
||||||
</code></pre>
|
|
||||||
<pre><code>sudo systemctl status mqtt_pilot.service
|
|
||||||
</code></pre>
|
|
||||||
<p>lancer l'installation du service:</p>
|
|
||||||
<pre><code>sudo ./install.sh
|
|
||||||
</code></pre>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
Reference in New Issue
Block a user