New TAP to manage the PVR using HTML/CSS/JavaScript.

TAPs für die SRP- und CRP-Serie
Benutzeravatar
Sirius
Vollzeit-Guru
Vollzeit-Guru
Beiträge: 2427
Registriert: So 8. Apr 2007, 10:05

AW: New TAP to manage the PVR using HTML/CSS/JavaScript.

#61

Beitrag von Sirius »

TMA1 A-007 Thank you for the new version!

The 'Direct Mode' works fine in SmartEPG search text wiht ASCII code A(65) and a(97) :hello:
But not with extended characters like 131,132,133,142.

The 'INFO [long]' works like i,i (2x Info) - and 1x Info is not possible - is this correct?

In the 'Timers' list the 'Service' channel numbers are all '0'. (see picture)

This version works with all browsers I have including 'Channels' list with IE9. :up:
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.
Zuletzt geändert von Sirius am Sa 24. Aug 2013, 15:28, insgesamt 3-mal geändert.

SRP-2100(TMS) seit 12.12.2009 ... Firmware: 08.Apr.2014 (1.16.00) | WD20EURS | Harmony ONE
XStartTAP_TMS ==> TimerDiags | AcadeRC | TMSRemote | QuickPlay | FastSkip | TMSCommander | SmartEPG | SmartFiler | TMSDisplay | CallMonitor | RSSRP
DeltaMikeCharlie
WebController
WebController
Beiträge: 442
Registriert: Di 7. Mai 2013, 05:11

AW: New TAP to manage the PVR using HTML/CSS/JavaScript.

#62

Beitrag von DeltaMikeCharlie »

Thanks for the feedback Sirius.

[quote=""Sirius""]The 'Direct Mode' works fine in SmartEPG search text wiht ASCII code A(65) and a(97)
But not with extended characters like 131,132,133,142.[/quote]

It seems that I made a giant assumption regarding which characters EVT_TMSREMOTEASCII will support. Unfortunately, the range that I have in the documentation is 0x20 – 0x7f, 0xa0 – 0xff, this excludes the characters that I am trying to generate.

In SmartEPG, can you normally type these extended characters using TMSRemote in direct mode?
The 'INFO [long]' works like i,i (2x Info) - and 1x Info is not possible - is this correct?
These key presses work perfectly for me, so I suppose that there could be something specific to your PVR or the TAPs that you tested with. I think that I may have to include a parameter in TMA1 to determine how RCU keys are to be emulated.

On my PVR, each time the RCU key is pressed, there are 2 events, there is a "Press" and a "Release" event.

When I do a long press, I get Press-Hold-Hold-Hold-Press-Release. Something about this sequence is confusing the PVR/TAP.

For the "Menu" key: press = 0x0001001c, hold = 0x0101001c and release = 0x0201001c.

I found that if I don't use the "press and release" method, a TAP that accepts combinations of press and long-press for different functions does not recognise the "press" event.

More thought required here.
In the 'Timers' list the 'Service' channel numbers are all '0'. (see picture)
I have seen the "0" service number issue before, I just assumed that it was normal for satellite/cable users with hundreds of channels.

This field originates from the logicalChNum in the TYPE_TapChInfo struct. This is fetched using the ServiceType and ServiceIndex fields from the tFlashTimer struct. Naturally, it works fine for me.

If you are willing to experiment, you can type in the timers and channels commands manually and inspect the output.

http://<PVR IP>:8000/api?function=channels&action=get!
http://<PVR IP>:8000/api?function=timers&action=get!


In the data returned by the channels, is the "lcn" field present with the correct values? Then, do the same for the timers, if the error is with the data returned by TMA1, then all of the "lcn" fields should be "0".

If you are willing, could you use wget to obtain this data and then send me the data via e-mail?
Benutzeravatar
FireBird
Suspekter verdächtiger Zauberküchenchef, TAP & Firmware-Guru
Suspekter verdächtiger Zauberküchenchef, TAP & Firmware-Guru
Beiträge: 25358
Registriert: Fr 9. Dez 2005, 09:59

AW: New TAP to manage the PVR using HTML/CSS/JavaScript.

#63

Beitrag von FireBird »

LCNs may be used by cable providers but they are not used by sat providers.
DeltaMikeCharlie
WebController
WebController
Beiträge: 442
Registriert: Di 7. Mai 2013, 05:11

AW: New TAP to manage the PVR using HTML/CSS/JavaScript.

#64

Beitrag von DeltaMikeCharlie »

[quote=""FireBird""]LCNs may be used by cable providers but they are not used by sat providers.[/quote]

How do you identify satellite services? By name only?
Benutzeravatar
FireBird
Suspekter verdächtiger Zauberküchenchef, TAP & Firmware-Guru
Suspekter verdächtiger Zauberküchenchef, TAP & Firmware-Guru
Beiträge: 25358
Registriert: Fr 9. Dez 2005, 09:59

AW: New TAP to manage the PVR using HTML/CSS/JavaScript.

#65

Beitrag von FireBird »

Yes..
Benutzeravatar
Isarwolf
Vielantworter
Vielantworter
Beiträge: 824
Registriert: Fr 8. Dez 2006, 17:19

AW: New TAP to manage the PVR using HTML/CSS/JavaScript.

#66

Beitrag von Isarwolf »

CRP 2401

Channel List OK
Timer List does not show. I have tested this with different browsers.

Controls seems OK. Info (Long) gives two times Info
CRP-2401CI+: Autostart: 'TimerDiags V3.4g' 'AutoExtender' 'SmartEPG_TMS V7.0e' 'Automove V2.1 Beta 3' 'BetterVideoText V0.33' 'FastSkip TMS 3.7' 'INFplus 1.2 Beta 3' 'Liza V1.6' 'QStart 1.2' 'RebuildNAV/RecCopy V5.3' 'SmartFiler_TMS 3.0' 'TMSDisplay V2.3a' 'TMSRemote V4.1' 'Webcontrol 2.0' 'lost+found V2.0'
TF5200: | iTina 1.04 L3 | Improbox t3 a.5 | Filer 2.30 |
DeltaMikeCharlie
WebController
WebController
Beiträge: 442
Registriert: Di 7. Mai 2013, 05:11

AW: New TAP to manage the PVR using HTML/CSS/JavaScript.

#67

Beitrag von DeltaMikeCharlie »

New features today:
  • List recorded programmes.
  • Commence playback of recorded programme.
In Australia, our recordings end in ".mpg", I have used FirmwareTMS.dat to determine the extension of the recording files and I hope that I got the ".rec" in Europe right. Please test.

The recorded programmes list is a little bit primitive at the moment and it mixes recordings and directories. It will let you try and "play" a directory, so please don't.

There is a new feature that I added and removed from the HTML file that will show the channel logos on the channels list. I removed it because it caused the TAP to stop responding.

It is a bit laborious at the moment, but if you create "public_html/logos" and place 60x38px jpgs with the channel logos they should display. Use the name format "t-nnnnn.jpg" where "t" is the type (0=TV, 1=Radio) and "nnnnn" is the service number, for example, the first TV logo is "0-00000.jpg". You will also need to locate showChannels() in the HTML file and uncomment the logo loading code.
DeltaMikeCharlie
WebController
WebController
Beiträge: 442
Registriert: Di 7. Mai 2013, 05:11

AW: New TAP to manage the PVR using HTML/CSS/JavaScript.

#68

Beitrag von DeltaMikeCharlie »

Thanks for the feedback Isarwolf.

[quote=""Isarwolf""]
Timer List does not show. I have tested this with different browsers.[/quote]

That is odd that timers don't list at all. If you type http://<PVR IP>:8000/api?function=timers&action=get! into your browser address field, do you get a load of text describing the timer data?

[quote=""Isarwolf""]Controls seems OK. Info (Long) gives two times Info[/quote]
This is a known issue.
Benutzeravatar
Isarwolf
Vielantworter
Vielantworter
Beiträge: 824
Registriert: Fr 8. Dez 2006, 17:19

AW: New TAP to manage the PVR using HTML/CSS/JavaScript.

#69

Beitrag von Isarwolf »

[quote=""DeltaMikeCharlie""]

If you type http://<PVR IP>:8000/api?function=timers&action=get! into your browser address field, do you get a load of text describing the timer data?
[/quote]

Yes I get the timer information.

In the meantime I installed the new version and the "Recorded Programs" will be shown.
The programs can be started , paused and stopped.
Zuletzt geändert von Isarwolf am So 25. Aug 2013, 10:20, insgesamt 1-mal geändert.
Grund: Korr.
CRP-2401CI+: Autostart: 'TimerDiags V3.4g' 'AutoExtender' 'SmartEPG_TMS V7.0e' 'Automove V2.1 Beta 3' 'BetterVideoText V0.33' 'FastSkip TMS 3.7' 'INFplus 1.2 Beta 3' 'Liza V1.6' 'QStart 1.2' 'RebuildNAV/RecCopy V5.3' 'SmartFiler_TMS 3.0' 'TMSDisplay V2.3a' 'TMSRemote V4.1' 'Webcontrol 2.0' 'lost+found V2.0'
TF5200: | iTina 1.04 L3 | Improbox t3 a.5 | Filer 2.30 |
Benutzeravatar
Sirius
Vollzeit-Guru
Vollzeit-Guru
Beiträge: 2427
Registriert: So 8. Apr 2007, 10:05

AW: New TAP to manage the PVR using HTML/CSS/JavaScript.

#70

Beitrag von Sirius »

TMA1 A-008

I get no list by 'Recorded Programmes'. (2 TB HDD is nearly full) :confused:

I converted three test logos to format 60x38 and saved to 0-00000.jpg, (...001.jpg, ...012.jpg) in ProgramFiles/Settings/TMA1/public_html/logos/

But I see no logos.

I have tried to edit the index.html (unmarked three lines). Or should be more lines unmarked ?
Maybe you can upload a second index.html with activated logo-loading.
.

Code: Alles auswählen

		//Load the channel logos here!!!
		//Uncomment the lines below to experiment with logos in the channels table
		cell.style.backgroundImage="url('" + "/logos/" + cell.chtype.toString() + "-" + ("00000" + cell.chnum).slice(-5) + ".jpg')";
		cell.style.backgroundRepeat:no-repeat;
		cell.style.backgroundPosition:center; 
		
		if(chObject.current_chtype == chObject.channels[i].chtype && chObject.current_chnum == chObject.channels[i].chnum)
		{
			//cell.style.color="red";  //Identify the current channel
			cell.style.background="red";  //Identify the current channel
			//cell.style.border-top="2px solid #ff0000";  //Identify the current channel
		}
		
		//TODO - Put in a mouseOver event.
Zuletzt geändert von Sirius am So 25. Aug 2013, 15:45, insgesamt 2-mal geändert.

SRP-2100(TMS) seit 12.12.2009 ... Firmware: 08.Apr.2014 (1.16.00) | WD20EURS | Harmony ONE
XStartTAP_TMS ==> TimerDiags | AcadeRC | TMSRemote | QuickPlay | FastSkip | TMSCommander | SmartEPG | SmartFiler | TMSDisplay | CallMonitor | RSSRP
DeltaMikeCharlie
WebController
WebController
Beiträge: 442
Registriert: Di 7. Mai 2013, 05:11

AW: New TAP to manage the PVR using HTML/CSS/JavaScript.

#71

Beitrag von DeltaMikeCharlie »

Hi Sirius,

At first glance, everything looks OK.

Have you reviewed the log to see if any error messages are present?
Have you tried to load just the logo file into your browser?

http://<PVR IP>:8000/logos/0-00000.jpg

I tried to recreate the issue here and TMA1 stopped responding. I will investigate further and post a second index.html when I work it out.
DeltaMikeCharlie
WebController
WebController
Beiträge: 442
Registriert: Di 7. Mai 2013, 05:11

AW: New TAP to manage the PVR using HTML/CSS/JavaScript.

#72

Beitrag von DeltaMikeCharlie »

[quote=""Sirius""]TMA1 A-008
I get no list by 'Recorded Programmes'. (2 TB HDD is nearly full) :confused:
[/quote]

I'm sorry I overlooked the first half of your feedback.

Do you have any files in /DataFiles or are they all in subdirectories?
Does you PVR record to .mpg or .rec?
Is your FirmwareTMS.dat up to date?

I assume that the PVR uses .mpg unless FirmwareTMS.dat tells me it's a .rec. If your machine is not in FirmwareTMS.dat then this may be a reason.

When you try to list the recordings, are there any messages in the log regarding the number of entries found?

Can you try: http://<PVR IP>:8000/api?function=files&action=get! and see if you get file data presented in your browser window.

If you are using IE, have you tried FireFox or deleted the "Temporary Internet Files" from IE's cache?
Benutzeravatar
macfan
Ex-iTiNa-Promoter
Ex-iTiNa-Promoter
Beiträge: 24186
Registriert: Fr 9. Dez 2005, 10:16

AW: New TAP to manage the PVR using HTML/CSS/JavaScript.

#73

Beitrag von macfan »

The list of recorded programmes works with MacOS and Safari.

Gruß, Horst
TAP-Autostart SRP 2100: Automove - BackupSettings - dbFit - FastSkip - MediaAspect - Nice Display - PowerRestore - QuickPlay - ResetCAM - SmartEPG TMS - SmartFiler - StPBTools - TMSRemote - TimerDiags - TMA1 - V!deotext
TAP-Autostart 5k: TF5000 Display 1.53 - BootMenu 0.32
Davon gestartet: iTiNa 1.05 - ImproBox 2.5 - Stirf 1.3 BetaD (asrael) - Filer 2.30
Benutzeravatar
Sirius
Vollzeit-Guru
Vollzeit-Guru
Beiträge: 2427
Registriert: So 8. Apr 2007, 10:05

AW: New TAP to manage the PVR using HTML/CSS/JavaScript.

#74

Beitrag von Sirius »

Do you have any files in /DataFiles or are they all in subdirectories?
Yes I have many files in /DataFiles, maybe too much.(?)
And I know I have some corrupt files in /DataFiles/TEST/DataFiles.
No one else had a problem with 'Recorded Programmes', it works by Isarwolf and macfan.
I will made a new test on weekend with my old 500GB hdd.
Have you reviewed the log to see if any error messages are present?
I am not at home today (and the next days) and now I look from external on the toppy, but the log is only from today, the test from Sunday is missing in the log.
Log 26.08.2013 hat geschrieben:TMA1 A-008 Started: 19:53:54.

Remote type is 1 for sysID 22010.
Initialising listening socket.
Setting listening socket 74 to non-blocking mode.
About to 'bind' listening socket 74.
About to 'listen' listening socket 74.
Listening socket 74 initialisation complete.
Today I tried a test from external with http://MyName.dyndns.org:8000 (TMA1 was started via TMSRemote and TFIR) but I get no response.
So I have to wait until Saturday for a new test at home. ;)
Zuletzt geändert von Sirius am Mo 26. Aug 2013, 21:11, insgesamt 3-mal geändert.

SRP-2100(TMS) seit 12.12.2009 ... Firmware: 08.Apr.2014 (1.16.00) | WD20EURS | Harmony ONE
XStartTAP_TMS ==> TimerDiags | AcadeRC | TMSRemote | QuickPlay | FastSkip | TMSCommander | SmartEPG | SmartFiler | TMSDisplay | CallMonitor | RSSRP
Benutzeravatar
Isarwolf
Vielantworter
Vielantworter
Beiträge: 824
Registriert: Fr 8. Dez 2006, 17:19

AW: New TAP to manage the PVR using HTML/CSS/JavaScript.

#75

Beitrag von Isarwolf »

Very strange.
Now I can see Timers but not Recorded Programs.

Best regards.
CRP-2401CI+: Autostart: 'TimerDiags V3.4g' 'AutoExtender' 'SmartEPG_TMS V7.0e' 'Automove V2.1 Beta 3' 'BetterVideoText V0.33' 'FastSkip TMS 3.7' 'INFplus 1.2 Beta 3' 'Liza V1.6' 'QStart 1.2' 'RebuildNAV/RecCopy V5.3' 'SmartFiler_TMS 3.0' 'TMSDisplay V2.3a' 'TMSRemote V4.1' 'Webcontrol 2.0' 'lost+found V2.0'
TF5200: | iTina 1.04 L3 | Improbox t3 a.5 | Filer 2.30 |
DeltaMikeCharlie
WebController
WebController
Beiträge: 442
Registriert: Di 7. Mai 2013, 05:11

AW: New TAP to manage the PVR using HTML/CSS/JavaScript.

#76

Beitrag von DeltaMikeCharlie »

[quote=""Sirius""]the test from Sunday is missing in the log.[/quote]

The log file is erased each time TMA1 starts. This is because when I started the project, the log file contained ALL of the data sent and received and it got big fast, so I removed the data and just left the messages.
DeltaMikeCharlie
WebController
WebController
Beiträge: 442
Registriert: Di 7. Mai 2013, 05:11

AW: New TAP to manage the PVR using HTML/CSS/JavaScript.

#77

Beitrag von DeltaMikeCharlie »

[quote=""Isarwolf""]Very strange.
Now I can see Timers but not Recorded Programs.[/quote]

Very strange indeed. I have not had this problem with I test with FireFox. What browser do you use?

If you manually type in http://<PVR IP>:8000/api?function=files&action=get!, do you see the recording data? If you watch the telnet console, do you see TMA1 receive the command and respond?

If you don't see TMA receive the command and respond, it is probable that the browser has cached the previous result or something has hung.
Benutzeravatar
Sirius
Vollzeit-Guru
Vollzeit-Guru
Beiträge: 2427
Registriert: So 8. Apr 2007, 10:05

AW: New TAP to manage the PVR using HTML/CSS/JavaScript.

#78

Beitrag von Sirius »

The log file is erased each time TMA1 starts. This is because when I started the project, the log file contained ALL of the data sent and received and it got big fast, so I removed the data and just left the messages.
Ah ok, that makes sense.
Next time I look immediately in the log.
Zuletzt geändert von Sirius am Mo 26. Aug 2013, 22:21, insgesamt 2-mal geändert.

SRP-2100(TMS) seit 12.12.2009 ... Firmware: 08.Apr.2014 (1.16.00) | WD20EURS | Harmony ONE
XStartTAP_TMS ==> TimerDiags | AcadeRC | TMSRemote | QuickPlay | FastSkip | TMSCommander | SmartEPG | SmartFiler | TMSDisplay | CallMonitor | RSSRP
Benutzeravatar
Isarwolf
Vielantworter
Vielantworter
Beiträge: 824
Registriert: Fr 8. Dez 2006, 17:19

AW: New TAP to manage the PVR using HTML/CSS/JavaScript.

#79

Beitrag von Isarwolf »

[quote=""Isarwolf""]Yes I get the timer information.

In the meantime I installed the new version and the "Recorded Programs" will be shown.
The programs can be started , paused and stopped.[/quote]

[quote=""Isarwolf""]Very strange.
Now I can see Timers but not Recorded Programs.

Best regards.[/quote]

I have emptied the cache no changes.
I use Opera but I have also tested Firefox. I use also a Samsung Tablet there is the same.

I get the data if I use "api?function=files&action=get!"

best regards
CRP-2401CI+: Autostart: 'TimerDiags V3.4g' 'AutoExtender' 'SmartEPG_TMS V7.0e' 'Automove V2.1 Beta 3' 'BetterVideoText V0.33' 'FastSkip TMS 3.7' 'INFplus 1.2 Beta 3' 'Liza V1.6' 'QStart 1.2' 'RebuildNAV/RecCopy V5.3' 'SmartFiler_TMS 3.0' 'TMSDisplay V2.3a' 'TMSRemote V4.1' 'Webcontrol 2.0' 'lost+found V2.0'
TF5200: | iTina 1.04 L3 | Improbox t3 a.5 | Filer 2.30 |
DeltaMikeCharlie
WebController
WebController
Beiträge: 442
Registriert: Di 7. Mai 2013, 05:11

AW: New TAP to manage the PVR using HTML/CSS/JavaScript.

#80

Beitrag von DeltaMikeCharlie »

Is it possible that you could have an old copy of index.html in public_html on the PVR?
Gesperrt

Zurück zu „SRP/CRP TAP-Bereich“