Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Professional Forum - View Post
Previous section Next section Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Topic:
Looking for script: automatic repeat of sending same IR code
This thread has 6 replies. Displaying all posts.
Post 1 made on Tuesday February 10, 2009 at 06:01
blang2006
Long Time Member
Joined:
Posts:
May 2008
162
Hi all,

is there a script with the following function: If I start the script, it will send an IR signal
every 25minutes until the script is stopped manually. Always the same IR code.

Reason is: I´m nerved by my DVD Player. After ca. 30 minutes the auto standby is setting the player into standby, if I don´t play a CD/DVD. Because the machine is becomming cold and loosing the sound quality, I would like to send every 25minutes the stop signal. In this case the Player is not going in standby modus.

It should be possible to adjust the timer
It should be possible to send an individual IR code

Thank you in advance
Post 2 made on Tuesday February 10, 2009 at 18:32
GuerillaBuild
Long Time Member
Joined:
Posts:
December 2008
79
You can try using scheduleAfter() or having the page script repeat every so many minutes, seconds, etc. I never checked until now, but there is a limit on the page repeat to a maximum of every 5 minutes. The documentation for scheduleAfter does not specify a maximum time amount; but I'm sure there is a limit somewhere. You would have to test out how many milliseconds you can specify.
You can hide almost anything until you have to put the drywall up!
Post 3 made on Tuesday February 10, 2009 at 20:30
Spudnic
Long Time Member
Joined:
Posts:
January 2009
10
If I read the develoers guide correctly, the timers stop when the remote goes into sleep mode. And, currently, I think there are only three things to keep the remote from doing that ... 1) shake it, 2) plug into USB, or 3) have it sitting on the charger. All most inconvienient.

See:
Pg. 31 - 5.3. Behavior during sleep mode
Post 4 made on Tuesday February 10, 2009 at 21:54
Guy Palmer
Active Member
Joined:
Posts:
June 2008
648
Doesn't using a script to press the backlight every X seconds keep it from going into sleep mode?
OP | Post 5 made on Wednesday February 11, 2009 at 03:27
blang2006
Long Time Member
Joined:
Posts:
May 2008
162
It would be practically no problem for me, if the TSU9600 is sitting on the charger.
The function (brigdeging the auto standby) is needed, if there is no activity in my sitting room.

The sleep mode could hopefully ignored if this is true.
Also Question is, if the script allowing permanent activity with 25 minutes delay.
(The makro programming is not allowing this, because it is not possible to have a time delay of 25 minutes).

If the limit is 5 minutes; the "stop" command should come ervery 5 minutes. This is also acceptable, because no action is the result. Only the microprocessor of the DVD player is counting again.

Because I´m not familiar with Javascript programming: Any ideas how I can realize this?
Post 6 made on Thursday February 12, 2009 at 18:12
GuerillaBuild
Long Time Member
Joined:
Posts:
December 2008
79
I have used the backlight function to keep the pronto alive. There are a couple of small bugs with this process, but for the most part it works well.

Using "CF.widget("PS_BACKLIGHT").executeActions()" in Prontoscript will execute the backlight function and in turn key the pronto alive.

Execute the above line of code based on a repeating page or using scheduleAfter() would cause the pronto to stay awake as long as your timings on how often the backlight is called are in synch with your Pronto's 'go to sleep' timer.

Note: Page script looping is limited to a max of 3mins per loop. If you want to go longer (like 25 mins) you would need to use schedule after. I haven't tried this out, but the dev guide states a minimum setting in milliseconds; but no maximum!!

I also read in another post that someone had adjusted the 'go to sleep' timer to a ridiculously long interval and that also kept his/her Pronto awake. This option is what I call the 'global battery drain'. It applies everywhere; whereas using the above code allows you to be page or activity specific.
You can hide almost anything until you have to put the drywall up!
Post 7 made on Friday February 13, 2009 at 02:16
johanj
Long Time Member
Joined:
Posts:
January 2008
52
I use a small script to power off some equipment through the relays after 30 minutes on the home screen. The Pronto is awake for a few second every minute. I have this as a running every second:

time=new Date().valueOf();
dt=(time-time0)/1000;

if (dt>timelimit)
{
r1.set(false);
}

Just set time0=new Date().valueOf(); ans timelimit=xxx when you enter the activity

Johan


Jump to


Protected Feature Before you can reply to a message...
You must first register for a Remote Central user account - it's fast and free! Or, if you already have an account, please login now.

Please read the following: Unsolicited commercial advertisements are absolutely not permitted on this forum. Other private buy & sell messages should be posted to our Marketplace. For information on how to advertise your service or product click here. Remote Central reserves the right to remove or modify any post that is deemed inappropriate.

Hosting Services by ipHouse