mermaid the architecture
This commit is contained in:
50
README.md
50
README.md
@@ -27,6 +27,54 @@ un programme se déclenche pour synchroniser son contenu avec le dossier de sort
|
|||||||
1. Mac
|
1. Mac
|
||||||
2. Une carte SD nommée SD_DANSE formatée en `MS-DOS (FAT32)` pour un meilleur support des projecteurs
|
2. Une carte SD nommée SD_DANSE formatée en `MS-DOS (FAT32)` pour un meilleur support des projecteurs
|
||||||
|
|
||||||
## [Déclencher au téléchargement](./doc/01.OnAirdropDownload.md)
|
## [Surveillance des répertoires](./doc/01.SurveillerRepertoire.md)
|
||||||
|
|
||||||
- `./trigger/trigger.sh`
|
- `./trigger/trigger.sh`
|
||||||
|
|
||||||
|
## Architecture
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
---
|
||||||
|
config:
|
||||||
|
logLevel: debug
|
||||||
|
theme: forest
|
||||||
|
layout: elk
|
||||||
|
---
|
||||||
|
flowchart TB
|
||||||
|
subgraph s1["~/Documents/.DanceVideos/"]
|
||||||
|
raw[".DanceVideos/<b>raw</b><br><br><i>00_00.mov, xxxxxx_xxxx_xxxx_xxxx.mp4, ScreenRecordingaaaa-mm-dd_hh-mm-ss.mp4</i>"]
|
||||||
|
playlists[".DanceVideos/<b>playlists</b><br><br><i>directories of symbolic links to the videos</i>"]
|
||||||
|
videos[".DanceVideos/<b>videos</b><br><br><i>/aaaammdd_hhmmss/<br>video.mp4 videoRotated.mp4 thumbnail.jpeg</i>"]
|
||||||
|
pgrm1["program1"]
|
||||||
|
bdd["db.sqlite"]
|
||||||
|
pgrm2["program2"]
|
||||||
|
end
|
||||||
|
ios["<b>Iphone</b>"] L_ios_dll_0@-. air drop .-> dll["~/Downloads/"]
|
||||||
|
playlists L_playlists_SD_0@== "onSD_DANSEMount.sh" ==> SD["<b>SD card</b>"]
|
||||||
|
dll L_dll_raw_0@== "onAirDropDownload.sh" ==> raw
|
||||||
|
raw L_raw_pgrm1_0@=== pgrm1
|
||||||
|
pgrm1 L_pgrm1_videos_0@== ffmpeg ==> videos
|
||||||
|
pgrm1 -- register videos --> bdd
|
||||||
|
app["DanceVideos App"] -- classify, register playlists --> bdd
|
||||||
|
pgrm2 -- convert playlists to directories of symlink --> playlists
|
||||||
|
pgrm2 --- bdd
|
||||||
|
videos L_videos_playlists_0@-.- playlists
|
||||||
|
raw@{ shape: docs}
|
||||||
|
playlists@{ shape: docs}
|
||||||
|
videos@{ shape: docs}
|
||||||
|
pgrm1@{ shape: text}
|
||||||
|
bdd@{ shape: db}
|
||||||
|
pgrm2@{ shape: text}
|
||||||
|
ios@{ shape: rect}
|
||||||
|
dll@{ shape: docs}
|
||||||
|
SD@{ shape: das}
|
||||||
|
app@{ shape: rect}
|
||||||
|
linkStyle 0 stroke:#D50000,fill:none
|
||||||
|
linkStyle 1 stroke:#D50000,fill:none
|
||||||
|
L_ios_dll_0@{ animation: fast }
|
||||||
|
L_playlists_SD_0@{ animation: slow }
|
||||||
|
L_dll_raw_0@{ animation: fast }
|
||||||
|
L_raw_pgrm1_0@{ animation: slow }
|
||||||
|
L_pgrm1_videos_0@{ animation: slow }
|
||||||
|
L_videos_playlists_0@{ animation: fast }
|
||||||
|
```
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
# On Airdrop Download
|
# Surveillance des répertoires
|
||||||
|
|
||||||
## Déclencheur
|
## Déclencheur
|
||||||
|
|
||||||
@@ -18,7 +18,7 @@ else
|
|||||||
echo "`date` mounted SD Dance" >> $LOCK_FILE
|
echo "`date` mounted SD Dance" >> $LOCK_FILE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
SOURCE_DIR=${HOME}/Documents/.DanceVideos/SD_DANSE/ # final / is important to delete
|
SOURCE_DIR=${HOME}/Documents/.DanceVideos/playlists/ # final / is important to delete
|
||||||
mkdir -p ${SOURCE_DIR}
|
mkdir -p ${SOURCE_DIR}
|
||||||
|
|
||||||
DESTINATION_DIR=TEST
|
DESTINATION_DIR=TEST
|
||||||
@@ -27,6 +27,6 @@ mkdir -p /Volumes/SD_DANSE/${DESTINATION_DIR}
|
|||||||
$playsound
|
$playsound
|
||||||
playsound=`sed 's#[^/]*\.aiff#Hero.aiff#' <<<$playsound`
|
playsound=`sed 's#[^/]*\.aiff#Hero.aiff#' <<<$playsound`
|
||||||
osascript -e "tell application \"Terminal\"
|
osascript -e "tell application \"Terminal\"
|
||||||
do script \"rsync -av --delete -r --progress ${SOURCE_DIR} /Volumes/SD_DANSE/${DESTINATION_DIR}/; echo Terminé $?; $rm_lock; echo 'Appuyez sur Entrée pour fermer...'; read dummy; diskutil unmount /Volumes/SD_DANSE/; $playsound; exit\"
|
do script \"rsync -avrL --delete --progress ${SOURCE_DIR} /Volumes/SD_DANSE/${DESTINATION_DIR}/; echo Terminé $?; $rm_lock; echo 'Appuyez sur Entrée pour fermer...'; read dummy; diskutil unmount /Volumes/SD_DANSE/; $playsound; exit\"
|
||||||
activate
|
activate
|
||||||
end tell"
|
end tell"
|
||||||
|
|||||||
Reference in New Issue
Block a user