NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 54 55 56 57 58 … 433 Next »
Creating .exe for Sky Q Commads

Creating .exe for Sky Q Commads
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#11
2018-05-21, 05:43 PM
gdogg371 Wrote:Am I missing something here? What I mean is if you have 'Something.exe', what goes in that?
Anything you want goes in there. It just need to accept the channel number parameter from the command line.

ie, you'd probably do something like the equivalent of this c# code:

Code:
using System;
using System.Collections.Generic;

namespace Blaster
{
    class Program
    {
        static void Main(string[] args)
        {
            if (args.Length == 0)
            {
                Console.WriteLine("Usage:");
                Console.WriteLine("\tBlaster.exe <ChannelNumber>");
                return;
            }

            // get channel number from command line
            string channelNumber = args[0];

            // split into individual digits
            foreach (char digit in channelNumber.ToCharArray())
            {
                SendDigit(digit);
            }
        }

        static void SendDigit(char digit)
        {
            ... code to send digit to SkyQ box ...
        }
    }
}
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#12
2018-05-21, 05:45 PM
Quote:is it the code you have posted, or is that from the NVR source code? Apologies if I am asking the wrong questions.
That was some NextPVR code, just showing it running something.exe with the channel number as a parameter.
pkscout
Offline

Senior Member

USA
Posts: 464
Threads: 50
Joined: May 2014
#13
2018-05-21, 07:49 PM
I think I've been having a similar conversation with the OP over on the Kodi forum, so just for completeness, I have written an alternative channel changer in Python that uses an Iguana blaster instead of the Haupage one (mostly because I wanted to be able to send other commands besides channel numbers). It's available at:

https://github.com/pkscout/iguana-blaster

Since you have to call the python interpreter to run the script, it took me a little trial and error to figure out how to set that up in NextPVR, but here's what it looks like:

[ATTACHMENT NOT FOUND]
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): « Previous 1 2


Possibly Related Threads…
Thread Author Replies Views Last Post
  NextPVR Creating a Ton of Processes brownSys 9 2,281 2019-01-04, 01:44 AM
Last Post: sub
  Creating "Duplicates" to Avoid Bobomo 11 3,143 2016-11-28, 01:38 AM
Last Post: mvallevand
  Deleting Metadata and re-creating Correct Metadata? jksmurf 7 2,340 2016-07-27, 12:33 AM
Last Post: jksmurf
  Windows 10 NextPVR not creating Scheduled Task wayloncovil 12 5,334 2016-01-29, 09:48 AM
Last Post: V_J
  Creating Recurring Recordings toricred 21 7,078 2012-10-15, 04:17 AM
Last Post: mvallevand
  Daily manual recording not creating pending recording for 'today'. Hal2010 0 942 2012-04-13, 01:03 PM
Last Post: Hal2010
  Daylight savings time creating timegap from 2am to 8am ub435-q v2 0 1,134 2012-03-05, 06:34 AM
Last Post: ub435-q v2
  No creating daily recurring event thamch 1 1,255 2011-05-12, 04:38 PM
Last Post: sub

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode