G4WNC - CAT Control using FLRIG and Yaesu FT-897

This example flow has been produced to support my RSGB Tonight@8 presentation on 5th June 2023.

The flow can be used to control any rig that's supported by FLRIG. Simply install and run FLRIG and select the target rig. FLRIG supports a very comprehensive set of commands and, when combined with Node-RED, these can be used to build a custom rig control application.

In addition to the standard Node-RED nodes, this flow uses node-red-contrib-xmlrpc and node-red-contrib-dashboard. These are available from the Node-RED site.

[{"id":"59b9a0bce277e368","type":"tab","label":"Cat Control","disabled":false,"info":"This is a simple flow to demonstrate the control of an amateur radio rig using Node-RED. This example uses XML-RPC communication with FLRIG connected to my FT-897 transceiver","env":[]},{"id":"9d4286716284c5dc","type":"xmlrpc call","z":"59b9a0bce277e368","name":"Set VFO","method":"rig.set_vfo","client":"432f7ace4f68695e","x":1160,"y":360,"wires":[[]]},{"id":"5db7d12a6a7d9f88","type":"xmlrpc call","z":"59b9a0bce277e368","name":"Get Current Freq","method":"rig.get_vfo","client":"432f7ace4f68695e","x":830,"y":460,"wires":[["ea0e5611fc074666"]]},{"id":"ea0e5611fc074666","type":"ui_text","z":"59b9a0bce277e368","group":"20547374b633f2e0","order":1,"width":0,"height":0,"name":"","label":"Current Frequency (Hz)","format":"{{msg.payload}} Hz","layout":"row-spread","className":"","x":1110,"y":460,"wires":[]},{"id":"e88242266e9b5d49","type":"inject","z":"59b9a0bce277e368","name":"1 Sec Pulse","props":[{"p":"payload"}],"repeat":"1","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":550,"y":540,"wires":[["5db7d12a6a7d9f88","da0e904a2f891b6f"]]},{"id":"da0e904a2f891b6f","type":"xmlrpc call","z":"59b9a0bce277e368","name":"Get S Meter","method":"rig.get_DBM","client":"432f7ace4f68695e","x":830,"y":540,"wires":[["7a4577f2cec49ec8","c4918df2c6971a21"]]},{"id":"7a4577f2cec49ec8","type":"ui_gauge","z":"59b9a0bce277e368","name":"","group":"20547374b633f2e0","order":4,"width":0,"height":0,"gtype":"gage","title":"Signal","label":"units","format":"{{value}} dB","min":"-100","max":"-20","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","diff":false,"className":"","x":1110,"y":540,"wires":[]},{"id":"c4918df2c6971a21","type":"ui_chart","z":"59b9a0bce277e368","name":"","group":"20547374b633f2e0","order":5,"width":0,"height":0,"label":"S-Meter Log","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"-100","ymax":"-20","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"useDifferentColor":false,"className":"","x":1130,"y":620,"wires":[[]]},{"id":"67202ac2a38050b2","type":"range","z":"59b9a0bce277e368","minin":"1000","maxin":"30000","minout":"1000000.1","maxout":"30000000.1","action":"scale","round":false,"property":"payload","name":"Convert kHz to Hz","x":830,"y":360,"wires":[["9d4286716284c5dc"]]},{"id":"19bdd09f93e455a8","type":"ui_text_input","z":"59b9a0bce277e368","name":"","label":"Enter Freq (kHz)","tooltip":"","group":"20547374b633f2e0","order":2,"width":0,"height":0,"passthru":true,"mode":"number","delay":"0","topic":"topic","sendOnBlur":false,"className":"","topicType":"msg","x":540,"y":360,"wires":[["67202ac2a38050b2"]]},{"id":"432f7ace4f68695e","type":"xmlrpc-client","name":"Rig Controls","host":"192.168.1.237","port":"12345","path":"/"},{"id":"20547374b633f2e0","type":"ui_group","name":"Rig Controls","tab":"a4251b25e1c8c7ad","order":1,"disp":true,"width":"6","collapse":false,"className":""},{"id":"a4251b25e1c8c7ad","type":"ui_tab","name":"FT-897","icon":"dashboard","disabled":false,"hidden":false}]

Flow Info

Created 2 years, 1 month ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

Core
  • inject (x1)
  • range (x1)
Other
  • tab (x1)
  • ui_chart (x1)
  • ui_gauge (x1)
  • ui_group (x1)
  • ui_tab (x1)
  • ui_text (x1)
  • ui_text_input (x1)
  • xmlrpc call (x3)
  • xmlrpc-client (x1)

Tags

  • Cat
  • Control
  • FLRIG
  • RSGB
  • Tonight@8
  • G4WNC
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option