Metadata-Version: 1.1
Name: roip
Version: 1.0.0
Summary: Python Radio Over IP Module.
Home-page: https://github.com/ampledata/roip
Author: Greg Albrecht
Author-email: oss@undef.net
License: Copyright 2018 Orion Labs, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Description: roip - Python Radio Over IP (RoIP) Module
        *****************************************
        
        For use with Radio Over IP (RoIP) interfaces for sending and receiving
        transmissions from a Land Mobile Radio (LMR).
        
        Compatible with **most** C-Media CM108 and CM119 chipset-based boards, such as:
        
        * Master Communications RA-40 [tested!] - http://www.masterscommunications.com/products/radio-adapter/ra40.html
        * USHAM ARiUSB [tested!] - http://usham.net/
        * DMK Engineering URIx - http://dmkeng.com/URI_Order_Page.htm
        * Repeater Builder RB-USB RIM - http://www.repeater-builder.com/products/usb-rim.html
        * Repeater Builder RB-USB Lite [tested!] - http://www.repeater-builder.com/products/usb-rim-lite.html
        
        Requirements
        ============
        
        The following Python and C libraries are required to utilize this library:
        
        * PyHIDAPI by Mark J. Blair @NF6X https://github.com/NF6X/pyhidapi
        * HIDAPI by Alan Ott @signal11 https://github.com/signal11/hidapi
        
        Example Usage
        =============
        
        The following example shows both PTT and COR using the a CM1xx:
        
        .. code-block:: python
        
            import os
        
            import roip
        
            # 0x0D8C:0X013A is our C-Media CM1xx Soundcard
            usb_dev: tuple = (0x0D8C, 0x013A)
        
            roip_dev: roip.RoIP = roip.RoIP(usb_dev)
            roip_dev.open()
        
            # Trigger a PTT and play an audio file (via SoX's `aplay`):
            roip_dev.ptt(callback=lambda: os.system('aplay cw_id.wav'))
        
            # Start a loop and record 10 seconds every time there's an incoming signal:
            started = False
            while 1:
                cor = roip_dev.cor()
                if cor:
                    if started:
                        print('Incoming signal, continuing recording...')
                    elif not started:
                        print('Incoming signal, beginning recording.')
                        started = True
                        os.system('rec signal.wav trim 0 10')
                elif not cor:
                    if started:
                    print('Incoming signal stopped, stopping recording.')
                    started = False
        
            roip_dev.close()
        
        
        Build Status
        ============
        
        Master:
        
        .. image:: https://travis-ci.org/ampledata/roip.svg?branch=master
            :target: https://travis-ci.org/ampledata/roip
        
        Develop:
        
        .. image:: https://travis-ci.org/ampledata/roip.svg?branch=develop
            :target: https://travis-ci.org/ampledata/roip
        
        
        Source
        ======
        Github: https://github.com/ampledata/roip
        
        Author
        ======
        Greg Albrecht W2GMD oss@undef.net
        
        http://ampledata.org/
        
        Copyright
        =========
        Copyright 2018 Orion Labs, Inc.
        
        License
        =======
        Apache License, Version 2.0. See LICENSE for details.
        
Keywords: Ham Radio,APRS,KISS,RoIP
Platform: UNKNOWN
Classifier: Topic :: Communications :: Ham Radio
Classifier: Programming Language :: Python
Classifier: License :: OSI Approved :: Apache Software License
