Skip to main content

A python wrapper for Omni-Rig

Project description

omnipyrig

A package that allows the deveplopment of amateur radio applications using the amazing Omni-Rig library

prerequisite

  1. OmniRig (http://dxatlas.com/omnirig/)
  2. python (https://www.python.org/downloads/)

Installation

PyPi:
https://pypi.org/project/omnipyrig/
pip install omnipyrig

usage


import omnipyrig

#create a new instance
OmniClient = omnipyrig.OmniRigWrapper()
#set the frequency
OmniClient.setFrequency("A",14222000)
#set the mode
OmniClient.setMode(OmniClient.MODE_SSB_U)

how it works?

the package uses win32com to dispatch omnirig object
it then wrap it's properties and methods

constants & methods

constants:

mode enumeration

  • MODE_SSB_L
  • MODE_SSB_U
  • MODE_CW_U
  • MODE_FM
  • MODE_AM
  • MODE_RTTY_L
  • MODE_CW_L
  • MODE_DATA_L
  • MODE_RTTY_U
  • MODE_DATA_FM
  • MODE_FM_N
  • MODE_DATA_U
  • MODE_AM_N
  • MODE_PSK
  • MODE_DATA_FM_N

rit/xit

  • RIT_ON
  • RIT_OFF
  • XIT_ON
  • XIT_OFF

split

  • SPLIT_ON
  • SPLIT_OFF

vfo

  • VFO_AA
  • VFO_AB
  • VFO_BB
  • VFO_BA

methods:

  • client.showParams()
  • client.setFrequency(vfo_selector, frequency)
  • client.setMode(mode)
  • client.setRit(state)
  • client.setXit(state)
  • client.setRitOffset(offset)
  • client.setSplit(state)
  • client.setPitch(pitch)
  • client.setVfoA()
  • client.setVfoB()
  • client.setVfoAB()
  • client.setVfoBA()

73,
Gil 4Z1KD

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

omnipyrig-0.0.10.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

omnipyrig-0.0.10-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page