Compare commits

..

45 Commits

Author SHA1 Message Date
a2299e9c70 shellcheck
-correct 4 errors
2023-03-02 07:01:03 +01:00
8814740b6f bugfix 2023-03-01 14:23:24 +01:00
5aaf543ad3 play_track_from_library()
-replace play_track_from_library() by search_tracks_from_library(): usage of fzf
2023-02-28 09:13:02 +01:00
7daeac02f2 bugfix
in functions art(), _tia(), search_artist_from_library(), search_album_from_library()

remove functions play_album_from_library() and play_artist_from_library()
2023-02-24 12:51:33 +01:00
267373b209 22-02-2023
-rename functions: minfo() in _minfo()
, display_cover_art() in _display_cover_art(), is_int in _is_int
-new function: art() tia(), search_artist_from_library(), search_album_from_library()
2023-02-22 13:35:08 +01:00
ec3efed2df curl_url()
-new function curl_url():
return $status_uri (ok=200), $icy_name (stream’s name)

-prefix functions curl_url, display_cover_art, minfo, is_int by _
2023-02-17 11:29:17 +01:00
a50fbf8e03 test uri status
-play_shared_link(): test uri status = 200
2023-02-16 11:30:46 +01:00
93d9959bac make_playlist()
rework make_playlist() with fzf
2023-02-16 10:08:56 +01:00
507ca63f0e play_shared_link
play_shared_link(): rework with fzf
2023-02-14 14:41:15 +01:00
7abf5bc721 play_local_audio_dir()
play_local_audio_dir(): rework function with fzf
2023-02-14 14:12:18 +01:00
5d8f01d8e3 display_cover_art
feature:
- new display_cover_art() function (require exiftool and iTerm2)
- rework play_local_audio_file() function (support fzf)
2023-02-11 23:10:39 +01:00
555a86dc27 copy_alarms
features:
- copy_alarm() to speaker
2023-02-10 12:50:52 +01:00
f1a532f75d fzf
-new fzf arguments
2023-02-10 11:40:34 +01:00
fbf69fdcd3 feature
-rework modify_alarms() with fzf
-add sort to fzf
2023-02-09 19:53:33 +01:00
58bd538092 spec()
-update spec() as create_alarms()
2023-02-08 17:58:11 +01:00
33c8eb68f0 08-02-2023
remove_alarms(): remove a series of <Alarm_ID>
create_alarms(): remork the function and add some fzf to options
2023-02-08 17:43:43 +01:00
c5d7d3f16d Bugfix
-move_alarms()
-snooze_alarms()
2023-02-07 10:27:11 +01:00
d9255dc165 Update
-update bash_completion
-update cli help
2023-02-06 14:35:47 +01:00
12385f639a Alarms
-new functions:
 * move_alarm() and
 * spec() for modify alarms
 * modify_alarms()
 * enable_alarms()

-rebuild the list_alarms()
-update remove_alarms()
2023-02-06 10:13:56 +01:00
953a115598 Alarms menu
-new menu alarm
-rework the main menu (soco())
2023-02-03 06:56:22 +01:00
37637d11e7 Create alarms
-new create_alarms() function
2023-02-02 19:16:50 +01:00
1fd4a10a5c Bugfix
-add a timeout to shazam() for launching soco() offline
2023-02-01 16:34:50 +01:00
80e3bf39be Cosmetic
-center titles menu
2023-02-01 09:02:55 +01:00
9a1b1de529 Bugfix
-add some help
-correct some $playing
2023-01-29 07:37:13 +01:00
ec7c4dd295 Rework start/stop/prev/next/pause actions
-bugfix in shazam()
-don’t display error in prev/next if no applicable for the audio source
2023-01-28 10:26:55 +01:00
34edd44cd7 Volume
-add a step for up/down volume
2023-01-28 07:18:43 +01:00
8317260816 19-01-2023
-correct shebang install.sh
-update help
2023-01-19 10:15:50 +01:00
a214e5e908 install.sh
-install script and completion
2023-01-18 06:46:13 +01:00
aca0a37746 Auto-completion
-à mettre dans /opt/homebrew/etc/bash_completion.d
2023-01-18 06:44:09 +01:00
f207aa6133 Rename some functions 2023-01-18 06:42:06 +01:00
9fd0f0e702 Version 2
Major revision.
-functions can be called directly
-help about functions
-‘Salon’ is the default Sonos device
-renamed many functions
-party mode
-play_local_dir
-play_shared_link
2023-01-15 09:05:51 +01:00
b25515c233 11-11-2021 2021-11-11 11:23:09 +01:00
5a4e50d02f bugfix 2021-03-09 06:32:59 +01:00
25df514fff Improvement
-by default, search in $HOME/Music for playlist. and local audio files
-search track/artist/album in library
2021-02-03 09:41:44 +01:00
1f22224589 Bugfixs
correct a bug if there are more than 9 tracks per albums
2021-01-31 11:20:42 +01:00
2c025708c2 New feature
+play radio stream, like http://jazzradio.ice.infomaniak.ch/jazzradio-high.aac
2021-01-31 08:28:08 +01:00
e85dfeac9a improvement
add display info in:
-play_album_from_library
-play_artist_from_library
-play_track_from_library
functions
2021-01-30 20:33:56 +01:00
5d6b219be7 New feature
+ play locals files
2021-01-30 10:21:15 +01:00
b26c21c2c9 new feature
Features:
+ play local .m3u playlist
2021-01-28 07:11:22 +01:00
890d0ff3e5 Security
-mask GITHUB_TOKEN
2021-01-27 17:53:01 +01:00
f31c4c2b15 new features
Features:
+ play favorite from TuneIn radio
+ play local .m3u playlist (alpha)
+ Apache License 2.0
2021-01-27 17:26:28 +01:00
6551679d37 volume +/-
Features:
+ volume +/-
+ new menus
2021-01-24 08:31:17 +01:00
9c8c2cded2 Cosmetics bugfix
+help
2021-01-21 14:04:30 +01:00
a05c4f0309 Dynamic menu
Feature:
+all Sonos device are automatically discover and have an entrie in principal menu.
2021-01-21 09:10:59 +01:00
e3fc8b6755 soco-cli-gui.sh
Features:
+check last version and update for soco-cli
2021-01-16 12:04:35 +01:00
4 changed files with 2520 additions and 465 deletions

32
install.sh Executable file
View File

@@ -0,0 +1,32 @@
#!/usr/bin/env bash
# /opt/homebrew/etc/bash_completion.d/soco-cli-gui-completion.bash
italic="\033[3m"
underline="\033[4m"
bold="\033[1m"
reset="\033[0m"
SCRIPT_PATH=$(pwd)
completion_path="/opt/homebrew/etc/bash_completion.d"
# Make soco-cli-gui accessible in PATH
if [ -d $HOME/.local/bin ]; then
dest="$HOME/.local/bin"
ln -fs "${SCRIPT_PATH}"/soco-cli-gui.sh $dest/soco-cli-gui
else
dest="/usr/local/bin"
sudo ln -fs "${SCRIPT_PATH}"/soco-cli-gui.sh $dest/soco-cli-gui
fi
echo -e "Installing ${bold}soco-cli-gui${reset} in ${bold}$dest${reset} ..."
# Install completions
ln -fs "${SCRIPT_PATH}"/soco-cli-gui-completion.bash $completion_path/soco-cli-gui-completion.bash
echo -e "\n${bold}soco-cli-gui${reset} has been installed. Run ${bold}soco-cli-gui${reset} command!"

View File

@@ -0,0 +1,14 @@
#/usr/bin/env bash
# https://iridakos.com/programming/2018/03/01/bash-programmable-completion-tutorial#registering-the-completion-script
_soco-cli-gui_completions()
{
COMPREPLY=($(compgen -W "deezer_flow franceinfo franceinter k6fm rires rtl level_11 level_13 level_15 vol+ vol- mute_off mute_on pause next prev start stop alarms inform sysinfo play_local_file play_local_dir list_favs clear_queue list_queue alarms create_alarms move_alarms remove_alarms enable_alarms modify_alarms snooze_alarms" "${COMP_WORDS[1]}"))
}
complete -F _soco-cli-gui_completions soco-cli-gui
#complete -W "deezer_flow franceinfo franceinfo k6fm rires rtl level_11 level_13 level_15 vol+ vol- mute_off mute_on pause next prev start stop alarms inform sysinfo" soco-cli-gui.sh

File diff suppressed because it is too large Load Diff

BIN
soco-cli-logo-01-large.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB