Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Static Browser List
#1
I am trying to figure out how to use the Static Browser List. I want to have a list of my favorite 20 stations on XM Radio.

I have watched the video but I am not getting how to create the list of data and make it work. Below is my template.

If there is a better way to do this I am open to that as well.

Thanks!

[Image: WHAudio%20Template.png?dl=0]
Reply
#2
It allows you to set both a visible text value, and a hidden one, for each list item. So you would set the regular text to the name of the channel. You would set the hidden text to whatever you need to be able to make that channel the active one, i.e. whatever you are going to send to the driver to select it.

The 'SetBrowserList2' command lets you pass in two quoted comma lists, the first being the visible text, and the second being the hidden text. So you would do something like this:

MyList:SetListBrowser2
P1="Crazy Rock", "Saline Dion All Day", "Trance Metal"
P2="xy444a", "kf894a", "238423"

So the first parameter is a quoted comma list of names, and the second is a quoted comma list of whatever types of identifiers are required to select the station. If you put that command in the OnPreload of the template, it will load them up any time the template loads.


When the user clicks on one of the items, the runtime values passed to you will contain both the visible and hidden (user) data. You will just pass that user data value on to the driver, so something like:

Devices::FieldWrite(MyXM.SelectChannel, %(IntfRTV:UserData), True)

So that will write the hidden user data value to the SelectChannel (a made up name, I don't know how you are selecting the channel) of the MyXM driver.
Dean Roddey
Explorans limites defectum
Reply
#3
Thanks Dean I will work on that tonight.

I tried to use the XM Radio driver for the channel logos. Whenever I got it up and entered a number it would cycle back to zero and not do anything.

I did see the one widget that referenced xm and DTV channels but I did not get that working either.

What would be the recommended source to use to get the logo's in a template?
Reply
#4
That I don't know. Is the XM Radio driver used to control a radio, or to just get info like current channel for use in your templates?
Dean Roddey
Explorans limites defectum
Reply
#5
That did the trick. Thanks Dean!

I used the Field Logo Image widget. I mapped a set of XM icons I had and it worked perfectly. There is a list in System\Ripper\Logos but it had some missing art.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Web browser widget Trioxide 7 5,438 02-25-2017, 06:30 AM
Last Post: Trioxide
  List Based Music Browsing jrlewis 36 14,127 06-29-2016, 05:18 PM
Last Post: kblagron
  list browser? jkmonroe 4 2,671 10-03-2015, 10:36 AM
Last Post: jkmonroe
  Integrating Blue Iris web browser ysualum 14 8,982 12-19-2014, 11:07 PM
Last Post: batwater
  How to put a pause in an Action list? Deane Johnson 10 5,006 11-30-2014, 11:22 AM
Last Post: Dean Roddey
  Full Pre-Wire List IVB 32 9,676 05-22-2013, 11:42 AM
Last Post: umdivx
  Russound SMS3 Browser jmwhooper 0 1,878 03-26-2013, 05:55 AM
Last Post: jmwhooper
  Anyone have a iTunes playlist browser already created? Sendero 34 13,628 01-28-2013, 04:42 PM
Last Post: Trioxide
  Web Browser widget issue - "Navigation to the webpage was canceled" SpeedDemon 13 7,678 05-11-2011, 02:32 PM
Last Post: SpeedDemon
  keeping web browser active Zanthic 2 1,896 12-16-2009, 11:15 AM
Last Post: Zanthic

Forum Jump:


Users browsing this thread: 1 Guest(s)