Files
AM-Exporter/README.md
√(noham)² f3416cb1ed update readme
2024-03-24 22:38:40 +01:00

73 lines
1.8 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# AppleMusicExporter
AppleMusicExporter est un projet conçu pour exporter les musiques depuis Apple Music en temps réel. AppleMusicExporter utilise [AppleScript](https://developer.apple.com/library/archive/documentation/AppleScript/Conceptual/AppleScriptLangGuide/introduction/ASLR_intro.html) pour les interactions avec Apple Music.
<img src="Diagramme.drawio.png" width="781" height="437"/> <!-- 781×437 -->
## Dépendances :
### Back :
- flask
- python-dotenv (optionnel)
- requests
### User :
- colorthief
- python-dotenv
- requests
## Install :
### Back :
```bash
git clone https://github.com/NohamR/AM-Exporter.git
cd back
```
Créer le fichier .users avec les utilisateurs et leurs mots de passe hashés ([.user.example](back/.users.example)).
```bash
docker build -t amexporter .
```
```bash
docker run -d -p 3005:3005 amexporter
```
Ou
```bash
docker-compose up -d
```
### User :
```bash
git clone https://github.com/NohamR/AM-Exporter.git
cd user
python install -r requirements.txt
```
Créer le fichier .env avec l'utilisateur et son mot de passe ([.env.example](user/.env.example)).
Configuer [music-exp.plist](user/music-exp.plist) sur l'exemple de [music-exp.plist.example](user/music-exp.plist.example) :
PYTHON_PATH
WORKING_DIRECTORY
```bash
./install.sh
```
![notif.png](notif.png)
Logs can but found in the working direcrtory :
```bash
cd WORKING_DIRECTORY
tail -f error_logfile.log
tail -f logfile.log
```
### Front :
Un exemple d'implémentation de l'api est disponible dans [front-example](front-example) :
<!-- ![screen.png](front-example/screen.png) -->
<img src="front-example/screen.png" width="488" height="400"/> <!-- 710×588 -->
<img src="Music-Player.gif" width="488" height="400"/>
## Uninstall :
```bash
cd user
./unistall.sh
```
# To do :
- comment