Home of the Squeezebox™ & Transporter® network music players.
Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12
  1. #11
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    3,931
    That would work too.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  2. #12
    Senior Member
    Join Date
    Apr 2014
    Posts
    286
    Quote Originally Posted by paul- View Post
    That would work too.
    Code:
    import requests
    r = requests.get("http://192.168.1.29:10002/api/mix?playlist=Mijn%20favorieten&size=75")
    print r.content
    f = open("/mnt/PLAYLIST/Lekkere Muziek Mix.m3u", "w")
    f.write(r.content)
    f.close()
    import urllib
    urllib.urlopen("http://192.168.1.29:9000/status.html?p0=playlist&p1=shuffle&p2=0")
    urllib.urlopen("http://192.168.1.29:9000/status.html?p0=playlist&p1=play&p2=Lekkere%20Muziek%20Mix&player=b8:27:eb:cc:de:bd")
    urllib.urlopen("http://192.168.1.29:9000/status.html?p0=mixer&p1=volume&p2=50&player=b8:27:eb:cc:de:bd")
    I did something similar with python and musicip. It got me a web result and that would be written to a m3u file. That would be played on my system. And that implemented in a menu driven by tasker. Let's see if I can work this out.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •