roger2000hk / airpnp Goto Github PK
View Code? Open in Web Editor NEWThis project forked from provegard/airpnp
AirPlay to UPnP bridge written in Python
Home Page: http://airpnp.finkod.se
License: BSD 3-Clause "New" or "Revised" License
This project forked from provegard/airpnp
AirPlay to UPnP bridge written in Python
Home Page: http://airpnp.finkod.se
License: BSD 3-Clause "New" or "Revised" License
airpnp 0.23b 1 Aug 2011 README ================= Airpnp is a simple server that acts as a bridge between AirPlay devices (such as the iPhone or the iPad) and regular UPnP media renderers. Its mode of operation can be summarized as follows: * When running, detects UPnP devices on the network through M-SEARCH discovery and notification monitoring. * For each MediaRenderer found, publishes an AirPlay service with the corresponding name. * Converts incoming AirPlay commands to UPnP control messages which are sent to the media renderer. The software is based on totem-plugin-airplay version 1.0.2, which is included. The server parts have been rewritten to use Twisted-based networking. The official home for the plugin is: http://cgit.sukimashita.com/totem-plugin-airplay.git/. The software also uses UPnP code from pyupnp, which is included. The official home for pyupnp is: http://code.google.com/p/pyupnp/ Dependencies ------------ The code has been tested with Python 2.7, but probably works with some earlier 2.x versions as well. External dependencies include Twisted Web, Avahi, Mock and Lettuce (the last two are only necessary for running tests). On a standard Ubuntu 11.04 server setup, the following commands install the required dependencies: sudo apt-get install python-twisted-web python-avahi For running tests: sudo apt-get install python-setuptools sudo apt-get install python-nose sudo easy_install mock sudo easy_install lettuce Version 0.7.0 of python-mock that exists in the Natty repositories is not sufficient. As of this writing, easy_install provides version 0.8.0beta3. If you use pip to install Python packages, use the following to get the proper version: sudo pip install mock==dev The avahi daemon must be installed: sudo apt-get install avahi-daemon Installation ------------ There is currently nothing to install. See Running below. Configuration ------------- See the CONFIGURATION file. Running ------- You *may* need to add a route for the 239 net: sudo route add -net 239.0.0.0 netmask 255.0.0.0 eth0 If avahi and dbus are not running, then: sudo service dbus start sudo service avahi-daemon start To run airpnp, use the twistd runner. From the top-levl directory, issue the following command: twistd airpnp To run in the foreground, use the following command: twistd -n airpnp To use a different configuration file than ~/.airpnprc: twistd airpnp -c /path/to/config To run a UPnP device discovery deamon in the foreground, use the following command (uses ~/.airpnprc for configuration): twistd -n upnpdisc Running tests ------------- To run unit tests, run the following from the top-level directory: nosetests To run integration tests, make sure Lettuce is installed and run the following command from the top-level directory: lettuce Contact Information ------------------- Author: Per Rovegård Internet: http://www.airpnp.org E-mail: [email protected] Copyright and Licensing ----------------------- Pyupnp is licensed using the 3-clause BSD license. Totem-plugin-airplay is licensed using the MIT license. Airpnp as a whole is licensed using the 3-clause BSD license. See the file LICENSE for the full license text.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.