Created
September 1, 2020 01:12
-
-
Save hyuki/5a914316c40e97cf2e0ac10b745b515a to your computer and use it in GitHub Desktop.
fitbit.rb - 運動するときの記録表示とBGM再生のためのスクリプト
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
utada = { | |
:url => 'https://www.youtube.com/watch?v=jmKRgqWGrWc', | |
:time => '2:45', | |
:title => 'Utada Hikaru「Beautiful World」 Directed by Tsurumaki Kazuya' | |
} | |
MUSIC = utada | |
puts <<"EOD" | |
## :fitbit: ステッパーで運動(#{MUSIC[:time]})。 | |
BGM:[#{MUSIC[:title]}](#{MUSIC[:url]}) | |
EOD | |
system %Q(open #{MUSIC[:url]}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment