SmartSDR v3.7.4 and the SmartSDR v3.7.4 Release Notes | SmartSDR v2.12.1 and the SmartSDR v2.12.1 Release Notes
SmartSDR v1.12.1 and the SmartSDR v1.12.1 Release Notes
Power Genius XL Utility v3.8.8 and the Power Genius XL Release Notes v3.8.8
Tuner Genius XL Utility v1.2.11 and the Tuner Genius XL Release Notes v1.2.11
Antenna Genius Utility v4.1.8
Need technical support from FlexRadio? It's as simple as Creating a HelpDesk ticket.
Spot API "trigger_action"
Question
I am trying to build a API command to add a spot with a trigger action.
Adding spots to the panadapter works just fine, but I have been unable to structure the API to have the spot do something when I click on it.
The API WiKi appears to have two options:
- "trigger_action=tune" - to tune to the spot's frequency, and
- " trigger_action=none" - to implement a custom behavior.
I have tried both. Here are my test API Spot commands. The spots appear, but clicking on the spot does not cause an action:
spot add rx_freq=14.220 callsign=KE5DTO mode=USB color=#FF5733 source=N1MM spotter_callsign=N5AC timestamp=1533196800 lifetime_seconds=3600 priority=4 comment=thanks trigger_action=tune
and
spot add rx_freq=14.220 callsign=KE5DTO mode=USB color=#FF5733 source=N1MM spotter_callsign=N5AC timestamp=1533196800 lifetime_seconds=3600 priority=4 comment=thanks trigger_action=none
Question, what am I missing with making the "trigger_action" API work?
Alan. WA9WUD
Answers
-
Hi Alan, it looks like it is working for me.
If trigger_action=none, then I get the fact that the spot was triggered, but the slice does not move to that frequency.
R25|0|| S55FD333D|spot 157 callsign=KE5DTO rx_freq=7.220000 tx_freq=0.000000 mode=USB color=#FF5733 background_ color= source=N1MM spotter_callsign=N5AC timestamp=1533196800 lifetime_seconds=3600 priority=4 comment=thanks trigger_action=none R26|0|157| S0|interlock tx_client_handle=0x00000000 state=READY reason= source= tx_allowed=1 amplifier= S1603B860|spot 157 triggered pan=0x40000000
On the other hand, if trigger_action=tune, the active slice goes right to the spot frequency.
R25|0|| S55FD333D|spot 157 callsign=KE5DTO rx_freq=7.220000 tx_freq=0.000000 mode=USB color=#FF5733 background_ color= source=N1MM spotter_callsign=N5AC timestamp=1533196800 lifetime_seconds=3600 priority=4 comment=thanks trigger_action=tune R26|0|157| S1603B860|spot 157 triggered pan=0x40000000
So, I think that the idea is that you intercept the spot status message, get the spot number and the fact that it was triggered, and if you need it, which panadapter it was triggered from. With that info, you can take whatever action you want.
In the case of my repeater spots app, I leave trigger_action set to tune, then take my own action of setting the mode and repeater options.
0 -
Len
I look like you are trigger a specific spot number, 157. What happens if you use "spot add....."
Alan
0 -
Neve mind.....i just notice you displayed the status message.
Alan
0 -
Len
Problem solved. It appears MacSmartSDR does not support the Spot "trigger-action" command.
I tested the same on Windows SmartSDR and it worked just fine. On MacSmartSDR, the icon does not change when I hover on the spot, a good indication that Mac does not recognize the action.
Alan. WA9WUD
0 -
Hi Alan, I'm glad you got that figured out. You might want to drop a note to Marcus to see if he has plans to add this functionality.
0
Leave a Comment
Categories
- All Categories
- 248 Community Topics
- 2.1K New Ideas
- 488 The Flea Market
- 7.4K Software
- 5.9K SmartSDR for Windows
- 135 SmartSDR for Maestro and M models
- 330 SmartSDR for Mac
- 241 SmartSDR for iOS
- 224 SmartSDR CAT
- 161 DAX
- 344 SmartSDR API
- 8.5K Radios and Accessories
- 6.9K FLEX-6000 Signature Series
- 773 Maestro
- 42 FlexControl
- 836 FLEX Series (Legacy) Radios
- 727 Genius Products
- 391 Power Genius XL Amplifier
- 252 Tuner Genius XL
- 84 Antenna Genius
- 224 Shack Infrastructure
- 151 Networking
- 373 Remote Operation (SmartLink)
- 118 Contesting
- 583 Peripherals & Station Integration
- 116 Amateur Radio Interests
- 810 Third-Party Software