![]() P = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE)Įlif request.form = 'turn radio off': Put it in a file named radio.py from flask import Flask If you are also using an Apache webserver to also host your website, read this: Try with easy_install tools, sudo apt-get install python-pip You can follow instructions on the Flask website () for installation, or follow the steps I took below. Flask uses Jinja2 templates and the Werkzeug WSGI toolkit. Flask is a framework for Python to develop website applications, which we will use to build a simple user interface. Next we need to install some Python tools. If you want to Raspberry to stream its audio to the analogue 3.5mm audio jack, use this command and set it to 1. Then install the Music Player Daemon and Music Player Command, two really great software programs to get music playing. Connect your Raspberry Pi to the internet and update the software libraries to make sure you get the latest versions of the software we need.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |