How do I start Freevo using a button on the remote?

Hi!
I've set up freevo on my computer and now I'd like to be able to launch freevo using my remote (I don't like to move out of my couch ).
I've google'd and wiki'd a lot, but I'm having trouble doing this. I came over this entry in the OS dir mail archive:
Subject: Re: Shutdown freevo with a lirc command
stephan wezel wrote:
Hi,
Hi.
can I shutdown freevo through one lirc event/command without selecting the
shutdown menu point ?
Yes!
and if how ??
Well, I am not sure if you can bind a Freevo event to shutdown but the way I do it is with irexec. Irexec is a command that comes with lirc that you can
have it run a command per button press based on configuration. In my /etc/init.d/freevo system start/stop script I have:
case "$1" in
start)
if [ "`ps -ef | grep irexec | grep -v grep`" = '' ]
then
/usr/local/bin/irexec -d /etc/freevo/irexec.conf
fi
Ok, so that't not the cleanest but upon startup it looks for a running irexec process and runs it if none is found. In /etc/freevo/irexec.conf I have:
begin
remote = hauppauge_pvr
button = Power
prog = irexec
repeat = 0
config = /etc/freevo/onoff_switch
end
So, every time that I press the power button the onoff_switch gets executed. That is a very messy shell script that decides if Freevo is running or not then starts or stops it.
The contents of that file are:
#!/bin/bash
TEST=`ps -ef | grep freevo | grep -v grep | grep -v irexec | grep -v onoff | grep -v "less " | grep -v "vi " | grep -v "cron" | grep -v "tail " | grep -v recordserver
| grep -v bitch | grep -v webserver | grep -v tv_grab`
if [ "$TEST" = "" ]
then
echo Freevo is off, starting.
/etc/init.d/freevo start
else
echo Freevo is on, stopping.
/opt/freevo/freevo stop
fi
Ok, the TEST line is horrible I know. I made that before adding pid file support to Freevo and need to fix it. Actually, perhaps I will add a 'switch' option to
my /etc/init.d/freevo and commit it to CVS.
Would others find this useful? I can use the power button on my remote to startup and shutdown Freevo with no issues.
-Rob
Since I'm noobish still I really don't know what to do with this script. Am I supposed to make a sh-file with the first part of the code and then autostart the file on startup?

Put a single frame sequence structure around your stop button and then wire from the error cluster going into the error handler to the edge of the sequence structure. Now your code will stop at the end of the current iteration. To see why this works, watch you code execute with execution highlighting turned on and review the section of the manual talking about "Dataflow".
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

Similar Messages

  • HT1947 How do you rate tunes using version 3 of the remote?

    I used to rate my tunes using the previous version of the app, but can't find it on version 3. Does anyone know where it is?

    Zoom Area is under the big Objects button.

  • HT201342 I have an icloud address but now I am told "that address is taken".  How can I start to use it again?

    How can I start to use my own address?  It is old from .me

    Welcome to the Apple community.
    Unfortunately you cannot change an iCloud mail address once you have created it. You can however use an iCloud alias which you can set up at iCloud.com.
    To create an alias.....
    Navigate to the Mail feature at iCloud.com and click on the gear icon in the bottom left corner. Choose Preferences from the drop down menu, then select accounts from the options across the top, here you can create your alias.

  • How can i start to use i chat if it said my password is incorrect and i change it, but still appears that the password is wrong :(

    how can i start to use i chat if it said my password is incorrect and i change it, but still appears that the password is wrong

    Hi,
    AIM
    If this is a Name valid with the AIM servers the password has to be 16 characters or Less.
    The Apple IDs from MobileMe and @Mac.com allow you to create (And prompt your for ) Longer passwords.
    These Names are Valid with the AIM servers but they cannot process the password.
    Use iforgot to Change the password to something shorter.
    Googletalk
    If you are using a Google ID then you have to enter your Google ID as it appears when you log in to the Google Web Mail Page.
    The Mail App seems to allow the Endings (@gmail.com and @googlemail.com) to be used almost interchangeably where as the Jabber Server Google run for Google Talk is stricter (so iChat needs to be precise).
    Also the chat option needs to appear in the Web Mail page.
    If it does not it needs Enabling on you Google Account settings page.
    8:10 PM      Tuesday; July 5, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.8)
     Mac OS X (10.6.7),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • How can you start up your ipod if holding the hold and home button does not work?

    how can you start up your ipod if holding the hold and home button does not work?

    Remi,
    How long did you hold these buttons for? Did you try more than once?  Have you tried letting it charge for a bit and trying again?
    If nothing else, see this article for more troubleshooting assistance.
    http://support.apple.com/kb/TS2771
    B-rock

  • How can I start anew with Photos and clear the (minimal) stuff it has uploaded

    I've about had it up to here with this new Photos scheme. I reorganised my Aperture libraries on both my iMac and MBA in preparation for this, delayed turning Photos on for a couple of days until I thought everything was ready based upon the limited advice that was out there, and then got stuck in an endless loop of "uploading" and "preparing" every time I opened Photos. There are 19,975 images in my Aperture library on the iMac. I was stuck at Uploading at anywhere between that number and 19,000 with no progress after hours of waiting. I tried all the tricks mentioned here including re booting, restarting the app, repairing/rebuilding the database, killing the "cloudd" process, etc.today Today when I restarted Photos, it now said I had 23,775 images to upload- 4000
    more than I have-and of course it got stuck there, like it has for the last week.
    I copied the previous Aperture library (pre Photos migration)back to my iMac and opened it in Aperture. Thankfully, all the photos I had taken on my iPhone this week during this Photos clusterphuck transition were in the Aperture Stream so I didn't lose any of those. I'm willing to give this whole thing one more shot. So  i need some advice. How can I start anew with Photos and clear the (minimal) stuff it has uploaded (about 6000 of 19,000 images in the last 7 days) ? If I simply delete the Photos.photolibrary file will that do the trick and lt me start a new fresh library using?
    <Re-Titled By Host>

    How can I start anew with Photos and clear the (minimal) stuff it has uploaded (about 6000 of 19,000 images in the last 7 days) ? If I simply delete the Photos.photolibrary file will that do the trick and lt me start a new fresh library using?
    It is hard to say from your post, why the migration did not succeed in your case.
    by "stuck on upload" do you mean, you opened the Aperture library in Photos, and Photos converted it to a Photo Library, and then the upload to iCloud Photo Library did hang?  Or did already the upgrade to the Photo Library fail?
    If you want the Aperture library to upload to iCloud Photo Library, it needs to be on a disk formatted MacOS Extended (Journaled) and the original image files must not be referenced. Referenced originals will not upload.
    Also, the upload may hang, if you do not have enough free iCloud storage, orr if one of the videos or photos in your library is in an unsupported format or corrupted.
    To start over, try to repair and rebuild the Aperture library before opening it in Photos. Try all Aperture Library First Aid options - starting with repairing the permissions.  (Repairing and Rebuilding Your Aperture Library: Aperture 3 User Manual)
    If I simply delete the Photos.photolibrary file will that do the trick and lt me start a new fresh library using?
    You will have to delete the photos that are already in icloud too; otherwise you are risking duplicates.
    Can you launch Photos at all?  If yes, delete all photos in Photos and empty the Recently Deleted album. Wait for the deletion to sync to iCloud. Then delete the Photos.photolibrary.

  • I cannot use any buttons on the display panel. The power is on and the display is lit up

    All-In-One Printer L7780  Windows 7 64-bit
    I cannot use any buttons on the display. The power is ON and the display is lit up. I have pulled the plug and waited a while and plugged it back in (several times over two days) but nothing changes.
    The diagnostics from the computer don't help. I can see the ink level and I can print a test page but the scanner does not work.
    This Printer just works when it wants to. The wireless connection only worked once in a while.
    Any help would be appreciated. Thanks!  Benno Wallé

    This may offer some help:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02716671&tmp_task=solveCategory&cc=us&dlc=en&la...
    007OHMSS
    I was a support engineer for HP.
    If the advice resolved the situation, please mark it as a solution. Thank you.

  • Anyone know how to fix a stuck sleep/wake button on the IPOD Touch?

    Anyone know how to fix a stuck sleep/wake button on the IPOD Touch?

    If the songs are still on your ipod, make sure autosync is disabled in iTunes on your computer, connect and right click on it in the device list, then choose "transfer purchases" to copy all bought media and apps from your ipod to your computer.
    If the songs are not on your computer and got deleted from your ipod as well, you can't get them back, unless you have a backup of your iTunes library as part of your computer backup.

  • HT204053 i lost my iPhone recently and how can i retrieve it using my Apple ID? also, how to turn icloud on using Itunes even if the phone's lost?

    i lost my iPhone recently and how can i retrieve it using my Apple ID? also, how to turn icloud on using Itunes even if the phone's lost?

    Unless you had enabled Find My iPhone on it before it was lost then there isn't any way to locate it (it can only be turned on directly on the phone, it can't be done remotely). If you did enable it then you could try locating it either via http://icloud.com on a computer or Find My iPhone on another device - but that will only work if it's connected to a network and the device hasn't already been wiped and/or Find My iPhone disabled on it.
    If you think that it was stolen then you should report it to the police. You should also change your iTunes account password, your email account passwords, and any passwords that you'd stored on websites/emails/notes etc.

  • How to configure router to use ip pool on the aaa server for vpn clients

    how to configure router to use ip pool on the aaa server for vpn clients . i want to use vpn clients to connect to the router. authenticate using the aaa server username databse and also use the ip pool cretaed on the aaa server. i am not able to find the command on the router pointing to use the pool created on the aaa server. can u some one help me with this command.
    sebastan

    Hello Sebastan,
    what do you use as AAA server (e.g. ACS with TACACS+ or RADIUS) ?
    Regards,
    GNT

  • My apple tv stopped working. When I hit a button on the remote I see the signal gets to the Apple TV because the little light flicks but nothing else happens. Anyone know how to fix this??

    My Apple TV suddenly stopped working. When I hit a button on the remote the light on the apple tv flickers but nothing else happens. Anyone know how I can fix this?

    I had the same problem; Apple TV was working proper then for no reason I got the continuous blinking front LED.  The Apple TV has no sound or video output at all.  I tried reseting the Apple TV via my Apple remote controller but that didn't do anything for me.  I finally called Apple and they told me that the way to fix my box is to reset the Apple TV to factory default.  So I had to attach the Apple TV to one of my Apple computers and launch iTunes.  Once iTunes was running it recognized my Apple TV and I clicked on the option to restore to factory default.  After the restore my Apple TV now works properly.  My final action on the Apple TV was to sign into my account and enter my password.

  • I want to set up wireless speakers in my yard using my phone as the remote to run music on my computer and ipad.. what do i need to do this?

    I want to set up wireless speakers in my yard using my phone as the remote to run music on my computer and ipad.. what do i need to do this? I have an airport extreme.. wireless set up.

    I found these speakers after I posted
    Audio Unlimited SPK-VELO-003 Premium Indoor / Outdoor Wireless Speaker System w/ Remote Contro
    I am thinking someway I should be able to send my music through airplay or homeshare to a speaker... hopefully wireless outside.. i know you can do it inside wiresly  but can you do it outside?
    I do not want to run speakers wires all over my yard.
    Thanks

  • How to go to previous page in task flow using 'BACK' button in the browser?

    Hi...
    I have created system using ADF application that can detect 'BACK' button in the browser(e.g. firefox and google chrome).Everytime i click the 'BACK' button in the browser,it will prompt out message that ask user whether want to 'stay in the current page' or 'leave the page'. Once i click 'leave the page' it will take me to the login page.
    Is there any possibility for go back to previous page in task flow when user click on browser's back button? By the way, the task flow is in the page fragment.
    can anyone tell me how to do it?Need this step urgently..
    Thanks in advance.
    Edited by: 942376 on Jun 22, 2012 11:03 PM
    Edited by: 942376 on Jun 22, 2012 11:07 PM

    Can you send that code to have a look ? Share it on some site

  • How do I revert back to IOS 10.8 on my 27" iMac?  Since I upgraded to 10.9 on Monday I am unable to use my buttons in the App Store window, notes or ibook window.

    How do I revert back to IOS 10.8 on my 27" iMac intel version?  Since I upgraded to 10.9 on Monday I am unable to use my mouse buttons in the App Store window, notes or ibook windows.  It works everywhere elese but not in any Apple application system windows.

    I'll try it. I don't have much confidence in it actually working since I'm having the same issue with all mouses (Bluetooth and wired) and my Bamboo Create.
    Can you also tell me how to revert back to IOS 10.8 in case resetting mouse preferences do not work?  I have already gone back and restored my system to before the up grade but it didn't restore the IOS system.

  • How to get current row using submit button ?

    Hello Friends ,
    Is there any way i can capture the value of current row by submit button ?
    Here is my requirement , i have seeded OAF screen and it has table region one of the column has radio button , the existing
    functionality is when ever the radio button is selected and click on submit button ( submit button attached on top of the table region )
    other oaf page is getting opened .
    Now i wish to restrict the navigation based on some condition , but i don't know how to get the current row using submit button .
    Note : there is no Fire Action event for radio button column ? I dont' know how orale is selecting a specific row
    Any suggestion please ?
    Regards ,
    Vamsi

    Thanks sushant for your response ,
    Well i have tried your approch , i am not getting values for current row .
    if (pageContext.getParameter("paApply") != null)
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    OAViewObject localOAViewObject1 = (OAViewObject)am.findViewObject("ProjectDatesVO");
    if(localOAViewObject1!=null) {
    Row DateVoROw = localOAViewObject1.first();
    RowSetIterator iterator = localOAViewObject1.createRowSetIterator("iterator");
    iterator.setRangeStart(0);
    iterator.setRangeSize(localOAViewObject1.getRowCount());
    for(int i=0; i<iterator.getRowCount(); i++)
    DateVoROw=iterator.getRowAtRangeIndex(i);
    String vacancyValue= DateVoROw .getAttribute("vacancyname).toString();
    Could you please let me know where i am going wrong
    Thanks again ,
    Vamsi

Maybe you are looking for

  • Ifilter 10.1.1 does not work?

    Hi, I've recently installed adobe reader 10.1.1. This comes with an ifilter dll for pdf files. I'm trying to use this ifilter in my software to read the contents of PDF files. It used to work fine with version 9.x and lower ifilters. (I'm testing thi

  • The button on my iPod touch is hard and not working properly

    I have bought an iPod touch 4G est year (2012) and the start button is hard and sometimes when I give once calcase responds as if twice. I have an iPad and the button is softer and I have friends who have an iPhone and is also soft. Regards.

  • How to make new project in existing folder with applescript in Aperture?

    I want to create a new project in an existing folder. I've scoured the web for answers to this but I cant find any. The closest I've come is this: tell application "Aperture" set imgSel to (get selection) if imgSel is {} then error "Please select an

  • Need to download folios repeatedly in Adobe Content Viewer

    Hi: We are using Adobe Content Viewer (ACV) for a digital education project. The ACV app is used in iPad´s and when are turned off, we need to download again all the folios previously downloaded to the ACV app. Someone who has the same problem, how t

  • Variable values in composite.xml property

    Hi, i've got the similar proble to: variable values in composite.xml property Static value for property <property name="oracle.webservices.auth.password" type="xs:string" many="false" override="may">admin</property> <property name="oracle.webservices