Ok so I can get info out of xmltv to show channel info based on the channel ID from the sky box (Sid) but this requires me input the sid into the script
i need a way to pull the current sid from the box and put it into that field
any help would be appreciated
#!/usr/bin/env python
import trio
import argparse
from pyskyq import EPG, XMLTVListing
async def main():
"""Run main routine, allowing arguments to be passed."""
epg = EPG('192.168.1.30') # replace with hostname / IP of your Sky box
await epg.load_skyq_channel_data() # load channel listing from Box.
all_72_hour = XMLTVListing('http://www.xmltv.co.uk/feed/8943')
async with trio.open_nursery() as nursery:
nursery.start_soon(all_72_hour.fetch)
epg.apply_XMLTVListing(all_72_hour)
print('Channel Description from the SkyQ Box:')
print(epg.get_channel_by_sid(2002).desc)
print('Channel XMLTV ID from the XMLTV Feed:')
print(epg.get_channel_by_sid(2002).xmltv_id)
print('Channel Logo URL from the XMLTV Feed:')
print(epg.get_channel_by_sid(2002).xmltv_icon_url)
if __name__ == "__main__":
trio.run(main)
Possibly not, I thought it did originally but now I’m not sure. I’ve read that link over and over and can’t see anything that will give me any current channel number.
Maybe it’s not possible to get the info I want.
I’ve seen a plugin for Control4 that claims to work but have no experience with it
I found this but can’t get the component to load let alone pull any info