NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Kodi / XBMC X-NEWA v
1 2 3 4 5 … 13 Next »
knewc 2.9.5 release

 
  • 0 Vote(s) - 0 Average
knewc 2.9.5 release
ElihuRozen
Offline

Senior Member

Massachusetts, USA
Posts: 515
Threads: 51
Joined: Apr 2006
#11
2022-01-26, 03:05 PM
@Martin,
Loaded rc2.  It fixes the issue with exiting to Kodi while watching a program.  I already had knewc in my Favorites, so what you are doing now in regards to popping that up works for me. 

Did you say that I should have the buttons at the top of the remote, TV, Guide, Videos, Music, Pictures and Radio, mapped to noop in my remote.xml?  I have done that and while TV (F8 - Recordings), Videos  (F3 - Videos) and Radio (F10 - What's New) all work, Guide (F1 - Guide), Music (F4 - Music) and Pictures (F9 - Scheduler) do nothing.

@anyone else that cares and me in the future,
to get the Go button to correspond to Ctrl-G to bring up the list of channel groups in TV Guide, I added the following two lines in emulate.py:
From:
Code:
        elif actionID == KEYBOARD_BACK or buttonID == 61575:
            url = keyBase + ENUM_KEY_BACKSPACE
        elif actionID in EXIT_SCRIPT:
            url = keyBase + ENUM_KEY_BACK
To:
Code:
        elif actionID == KEYBOARD_BACK or buttonID == 61575:
            url = keyBase + ENUM_KEY_BACKSPACE
        elif actionID == ACTION_BACK:
            url = keyBase + str(ENUM_KEY_G | ENUM_KEY_CONTROL)
        elif actionID in EXIT_SCRIPT:
            url = keyBase + ENUM_KEY_BACK
Tuners: SD HDHR Prime (HDHR3-CC). SD HDHR Connect Quatro Tuner (HDHR5-4US) - only QAM.  EXVIST H.265 Encoder - capturing cable box.
Client: Odroid-N2 running knewc on KODI - connected via MoCA.
EPG: SchedulesDirect
Provider: Verizon Fios
Server: Dell XPS 8700 with Windows 10
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,372
Threads: 963
Joined: May 2006
#12
2022-01-26, 10:31 PM
Thanks for giving it a try. Since you know how to edit the file you can always take out the exit but since that is unsupported, if I see lots of knewc unnecessary logging I won't respond to support posts.

Anyway, I hadn't actually it on the N2 but yes the defaults do work here. I see sub needs to change the 'screen' to use the new names but hopefully you can compare this with information in your logs.

Code:
2022-01-26 17:22:01.461 T:3692    DEBUG <general>: LIRC: - NEW 16d 0 KEY_EPG devinput (KEY_EPG)
2022-01-26 17:22:01.500 T:3685    DEBUG <general>: HandleKey: two (0x32) pressed, action is noop
2022-01-26 17:22:01.631 T:4535    DEBUG <general>: {'url': '', 'screen': 'TV Guide'}
2022-01-26 17:22:02.257 T:3692    DEBUG <general>: LIRC: - NEW 179 0 KEY_TV devinput (KEY_TV)
2022-01-26 17:22:02.292 T:3685    DEBUG <general>: HandleKey: one (0x31) pressed, action is noop
2022-01-26 17:22:02.583 T:4535    DEBUG <general>: {'url': '', 'screen': 'Recordings'}
2022-01-26 17:22:03.373 T:3692    DEBUG <general>: LIRC: - NEW 189 0 KEY_VIDEO devinput (KEY_VIDEO)
2022-01-26 17:22:03.401 T:3685    DEBUG <general>: HandleKey: 7 (0x07, obc248) pressed, action is noop
2022-01-26 17:22:03.491 T:4535    DEBUG <general>: {'url': '', 'screen': 'Videos'}
2022-01-26 17:22:04.444 T:3692    DEBUG <general>: LIRC: - NEW 188 0 KEY_AUDIO devinput (KEY_AUDIO)
2022-01-26 17:22:04.478 T:3685    DEBUG <general>: HandleKey: tab (0x09) pressed, action is noop
2022-01-26 17:22:04.568 T:4535    DEBUG <general>: {'url': '', 'screen': 'Music'}
2022-01-26 17:22:05.422 T:3692    DEBUG <general>: LIRC: - NEW d4 0 KEY_CAMERA devinput (KEY_CAMERA)
2022-01-26 17:22:05.438 T:3685    DEBUG <general>: HandleKey: 6 (0x06, obc249) pressed, action is noop
2022-01-26 17:22:05.528 T:4535    DEBUG <general>: {'url': '', 'screen': 'Recordings'}
2022-01-26 17:22:06.824 T:3692    DEBUG <general>: LIRC: - NEW 181 0 KEY_RADIO devinput (KEY_RADIO)
2022-01-26 17:22:06.851 T:3685    DEBUG <general>: HandleKey: 248 (0xf8, obc7) pressed, action is noop
2022-01-26 17:22:06.940 T:4535    DEBUG <general>: {'url': '', 'screen': 'Recordings'}

Martin
ElihuRozen
Offline

Senior Member

Massachusetts, USA
Posts: 515
Threads: 51
Joined: Apr 2006
#13
2022-01-27, 04:11 PM
Doing the testing, I wasn't rebooting the device, just restarting Kodi. After rebooting, everything works. I edit the files remotely from my laptop and would leave the device running so I could access it. Apparently, some of the remote configuration changes require rebooting to take effect.

The only changes I have made to your code were to uncomment the line to have knewc autostart and adding the two lines to get the Go button to do Ctrl-G. I asked if you could change the exit stuff, you explained why you won't and that makes sense. I don't plan to change it.
Tuners: SD HDHR Prime (HDHR3-CC). SD HDHR Connect Quatro Tuner (HDHR5-4US) - only QAM.  EXVIST H.265 Encoder - capturing cable box.
Client: Odroid-N2 running knewc on KODI - connected via MoCA.
EPG: SchedulesDirect
Provider: Verizon Fios
Server: Dell XPS 8700 with Windows 10
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,372
Threads: 963
Joined: May 2006
#14
2022-01-27, 04:25 PM
I was thinking about your change to Ctrl-G and how to allow user supplied keystrokes without having to edit python files. Sub now how has an API that I use in uidroid to map most unknown keys. This is mainly for those Android remotes with random unknown keys but I see a use case here.

The way this will work is you will edit a file on the server that is client based and you tell it what NextPVR key to use for certain. I will make all those Hauppauge keys configurable but they will default to how they are now.

It shouldn't take too long to add this.

Martin
ElihuRozen
Offline

Senior Member

Massachusetts, USA
Posts: 515
Threads: 51
Joined: Apr 2006
#15
2022-01-27, 05:13 PM
(2022-01-27, 04:25 PM)mvallevand Wrote: I was thinking about your change to Ctrl-G and how to allow user supplied keystrokes without having to edit python files.  Sub now how has an API that I use in uidroid to map most unknown keys.  This is mainly for those Android remotes with random unknown keys  but I see a use case here.

The way this will work is you will edit a file on the server that is client based and you tell it what NextPVR key to use for certain.  I will make all those Hauppauge keys configurable but they will default to how they are now.

It shouldn't take too long to add this.

Martin

That would be great.  Let me know what I can do to help.  In my experience, the less "personalization" I have to do when installing a new version, the better.
Tuners: SD HDHR Prime (HDHR3-CC). SD HDHR Connect Quatro Tuner (HDHR5-4US) - only QAM.  EXVIST H.265 Encoder - capturing cable box.
Client: Odroid-N2 running knewc on KODI - connected via MoCA.
EPG: SchedulesDirect
Provider: Verizon Fios
Server: Dell XPS 8700 with Windows 10
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,372
Threads: 963
Joined: May 2006
#16
2022-01-27, 05:56 PM
Basically it is straight forward on 5.2.4+ The file will look like this so Fn and those keys are mapped. In this example I mapped F11 to Ctrl-G The default value for Go KEY_SELECT is not good though for mapping. Maybe see if you can map it to a function key like KEY_FN_F10 and that takes you to the what's new.

Code:
<Values>
  <KeyCode-guide>F1</KeyCode-guide>
  <KeyCode-tv>F8</KeyCode-tv>
  <KeyCode-F1>F1</KeyCode-F1>
  <KeyCode-F12>F12</KeyCode-F12>
  <KeyCode-F11>{Ctrl}G</KeyCode-F11>
  <LastChannel>4.1</LastChannel>
</Values>

Martin
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,372
Threads: 963
Joined: May 2006
#17
2022-01-27, 09:41 PM
Ok rc3 has been released. If you need help editing the file it is in the clientstore xml file in the user folder let me know.

Best bet is to hit the keys you want and the edit the file with the codes you like. Key names are documented here https://docs.microsoft.com/en-us/dotnet/...esktop-6.0

Martin
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,372
Threads: 963
Joined: May 2006
#18
2022-01-28, 07:49 PM
I tried to map it to a Fn key and that seems very difficult to work with. I will make it an easier key and upload another rc.

Martin
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,372
Threads: 963
Joined: May 2006
#19
2022-01-28, 08:30 PM
I have updated the first post to rc4. Previously mytv and recordedtv both mapped to the same key what was being mapped to recordings. I have now mapped recordedtv to Home to access the hidden menu. You need to add this to the noop keycodes

<recordedtv>noop</recordedtv>

So here is what the clientstore default keys look like.
Code:
<Values>
  <KeyCode-mytv>F8</KeyCode-mytv>
  <KeyCode-myvideos>F3</KeyCode-myvideos>
  <KeyCode-mymusic>F4</KeyCode-mymusic>
  <KeyCode-mypictures>F9</KeyCode-mypictures>
  <KeyCode-guide>F1</KeyCode-guide>
  <KeyCode-liveradio>F10</KeyCode-liveradio>
  <KeyCode-recordedtv>Home</KeyCode-recordedtv>
</Values>

To activate recordedtv from the Hauppauge remote you will need to edit the hauppauge.toml and change KEY_SELECT or whatever you have on the Go first line to

0x1e3b = "KEY_PVR"

Since you don't want the Go to actiate the hidden menu, edit Home in the clientstore to {Ctrl}G

Martin
ElihuRozen
Offline

Senior Member

Massachusetts, USA
Posts: 515
Threads: 51
Joined: Apr 2006
#20
2022-02-01, 02:10 PM
(2022-01-28, 08:30 PM)mvallevand Wrote: I have updated the first post to rc4.  Previously mytv and recordedtv both mapped to the same key what was being mapped to recordings.  I have now mapped recordedtv to Home to access the hidden menu.  You need to add this to the noop keycodes

<recordedtv>noop</recordedtv>

So here is what the clientstore default keys look like. 
Code:
<Values>
  <KeyCode-mytv>F8</KeyCode-mytv>
  <KeyCode-myvideos>F3</KeyCode-myvideos>
  <KeyCode-mymusic>F4</KeyCode-mymusic>
  <KeyCode-mypictures>F9</KeyCode-mypictures>
  <KeyCode-guide>F1</KeyCode-guide>
  <KeyCode-liveradio>F10</KeyCode-liveradio>
  <KeyCode-recordedtv>Home</KeyCode-recordedtv>
</Values>

To activate recordedtv from the Hauppauge remote you will need to edit the hauppauge.toml and change KEY_SELECT or whatever you have on the Go  first line to

0x1e3b = "KEY_PVR"

Since you don't want the Go to actiate the hidden menu, edit Home in the clientstore to {Ctrl}G

Martin

The Go button still isn't working for me.  The first time I pressed it, it went back to the NPVR main menu.  Subsequent presses seem to not do anything.  When I looked in the Kodi log, I saw the first KEY_PVR press had the function call with the hash set to recordedtv, but the others didn't.

What logs do you need?  I assume I should restart the service, reboot the device, press Guide, press Go, exit to Kodi, use the Kodi log viewer to upload the log, get the logs on the server & post those logs & the URL to the Kodi log here.  This is what my clientstore currently looks like:
Code:
<Values>
  <LastChannelGroup>Record</LastChannelGroup>
  <RecordingDefaultView>Pending</RecordingDefaultView>
  <SORT_PENDING_RECORDINGS>SORT_DATE</SORT_PENDING_RECORDINGS>
  <SORT_NEW_RECORDING>SORT_DATE_DESC</SORT_NEW_RECORDING>
  <SORT_READY_RECORDINGS>SORT_DATE_DESC</SORT_READY_RECORDINGS>
  <SORT_READY_RECORDINGS_GROUPS>SORT_DATE_DESC</SORT_READY_RECORDINGS_GROUPS>
  <LastChannel>665</LastChannel>
  <SORT_ALTERNATE_READY_RECORDINGS>SORT_DATE_DESC</SORT_ALTERNATE_READY_RECORDINGS>
  <UsingArtworkView>false</UsingArtworkView>
  <KeyCode-guide>F1</KeyCode-guide>
  <KeyCode-radio>F10</KeyCode-radio>
  <KeyCode-tv>F8</KeyCode-tv>
  <KeyCode-pictures>F9</KeyCode-pictures>
  <KeyCode-recordedtv>{Ctrl}G</KeyCode-recordedtv>
  <KeyCode-videos>F3</KeyCode-videos>
  <KeyCode-music>F4</KeyCode-music>
  <KeyCode-liveradio>F10</KeyCode-liveradio>
  <KeyCode-mypictures>F9</KeyCode-mypictures>
  <KeyCode-mymusic>F4</KeyCode-mymusic>
  <KeyCode-myvideos>F3</KeyCode-myvideos>
  <KeyCode-mytv>F8</KeyCode-mytv>
</Values>
I figure I can clean out the no longer used radio, tv, pictures, videos and music entries.
Tuners: SD HDHR Prime (HDHR3-CC). SD HDHR Connect Quatro Tuner (HDHR5-4US) - only QAM.  EXVIST H.265 Encoder - capturing cable box.
Client: Odroid-N2 running knewc on KODI - connected via MoCA.
EPG: SchedulesDirect
Provider: Verizon Fios
Server: Dell XPS 8700 with Windows 10
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): « Previous 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Unclear how to install knewc and use it in Kodi smbunn 2 1,679 2023-05-02, 01:12 PM
Last Post: mvallevand
  knewc 2.10.0 release mvallevand 0 1,576 2022-05-31, 08:30 PM
Last Post: mvallevand
  knewc Timeout Starting Recording Playback BrettB 1 1,895 2021-10-21, 03:02 PM
Last Post: mvallevand
  Kodi 19 Matrix - knewc is Uninstalled after Modification meccano 2 2,997 2021-04-12, 03:08 PM
Last Post: meccano
  knewc 2.9.3 Update mvallevand 0 1,993 2021-03-08, 04:53 PM
Last Post: mvallevand
  kodi/knewc crashing baj1 12 4,926 2021-01-23, 07:05 PM
Last Post: baj1
  knewc 2.9.1 Update mvallevand 22 8,813 2021-01-18, 06:22 AM
Last Post: baj1
  knewc problems with new server patch BrettB 7 4,183 2021-01-07, 02:45 PM
Last Post: BrettB
  NextPVR Timeout message in knewc baj1 3 2,518 2020-11-21, 07:11 PM
Last Post: mvallevand
  knewc 2.9.0 Release Dual Mode mvallevand 63 19,004 2020-10-14, 12:20 AM
Last Post: mvallevand

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

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

Linear Mode
Threaded Mode