Tuning by clicking an HTML link ?
Hi,
I was wondering if is it possible to make the kiwi tune a frequency by clicking on an HTML element inside the UI.
For example, something like this:
<a href="#" data-freq="7200.00" data-mode="lsb">7200 kHz</a>
Some javascript can also be run using the onclick=""
event attribute.
This code could be used here and there... maybe inside the IFRAME extension, or somewhere else if one is able to do it.
Any idea?
Thanks
Comments
http://kiwisdr.com/quickstart/#id-user-tune
Maybe you would find this useful.
The Users tab shows other listeners by this format already.
Sure. Use your browsers HTML inspector. Then select the
Users
tab on the main control panel. Then typetune
in the inspector search field. It should show you an HTML <a> (anchor/link) element that updates (flashes) every 3 seconds that looks like (assuming you're tuned to 1000 kHz, am, z0):<a class="..." href="javascript:tune(1000.00,'am',0)">1000.00 kHz am z0</a>
So that's a very simple way to call the javascript
tune(freq, mode, zoom)
function when the anchor/link text is clicked on.of course,
it was under my eyes 🤐
I'll give it a try.
Thanks Yogicat and John!