or Connect
New Posts  All Forums:Forum Nav:

iRule - Page 249

post #7441 of 9757
Quote:
Originally Posted by Jim Clamage View Post

Re setting up a NFL Sunday Ticket Page with program info:
I never heard back from the guys at Waltz Remote but after further digging it looks like they use scripts/JSON/AJAX to get their program info from the DirecTV guide on the website, parse it and put it into a layout on a web page.
I wasn't sure how that would work in the iRule environment, so I went back and looked more carefully at what SeldomSeen31 had done previously (http://www.avsforum.com/t/1351981/irule/7230#post_22603300) since it looked like he got soooo close...and late last night I got an NFL Sunday Ticket page with program info to work. Here's a quick layout and proof of concept (I'll finish up the page layout later tonight):

As I said, SeldomSeen31 was very close. For each channel number that you want to display program info for, for example 704, you need:
1) A unique DirecTV HTTP Remote Device in the builder (ie. DirecTV704)
2) A unique Channel Info Query Network Code in that Device that references the channel (ie. tv/getProgInfo?major=704)
3) A unique Entrance in the Panel that executes that Channel Info Query (fyi, I use repeat every 10 secs)
4) A unique Feedback in the builder that references that DirecTV704 Device in the feedback properties
5) Place the Title Feedback Code for that unique Feedback in the page
6) Save
7) Sync your iPad
8) Go to Panel, Gateway, add a new HTTP Gateway, add the DirecTV704 device and your IP address etc
9) and that's it. smile.gif
The problem before was that if you had multiple query's on the same device and feedback, the latest query would apply to all feedbacks on that device and confuse everything. The key is to have a separate device, code, query, feedback, and gateway for each channel.
Yes, it's a giant PITA, but if someone has a better way, I'm all ears.
Enjoy,
Clam
PS. I also kept a unique DirecTV device and gateway for the current channel query, that way my regular remote control page can query the current channel without affecting any of the channel specific queries on the NFL page.

OK, this is my first attempt at feedback with DirecTV. I did every step that you have listed above (or thought I did) and get no feedback whatsoever. Obviously I'm not doing something right. I'm not sure I understand the Query Code. I created a new query code in the unique Channel 704 Device -- I used the same code you did (tv/getProgInfo?major=704). I put this code into a unique entrance for the panel. I imported a new DirecTV feedback and renamed it DirecTV 704. I attached this to the new device. I placed the title feedback on the page and added the new gateway -- but nothing happened after syncing. Any idea where I messed up?
post #7442 of 9757
Quote:
Originally Posted by rs691919 View Post

OK, this is my first attempt at feedback with DirecTV. I did every step that you have listed above (or thought I did) and get no feedback whatsoever. Obviously I'm not doing something right. I'm not sure I understand the Query Code. I created a new query code in the unique Channel 704 Device -- I used the same code you did (tv/getProgInfo?major=704). I put this code into a unique entrance for the panel. I imported a new DirecTV feedback and renamed it DirecTV 704. I attached this to the new device. I placed the title feedback on the page and added the new gateway -- but nothing happened after syncing. Any idea where I messed up?

First thing I would check is that your DirecTV receiver is set up for feedback.
1.Menu, settings & help, settings, Network setup, Network Services
2. Configuration type: manual
3 STB Services Port: 27177
4.Audio Services Port: 27178

I believe you have to do that so your receiver will accept the SHEF API commands (ie the query, etc.).

If that doesn't help, let me know and we can try and debug it.
Clam
post #7443 of 9757
I have my NFL Sunday Ticket Page and Favorites Page with feedbacks so I thought I'd share what I did to make it work:

1. I decided to abandon the trial with unique entrances for each channel. Instead I went with just 3 entrances: DirecTV , Favorites and NFL Sunday Ticket. DirecTV has the query for current channel, the other 2 have the queries for their specific channels needed.
2. I setup the 3 pages (DirecTV, Favorites and NFL) to have their corresponding entrance.
3. The DirecTV page only queries current channel and repeats every 60 seconds to stay current. In the DirecTV remote i added the current channel query to the Select, Enter, and Exit buttons. So I get the current channel when I enter the page and every 60 seconds after, but also if I enter a new channel or select a channel from the guide or list, so I stay current before the 60 secs runs out.
4. The NFL page queries are only being requested when I enter that page. Same for Favorites. They don't need to repeat, just query when I enter that page. That way the amount of queries doesn't overload the receiver. I placed a "Return" link in each page that takes you back to the DirecTV page, and I added a Current Channel query command to make sure its up to date when it gets there.
5. In all cases I only use a 0.2 sec delay between queries.
6. I setup the DirecTV remote page with an NFL and FAV link. I included a Message in each link with the Title "Please wait" and the Text "for the channels to refresh" which appears when the page is linked. When the message disappears, the Entrance queries begin and they come in in perfect order.
7. Later, say after the top of the hour, if you enter the NFL or FAV page, the queries go again and you see any changes pop in.

Everything is working fine for about a week now. Any questions, let me know.
Clam

PS. Here's some pics of the pages and from the builder (and I just noticed I need to add a query to the entrances for the receiver volume...will this ever be done? smile.gif :






post #7444 of 9757
Did anyone else have "Make Sound On Tap" stop working after the latest update?
post #7445 of 9757
I thought the Fav page was too boring so I threw in a DTV background...

post #7446 of 9757
Quote:
Originally Posted by Jim Clamage View Post

First thing I would check is that your DirecTV receiver is set up for feedback.
1.Menu, settings & help, settings, Network setup, Network Services
2. Configuration type: manual
3 STB Services Port: 27177
4.Audio Services Port: 27178
I believe you have to do that so your receiver will accept the SHEF API commands (ie the query, etc.).
If that doesn't help, let me know and we can try and debug it.
Clam

Jim, thanks. Still no-go. Ports were set as described. Gateway is set up exactly as the HR24, and control works without issue. I used the following query command: tv/getProgInfo?major=704 (no spaces). I created that command in the new 704 device. Placed that in an entrance to the Sunday Ticket page. Put the title feedback code on the page. It was initially set to hide at -1 sec. Any thoughts?
post #7447 of 9757
Quote:
Originally Posted by rs691919 View Post

OK, this is my first attempt at feedback with DirecTV. I did every step that you have listed above (or thought I did) and get no feedback whatsoever. Obviously I'm not doing something right. I'm not sure I understand the Query Code. I created a new query code in the unique Channel 704 Device -- I used the same code you did (tv/getProgInfo?major=704). I put this code into a unique entrance for the panel. I imported a new DirecTV feedback and renamed it DirecTV 704. I attached this to the new device. I placed the title feedback on the page and added the new gateway -- but nothing happened after syncing. Any idea where I messed up?
Quote:
Originally Posted by Jim Clamage View Post

First thing I would check is that your DirecTV receiver is set up for feedback.
1.Menu, settings & help, settings, Network setup, Network Services
2. Configuration type: manual
3 STB Services Port: 27177
4.Audio Services Port: 27178
I believe you have to do that so your receiver will accept the SHEF API commands (ie the query, etc.).
If that doesn't help, let me know and we can try and debug it.
Clam
Quote:
Originally Posted by rs691919 View Post

Jim, thanks. Still no-go. Ports were set as described. Gateway is set up exactly as the HR24, and control works without issue. I used the following query command: tv/getProgInfo?major=704 (no spaces). I created that command in the new 704 device. Placed that in an entrance to the Sunday Ticket page. Put the title feedback code on the page. It was initially set to hide at -1 sec. Any thoughts?

Lets attack this one step at a time:

1. Here's a pic of the channel 704 device with the code showing. The code needs to be exactly like this, the upper and lower case in ProgInfo does make a diff.



2. Here's the NFL entrance. Note how the 704 is in here. I dragged the command from the 704 device into the entrance.



3. Here's a pic of the NFL Page. Note how I selected the NFL entrance here, so each time you enter this page it does all of the queries in the NFL entrance.



4. Here's a pic of the Channel 704 feedback. Notice how under Device on the left I've chosen the 704 device created in #1 above.



5. Set the title feedback to hide at -1, that means it doesn't go off. Make sure the title feedback has enough width and height so that the data shows. Mine are 7w x 2 h, helvetica 12 bold.



6. Save. Go to your iPad, launch iRule, panels, sync.
7. Still on iPad, go to devices and add the 704 device just like you did previously to get control of your H24. Make sure you select the 704 device. make sure you enter the correct ip address and port 8080.
8. SAVE

At this point I usually exit the program, double click home, x out of irule, and then relaunch iRule.

You now know everything I know...smile.gif Good luck.
Clam
post #7448 of 9757
Well, I didn't change anything and now it's working! Go figure. This has happened now several times - something in iRule doesn't work and then all of a sudden starts working. It's almost like iRule needs a day to figure it out. Huh. Well thanks for the help - btw, do you have those Sunday ticket graphics shared?
post #7449 of 9757
Quote:
Originally Posted by rs691919 View Post

Well, I didn't change anything and now it's working! Go figure. This has happened now several times - something in iRule doesn't work and then all of a sudden starts working. It's almost like iRule needs a day to figure it out. Huh. Well thanks for the help - btw, do you have those Sunday ticket graphics shared?

Glad to hear it worked. I've had similar issues where I make changes that don't work...I usually find I need to log out and back into iRule when I change gateways.

Sunday Ticket graphics are shared: all credit to Harvey whose buttons I used. Browse images, user, NFL.
The panels are saved: browse panels, user, watch directv with nfl & favs.

Have fun.
Clam
post #7450 of 9757
How's the newest new version of iRule handling the mini iPad? All issues resolved and working now?

Gotta let Santa know....
post #7451 of 9757
Quote:
Originally Posted by Golitzbt View Post

I use IP for everything zone 1 on my 3310, but I also need to use IR for zones 2 & 3. Not sure why I can't get IP to work on the other zones. But for zone 1, IP is great.

This reminded me of two questions regarding Denon codes in iRule. The first question was if the zone controls existed. Based on your post, it would seem they do exist, both for IP and IR. The second question is if they have codes for the other Denon Remote Control ID's? I have two Denon AVR's, and use one of them with Remote ID 2. I can always just learn the IR commands for those, as I did for my URC MX-980.

Thanks.

Mark
post #7452 of 9757
Quote:
Originally Posted by Jim Clamage View Post

How's the newest new version of iRule handling the mini iPad? All issues resolved and working now?
Gotta let Santa know....
Works on mine now
post #7453 of 9757
Quote:
Originally Posted by Jim Clamage View Post

How's the newest new version of iRule handling the mini iPad? All issues resolved and working now?
Gotta let Santa know....

2.6.1 version in the app store works with ipad mini now.



Alex
post #7454 of 9757
Been working on graphics and getting the Global stuff setup. Hell of a lot of fun.
Have the PS3IR unit set up and working.
Question for everyone.....is there a way using the PS3IR and the iRule app to have it directly link to a Netflix button on one of the main screens?
Thanks.
Geoff
post #7455 of 9757
You could create a macro to execute the need button presses but it can be tricky to get to Netflix from start up. I know sometimes I get updates that require extra key presses like when a cloud save is done or a game updates.

But a power on command followed by a significant delay and the a couple lefts a couple downs and an X would get you close.
post #7456 of 9757
For anyone who is running iRule on Android and is missing the (apparently) iOS-only feature to hide the top/bottom status bar, try SureLock.

It will allow you to run iRule in "kiosk" mode where the status bar is hidden and the user cannot run anything other than iRule. Hiding the status bar requires the device to e rooted.

Works great. A license costs $49.99 but maybe that's a cheap way to avoid divorce... smile.gif
post #7457 of 9757
Anyone here knows how to control a telldus tellstick net from iRule?

Telldus have released a firmware in march 2012, so it should be possible to do it without using web live.

http://developer.telldus.com/blog/2012/03/02/help-us-develop-local-access-using-tellstick-net-build-your-own-firmware
post #7458 of 9757
I am looking to put my XBMC/HTPC to sleep and to also wake using irule. Currently, I am controlling XBMC over http/JSON so I don't have an option there unless the WOL works in irule sending a magic packet, which I have not tried yet. If anyone has any experience doing that, please speak up.

The easiest way I figured would just be hook up an USB IR to the HTPC and send a spacebar keystroke from irule. My question is, which device should I upload to send IR keystroke commands in iRule?
post #7459 of 9757
Quote:
Originally Posted by btizzle View Post

I am looking to put my XBMC/HTPC to sleep and to also wake using irule. Currently, I am controlling XBMC over http/JSON so I don't have an option there unless the WOL works in irule sending a magic packet, which I have not tried yet. If anyone has any experience doing that, please speak up.
The easiest way I figured would just be hook up an USB IR to the HTPC and send a spacebar keystroke from irule. My question is, which device should I upload to send IR keystroke commands in iRule?

I haven't tried it, wondered it this iRule tutorial would work...

http://support.iruleathome.com/customer/portal/articles/474039-wake-on-lan
post #7460 of 9757
nice find thanks! I will give that a try first..
post #7461 of 9757
Quote:
Originally Posted by btizzle View Post

I am looking to put my XBMC/HTPC to sleep and to also wake using irule. Currently, I am controlling XBMC over http/JSON so I don't have an option there unless the WOL works in irule sending a magic packet, which I have not tried yet. If anyone has any experience doing that, please speak up.
The easiest way I figured would just be hook up an USB IR to the HTPC and send a spacebar keystroke from irule. My question is, which device should I upload to send IR keystroke commands in iRule?

Set your XBMC or go to SLEEP after certain period and then use the iRule Wake-On-Lan function to wake it up. I personally use combination of MCEController to launch my XBMC application. So my XBMC is set to exit itself after 15 mins, thus letting the OS do power management. Then when I press the XBMC button, my entrance turns everything on, sends WOL command and after 20 seconds sends the Start XBMC command to the MCEController.



Alex
post #7462 of 9757
Quote:
Originally Posted by osupike99 View Post

Set your XBMC or go to SLEEP after certain period and then use the iRule Wake-On-Lan function to wake it up. I personally use combination of MCEController to launch my XBMC application. So my XBMC is set to exit itself after 15 mins, thus letting the OS do power management. Then when I press the XBMC button, my entrance turns everything on, sends WOL command and after 20 seconds sends the Start XBMC command to the MCEController.
Alex

Alex good info. Where/in which device do we find the WOL command?
post #7463 of 9757
Any chance somebody would be able to kindly give me the steps to getting my irule to talk to my cbus lighting system. I have the 5500cn network interface unit and its on port 10001.
post #7464 of 9757
I'm just starting to look at a couple of options and would like to understand if I would be able to control my Pioneer Plasma (KRP-500M) and Denon Amp (3808) using IP as both have a web interface?

If this is possible would someone be able to point me towards the steps required to get this working in iRule?

Thanks
James
post #7465 of 9757
I know there are some Lumagen Radiance users here that can hopefully help me out. I'm trying to send a simple IR "power on" to my Mini 3D. When I send the command I get a red flash on the lower left of the screen and nothing goes out to the emitters. The regular remote works fine through my IR system. Any ideas?

Update: Since I wasn't getting any emitter output I checked the gateway. I deleted the Lumagen device and then added it back in and all is now well.
Edited by obie_fl - 12/16/12 at 1:56pm
post #7466 of 9757
Quote:
Originally Posted by jamesaevans View Post

I'm just starting to look at a couple of options and would like to understand if I would be able to control my Pioneer Plasma (KRP-500M) and Denon Amp (3808) using IP as both have a web interface?
If this is possible would someone be able to point me towards the steps required to get this working in iRule?
Thanks
James

I would start with iRule's tutorials, they are really good for getting you up to speed on the basics. At a fundamental level here's what you need for IP control of anything

1. A device that is compatible with iRule (Android, iOS, etc.)
2. A basic knowledge of what to do (which can be gleaned from iRule tutorials, I'd just read through them all first to get a good baseline)
3. Knowing the IP addresses of your devices
post #7467 of 9757
Quote:
Originally Posted by giomania View Post

This reminded me of two questions regarding Denon codes in iRule. The first question was if the zone controls existed. Based on your post, it would seem they do exist, both for IP and IR. The second question is if they have codes for the other Denon Remote Control ID's? I have two Denon AVR's, and use one of them with Remote ID 2. I can always just learn the IR commands for those, as I did for my URC MX-980.
Thanks.
Mark

Something's weird here. I control my 4311 with IP and am able to control zone 2 just fine, in fact if I wanted I could easily control ever zone it supports (up to 4) just fine via IP. This isn't a function of iRule, this is a function of whether or not the codes exist (which they do, and iRule has them all ready for you).

I would highly recommend using IP or RS232 for control over IR whenever possible. It opens up the door for feedbacks, is more reliable, etc.
post #7468 of 9757
I am trying to capture ir commands using an ip2ir itach but want to be able to use those command in another room which has a gc 100.When I look at the ilearner utility it seems it wants the port from which the command will be issued.Can I later change that for the gc 100?
post #7469 of 9757
Quote:
Originally Posted by shah993 View Post

I am trying to capture ir commands using an ip2ir itach but want to be able to use those command in another room which has a gc 100.When I look at the ilearner utility it seems it wants the port from which the command will be issued.Can I later change that for the gc 100?
I think that information is stripped out and re-added in the iRule app. Regardless, I always switch the "Save format" setting in iLearn to HEX from Global Caché, then paste your commands into the Pronto Hex heading in your device in iRule.

SC
post #7470 of 9757
Quote:
Originally Posted by jamesaevans View Post

I'm just starting to look at a couple of options and would like to understand if I would be able to control my Pioneer Plasma (KRP-500M) and Denon Amp (3808) using IP as both have a web interface?
If this is possible would someone be able to point me towards the steps required to get this working in iRule?
The 3808 is good to go via IP. You can check the Compatible Devices page on the iRule site for gateway type (network) and port (23). Like TheYoshi said, go through the iRule Quick-Start Guide on the support site, then you can learn to customize, etc.

The Pioneer plasma... Depends. Probably should just contact iRule support with the model number, and they can research if it's IP-controllaple or not.

SC
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Remote Control Area