elibroftw / music-caster

Music Caster is a modern music player with the ability to cast audio files, system audio, and URLs to Google Chromecasts, Google Home/Nest Minis, etc.
https://elijahlopez.ca/music-caster/
Other
142 stars 16 forks source link

May you add a command line option to choose the device to stream to? #42

Closed tomhammond closed 2 years ago

tomhammond commented 2 years ago

Hi Elijah,

I noticed that in the json file, the "previous_device" field contains the address to the current smart device that music will be cast to. This way, the next time one starts Music Caster, it will default to this device.

May you make a command line option to specify a device address at startup? I can learn the various device addresses by activating them via the system icon, then viewing the json file.

As an aside, I am able to start and control Music Caster with my voice via Google Home. I can choose various playlists via voice, too. If you are interested in the idea, I can email the instructions I wrote to do this.

Thanks! Tom

elibroftw commented 2 years ago

Sure and to get a list of devices, check out https://github.com/elibroftw/music-caster/wiki/REST-API. I'm not going to be adding big features for some time so you can add the instructions for voice commands in this issue so I can take a look at it in the future.

elibroftw commented 2 years ago

You can now use --device=local|UUID I haven't tested it out so let me know if it works!

tomhammond commented 2 years ago

Thank you, Elijah! I will try the new --device parameter tomorrow evening. That is wonderful!

From: Elijah Lopez @.> Sent: Wednesday, February 16, 2022 11:12 PM To: elibroftw/music-caster @.> Cc: tomhammond @.>; Author @.> Subject: Re: [elibroftw/music-caster] May you add a command line option to choose the device to stream to? (Issue #42)

You can now use --device=local|UUID

— Reply to this email directly, view it on GitHub https://github.com/elibroftw/music-caster/issues/42#issuecomment-1042555389 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AEVBMB2C64REMKZUA5S5TSTU3RYPVANCNFSM5OTO4V3Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AEVBMB5UUDLDXYNT2AD5DZTU3RYPVA5CNFSM5OTO4V32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHYSCD7I.gif Message ID: @. @.> >

tomhammond commented 2 years ago

OK, thanks for the API link.

The voice control solution is messy; I use a Logitech Harmony hub as the conduit to Google Home; the hub sends virtual keystrokes via Bluetooth to the computer running Music Caster. But it works well. There are better ways to do voice control, but this works with in my skill level. 😊

I’ll send the instructions over the weekend.

Thanks for all of your help. Music Caster is wonderful!

Tom

From: Elijah Lopez @.> Sent: Wednesday, February 16, 2022 10:54 PM To: elibroftw/music-caster @.> Cc: tomhammond @.>; Author @.> Subject: Re: [elibroftw/music-caster] May you add a command line option to choose the device to stream to? (Issue #42)

Sure and to get a list of devices, check out https://github.com/elibroftw/music-caster/wiki/REST-API. I'm not going to be adding big features for some time so you can add the instructions in this issue so I can take a look at it in the future.

— Reply to this email directly, view it on GitHub https://github.com/elibroftw/music-caster/issues/42#issuecomment-1042547605 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AEVBMB7WJ3QIFS5JQ24GINDU3RWMDANCNFSM5OTO4V3Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AEVBMBZ7Q7M3GJD625OWA3TU3RWMDA5CNFSM5OTO4V32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHYSAHFI.gif Message ID: @. @.> >

elibroftw commented 2 years ago
Nah don’t bother, I’d want to implement a Bluetooth-free solution.One of my other users mentioned something about a tool that lets you run bat scripts via google home voice. I’ll just ask him, if I can remember his name/email that is!   Sincerely, Elijah Lopez From: tomhammondSent: Wednesday, February 16, 2022 11:19 PMTo: elibroftw/music-casterCc: Elijah Lopez; State changeSubject: Re: [elibroftw/music-caster] May you add a command line option to choose the device to stream to? (Issue #42) OK, thanks for the API link.The voice control solution is messy; I use a Logitech Harmony hub as the conduit to Google Home; the hub sends virtual keystrokes via Bluetooth to the computer running Music Caster. But it works well. There are better ways to do voice control, but this works with in my skill level. 😊I’ll send the instructions over the weekend.Thanks for all of your help. Music Caster is wonderful!TomFrom: Elijah Lopez ***@***.***> Sent: Wednesday, February 16, 2022 10:54 PMTo: elibroftw/music-caster ***@***.***>Cc: tomhammond ***@***.***>; Author ***@***.***>Subject: Re: [elibroftw/music-caster] May you add a command line option to choose the device to stream to? (Issue #42)Sure and to get a list of devices, check out https://github.com/elibroftw/music-caster/wiki/REST-API. I'm not going to be adding big features for some time so you can add the instructions in this issue so I can take a look at it in the future.—Reply to this email directly, view it on GitHub , or unsubscribe .Triage notifications on the go with GitHub Mobile for iOS or Android . You are receiving this because you authored the thread. Message ID: ***@***.*** ***@***.***> >—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you modified the open/close state.Message ID: ***@***.***>