<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">On Oct 13, 2014, at 3:09 PM, Hika van den Hoven <<a href="mailto:hikavdh@gmail.com">hikavdh@gmail.com</a>> wrote:<br><div><br class="Apple-interchange-newline"><blockquote type="cite">How do I check if a tuner is in use by Mythtv. This so I can check in<br> my radio script if the tuner is available.<br> Can I find that in the database or is there a command. Or do I have<br> to check through the logs?<br></blockquote><div><br></div><div>You can query the backend via http like so:</div><div><br></div><div><div style="margin: 0px; font-size: 10px; font-family: Monaco;"> curl <a href="http://localhost:6544/Status/xml">http://localhost:6544/Status/xml</a></div></div><div><br></div><div>and get back xml. grep for Encoder to see if the one you want has state = 0. There is also pending information in the output.</div><div><br></div><div>If you're able to use xsl transformations you'd be even farther ahead but grepping will get you there too.</div><div><br></div><div>- George</div></div></body></html>