Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

10 #10

Merged
merged 1 commit into from
Sep 1, 2024
Merged

10 #10

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion webapp/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ app.get('/find-directory', (req, res) => {
});
});




// Route pour monter le partage NAS (lecture seule)
app.get('/mount-nas', (req, res) => {
const networkPath = req.query.path; // Récupère le chemin du dossier NAS
Expand All @@ -44,7 +47,7 @@ app.get('/mount-nas', (req, res) => {
});

// Route pour lancer blissify init après le montage
app.get('/run-blissify', (req, res) => {
app.get('/start-analysis', (req, res) => {
// Utiliser le chemin monté
const command = `blissify init /mnt/Musique`;

Expand Down
13 changes: 4 additions & 9 deletions webapp/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,14 @@
<body>
<h1>Blissify Webapp</h1>

<!-- Bouton pour rechercher la bibliothèque musicale -->
<form id="network-path-form">
<label for="network-path">Entrez le chemin du dossier réseau :</label>
<input type="text" id="network-path" name="network-path" placeholder="i.e. \\192.168.1.xxx/Music" required>
<button type="submit">Search</button>
<input type="text" id="network-path" name="network-path" placeholder="smb://192.168.1.xxx/Musique" required>
<button type="submit">Monter et Lancer</button>
</form>

<!-- <button onclick="searchMusic()">Rechercher Bibliothèque Musicale</button>
<pre id="music-output"></pre> -->

<!-- Bouton pour lancer l'analyse -->
<button onclick="startAnalysis()">Lancer l'Analyse</button>
<pre id="analysis-output"></pre>
<button id="start-analysis" style="display:none;">Démarrer l'Analyse</button>
<div id="result"></div>

<!-- Bouton pour chercher l'instance Volumio -->
<button onclick="searchVolumio()">Chercher Volumio</button>
Expand Down
Loading