Comment 10 for bug 945582

Revision history for this message
Hans Hellén (hans-hellen) wrote :

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;