On-Air Widget
On-Air widget displays on which frequency you are currently active, utilizing your CAT radio connected to Wavelog.
Warning
Please be aware of possible privacy implications of using this widget, as this will show your current QRG in real-time.
How does it look?
On-Air variant
Off-Air variant
Widget configuration
- As already noted, in order for this widget to work, you need at least one CAT radio connected and working.
- The widget is disabled by default and needs to be explicitly enabled by user. Widget configuration is located in
Account > Widgetssettings. - The URL to you widget is displayed under the "Enabled" setting. This URL is unique for each user of the Wavelog, is generated automatically and cannot be changed.
URL settings
Some aspects of the widget can be further configured via GET parameters appended to the URL. If some option is not supplied, the default value is used.
https://[wavelog url]/index.php/widgets/on_air/xxxxxxxxxx?[option0]=[value]&[option1]=[value]&[option2]=[value]
| option | expected value | purpose | default value |
|---|---|---|---|
| text_size | 1 - 6 | font size used for the text displayed in widget | 1 |
| theme | default / cyborg / darkly / cosmo / superhero | appearance theme | theme, that user has selected in his account settings |
| radio_timeout_seconds | 60 - 10000 | how many seconds must pass since the last radio update for radio to be considered off-air | value, that is set in global Wavelog settings |
| nojs | 1 | Forces qrz.com to update the widget from time to time without reloading the whole page |
Example URL
https://[wavelog url]/index.php/widgets/on_air/xxxxxxxxxx?text_size=3&theme=darkly&radio_timeout_seconds=90&nojs=1
Usage
For embedding this widget on your website, or for example on QRZ.com, you can use the following code snippet. Do not forget to use your widget URL that you will find in Account > Widgets settings.