Call functions from python

Max2Play Home Forums Max2Play on Raspberry PI Call functions from python

Viewing 2 posts - 1 through 2 (of 2 total)
  • 21. März 2017 at 0:47 #27816

    Hello there
    Im playing around with max2play for a momth now and im building a speaker with a raspi and hifiberry amp+. Most of the time streaming music over bluetooth.
    In addition to control everything i want to use an encoder and a lcd. The encoder works to control volume and navigate through a menu ive created on the lcd.

    Now my problem is:
    How can i call the function „Pair new device“ without the browser? I need something to execute in Python. (alternatively it would be enough to be able to connect a new phone without the webUI. Like if max2play isnt connected it appears in discovery mode)
    Also i would love to start internet radio on a similar way. it doesnt have to be all the channels. Its enogh if there are my favourit 3 radio stations or just one.

    Would be very nice to hear from you.

    Greetings from Switzerland

    21. März 2017 at 11:29 #27819

    Hi paeber

    Here is some resources regarding pairing Bluetooth devices using Python, I hope it would help !!

    http://stackoverflow.com/questions/37465157/pairing-bluetooth-devices-with-passkey-password-in-python-rfcomm-linux

    https://people.csail.mit.edu/albert/bluez-intro/c212.html

    and please next time, you can post these kind of questions regarding development on the section of Max2Play Development (Ideas, Wishes)

    Best Regards,
    Mohammad Mbydeen

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Register here