Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Instruction Guide Activate relay upon audio output with python
#5
(11-03-2019, 12:17 PM)mike_d Wrote:
(11-02-2019, 08:35 PM)lirus Wrote:
(05-14-2019, 02:25 AM)nahventure Wrote: I'll go ahead and test it soon under python 3.

Hi! Any luck porting it to python3?

I installed moode today and was looking for the same solution and found this post. 

I made some modifications so I thought I would share.

https://gist.github.com/michaelfdeberry/...1a7e09f3de

Updated to python 3 and added a delay before deactivating the relay to account for track changes.

I am installing it as a service instead of using cron, so you don't need to install screen with this approach. 

There are some basic instructions in the gist.

Thanks mike_d!
Reply


Messages In This Thread

Forum Jump: