Skip to content

Instantly share code, notes, and snippets.

@airween
Created November 19, 2018 20:00
Show Gist options
  • Save airween/334512ce4e191f67e44820bcb88cb0fc to your computer and use it in GitHub Desktop.
Save airween/334512ce4e191f67e44820bcb88cb0fc to your computer and use it in GitHub Desktop.
#!/usr/bin/python
import Hamlib
Hamlib.rig_set_debug(Hamlib.RIG_DEBUG_NONE)
class Rig(object):
def __init__(self):
self.rig = Hamlib.Rig(Hamlib.RIG_MODEL_NETRIGCTL)
self.rig.open()
def shutdown(self):
self.rig.close()
def send_morse(self, text):
vfo = self.rig.get_vfo()
self.rig.send_morse(vfo, text)
rig = Rig()
t = "TEST HA2OS HA2OS TEST"
rig.send_morse(t)
@airween
Copy link
Author

airween commented Nov 19, 2018

  • open a terminal
  • run rigctld -m 1 -vv
  • run Python script above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment