I'm trying to create a command line interface for the modole mentioned above. I want the interface to be able to present title/artist for the channel chosen. And change channel based on Command Line argument. I was able to manage the changing channel, with one hookup that may or may not be my ignorence of perl programming. Here's the perl script I have created the change the channel.
my $serial = new Device::SerialPort('/dev/t
my $tuner = new Audio::Radio::Sirius;
The commented portion above is the problem I'm having with the channel change script. If it's uncommented then the radio has a large gap as it powers down, then powers back up, so I'd rather not have it in. However, if it's left out, running the script once will change the channel correctly, second and subsequent attempts to change to a different channel will gracefully fail (no error messages). After the line is placed back in, the cycle repeats, it'll change the channel only once. I'm not sure if this is a problem with the script, or the module.
As for the title/artist information, it appears a "callback" is used?... Does the script have to conintually run in order for the call back system to work?... I know nothing of the callback method, and can't seem to find the right things to search for on Google to obtain the information I need.
What would be best would be a script that would return the artist/song name. Something like,
[user@server]# song_info 21
Matchbook Romance - Monsters
Is this possible with this module?...