When using the long-term support version 12.04 Precise Pangolin one
might find these lines helpful:

# check the status: 
if /usr/bin/lynx -dump localhost:6544/Status/GetStatusHTML | grep -e "is 
watching Live TV" -e "and is recording";
        then echo "Recording Now";
fi


# In this year, 2012, one can use these funny lines to get the time of the next 
recording in a decent format.
# You have to first do the complete conversion of mythtv-status as instructed 
in the comment #4 above: 
# scheduled next: 
mythtv-status | grep "   " | (read -n 19 i; echo $i;) | cut -c 12-16 > 
~/recordings1-time.txt;
# Day
mythtv-status | grep "   " | (read -n 19 i; echo $i;) | cut -c 5-6 > 
~/recordings1-dd.txt;
# Month
mythtv-status | grep "   " | (read -n 19 i; echo $i;) | cut -c 8-9 > 
~/recordings1-mm.txt;
# in the end in a decent format: 
echo 2012-$(cat ~/recordings1-mm.txt)-$(cat ~/recordings1-dd.txt) $(cat 
~/recordings1-time.txt) > ~/recordings1-date.txt;

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/945582

Title:
  MythTV Status doesn't work with MythTV 0.25

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mythtv-status/+bug/945582/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to