Is it possible to inject a rigctld command as part of connecting to Vara FM? either part of my hamlib_rigs as follows:
"hamlib_rigs": {
"ftx-1": {
"address": "localhost:4532",
"network": "tcp"
},
"ftx-1-fm": {
"address": "localhost:4532",
"network": "tcp",
"vfo": "VFOB",
"ptt_vfo": "VFOB",
"pre_connect_hook": "rigctl -m 2 -r localhost:4532 w 'VS1;'"
}
},
or
"varafm": {
"addr": "localhost:8302",
"bandwidth": 0,
"rig": "ftx-1-fm",
"ptt_ctrl": true
},
rigctl -m 2 -r localhost:4532 w "VS1;" runs fine from the command line, changes my ftx-1 active Main-side to active Sub-side. Pat changes the frequency on the VFOB side, but I don't think hamlib 5.0 can do this yet.