WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: picore and python  (Read 10977 times)

Offline everglase

  • Newbie
  • *
  • Posts: 1
Re: picore and python
« Reply #15 on: January 03, 2015, 05:50:26 AM »
Hi Paul,

What modifications did you make to trigger a gpio based on the player state.

Jeff

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1249
Re: picore and python
« Reply #16 on: January 03, 2015, 11:57:16 AM »
Hi Paul,

What modifications did you make to trigger a gpio based on the player state.

Jeff

You will have to compile your own version of squeezelite.

take a look here.  http://forums.slimdevices.com/showthread.php?97046-Announce-Squeezelite-a-small-headless-squeezeplay-emulator-for-linux-(alsa-only)&p=736122&highlight=ampidle#post736122
 

Offline Greg Erskine

  • Sr. Member
  • ****
  • Posts: 404
Re: picore and python
« Reply #17 on: January 03, 2015, 05:30:08 PM »
Hi Paul,

What modifications did you make to trigger a gpio based on the player state.

Jeff

Hi Jeff,

Here's a different way of doing it.

http://www.pinkfishmedia.net/forum/showthread.php?t=165465

It just monitors the status of the player on LMS. Its just a shell script, no extra extensions to load.

regards
Greg

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1249
Re: picore and python
« Reply #18 on: January 03, 2015, 07:02:40 PM »
Here's a different way of doing it.

http://www.pinkfishmedia.net/forum/showthread.php?t=165465

It just monitors the status of the player on LMS. Its just a shell script, no extra extensions to load.

regards
Greg

That's probably alot easier....lol.   I wrote that before I even knew about LMSCLI.   

My code also looks for a paused player.....after it is paused for so long, the relay is turned off too.  Which you can do with the LMSCLI too.