Debugging

Media servers communicate with locast2tuner using HTTP. The following URLs might come in handy when debugging. By default these URLs are accessible on http://127.0.0.1:6077.

URLDescription
/ or /device.xmlHDHomerun device.xml
/discover.jsonHDHomerun discover.json
/epg.xmlElectronic Programming Guide in XMLTV format
/epgElectronic Programming Guide in JSON format. This format is mainly used for debugging and is pretty much all the data that was received from locast.org
/lineup_status.jsonHDHomerun lineup status
/lineup.jsonHDHomerun lineup.json
/lineup.postURL that HDHomerun uses to trigger a refresh. This doesn't do anything
/lineup.xmlHDHomerun lineup.xml
/map.jsonShows how channel mapping is currently configured
/tuner.m3uLineup for m3u tuners
/watch/{channel_id}.m3uRequest an m3u stream for a channel_id
/watch/{channel_id}Request an mpegts stream for a channel_id

You can open the above URLs in a browser and directly see the output.

In order to debug video streams, you can use ffplay (part of ffmpeg). E.g. ffplay http://127.0.0.1/watch/223892.m3u.