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

TAPs für die SRP- und CRP-Serie
Benutzeravatar
Isarwolf
Vielantworter
Vielantworter
Beiträge: 825
Registriert: Fr 8. Dez 2006, 17:19
Receivertyp: TF5200PVRC 08.12.2006
CRP 2401 C+ 21.05.2011
CRP 2401 C+ 24.02.2017
Receiverfirmware: TF5200 01.12.2006
CRP 2401 C+ 42031_2012Sept14
Wohnort: KDG Oberbayern

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

#81

Beitrag von Isarwolf » Di 27. Aug 2013, 10:24

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


I have the last one with 725 lines.

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: 469
Registriert: Di 7. Mai 2013, 05:11
Wohnort: Australia

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

#82

Beitrag von DeltaMikeCharlie » Di 27. Aug 2013, 10:32

When you change to the recordings tab on the browser, do you see any activity on the PVR's telnet console? Is there anything written to the log file?

Benutzeravatar
Isarwolf
Vielantworter
Vielantworter
Beiträge: 825
Registriert: Fr 8. Dez 2006, 17:19
Receivertyp: TF5200PVRC 08.12.2006
CRP 2401 C+ 21.05.2011
CRP 2401 C+ 24.02.2017
Receiverfirmware: TF5200 01.12.2006
CRP 2401 C+ 42031_2012Sept14
Wohnort: KDG Oberbayern

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

#83

Beitrag von Isarwolf » Di 27. Aug 2013, 10:56

DeltaMikeCharlie hat geschrieben:When you change to the recordings tab on the browser, do you see any activity on the PVR's telnet console? Is there anything written to the log file?

This will be written to the log file if I change to recordings tab

Code: Alles auswählen

NetServerRead()
Got 422 bytes of data.
GET /api?function=files&action=get! HTTP/1.1
User-Agent: Opera/9.80 (X11; Linux i686) Presto/2.12.388 Version/12.16
Host: 192.168.178.33:8000
Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/webp, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1
Accept-Language: de-DE,de;q=0.9,en;q=0.8
Accept-Encoding: gzip, deflate
Referer: http://192.168.178.33:8000/
Connection: Keep-Alive


---------
NetReadCommand()
Method: 'GET'
Path: '/api?function=files&action=get!'
NetProcessCommand().
Processing Command '/api?function=files&action=get!' (31).
NetProcessAPI(): theCommand = [/api?function=files&action=get!]
Function = [files], Action = [get], Module = [default], Session = [].
Processing API-Files-Get request '/api?function=files&action=get!'.
Reserving 43008 bytes for files response.
files = (41)
NetHTTPRespond(): Content-type = 'text/html'.
NetHTTPRespond Sending header: 101.
NetHTTPRespond Sending payload: 5141.
Command completed in 3 ticks.
What is telnet console? (I am not a computer expert)
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: 469
Registriert: Di 7. Mai 2013, 05:11
Wohnort: Australia

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

#84

Beitrag von DeltaMikeCharlie » Di 27. Aug 2013, 11:25

Your version of Opera seems old, but you have also tested with FireFox and a Samsung tablet with the same error.

Sorry, but I can't think of anything at the moment except a bug in the index.html code.

FYI. The telnet console will let you see the log as it is created instead of copying it from the PVR. It can be dangerous if you do not know what you are doing so it is probably best if you use keep using the log file instead.

Benutzeravatar
Isarwolf
Vielantworter
Vielantworter
Beiträge: 825
Registriert: Fr 8. Dez 2006, 17:19
Receivertyp: TF5200PVRC 08.12.2006
CRP 2401 C+ 21.05.2011
CRP 2401 C+ 24.02.2017
Receiverfirmware: TF5200 01.12.2006
CRP 2401 C+ 42031_2012Sept14
Wohnort: KDG Oberbayern

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

#85

Beitrag von Isarwolf » Di 27. Aug 2013, 17:35

DeltaMikeCharlie hat geschrieben:Your version of Opera seems old.


I use the newest version of Opera

User-Agent: Opera/9.80 (X11; Linux i686) Presto/2.12.388 Version/12.16
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: 469
Registriert: Di 7. Mai 2013, 05:11
Wohnort: Australia

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

#86

Beitrag von DeltaMikeCharlie » Di 27. Aug 2013, 22:46

Isarwolf hat geschrieben:User-Agent: Opera/9.80 (X11; Linux i686) Presto/2.12.388 Version/12.16


Apologies, I misread "9.80" as the version number. My mistake.

This is very mysterious. I downloaded the latest Opera and tried it on my PC and TMA1 worked fine, in fact, it was very fast.

I was thinking that maybe your PVR has got some control characters (or something) in one of the file names and that is making the JavaScript in index.html misinterpret the data returned.

1) When you select the recordings tab, does the timestamp and status message at the bottom of the screen change?

2) When you change back to the channels or timers tab, do these tables present correctly or does the whole thing stop working once you have tried the recordings tab?

3) I would like to get a copy of your data if that is OK. If you are willing to send me your email address via a forum private message, I can send you a special debug version of tma1.tap that writes all of the data into the log file so that I can see what's going on with your data.

Benutzeravatar
Isarwolf
Vielantworter
Vielantworter
Beiträge: 825
Registriert: Fr 8. Dez 2006, 17:19
Receivertyp: TF5200PVRC 08.12.2006
CRP 2401 C+ 21.05.2011
CRP 2401 C+ 24.02.2017
Receiverfirmware: TF5200 01.12.2006
CRP 2401 C+ 42031_2012Sept14
Wohnort: KDG Oberbayern

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

#87

Beitrag von Isarwolf » Mi 28. Aug 2013, 09:50

I am speechless!

This morning I wanted to test TMA1 to answer your questions and what happened, timers and programs are shown correctly.

I have then stopped and started TMA1 all OK. The same after stopping and starting CRP.

I will reactivate two records, which I have deleted yesterday and look what happens.

I have done it and now the records will not be shown.

I will now test which record will make this trouble.
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 |

Benutzeravatar
Isarwolf
Vielantworter
Vielantworter
Beiträge: 825
Registriert: Fr 8. Dez 2006, 17:19
Receivertyp: TF5200PVRC 08.12.2006
CRP 2401 C+ 21.05.2011
CRP 2401 C+ 24.02.2017
Receiverfirmware: TF5200 01.12.2006
CRP 2401 C+ 42031_2012Sept14
Wohnort: KDG Oberbayern

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

#88

Beitrag von Isarwolf » Mi 28. Aug 2013, 10:55

I have found the record, which cause the trouble.
It is this one
"Go, Götz, Go!" - Alsmanns Radioshow - 2013-08-20-05

If I look with my Laptop to the PVR it is written in this way.
"Go, Götz, Go!" - Alsmanns Radioshow - 2013-08-26 20-05.rec

After a lot of test I found that it is not the "Umlaut" which cause the trouble, it seems that there is something else.
I programmed a timer with Umlaut Ö in the name and found also another record with Umlaut Ö no trouble.
We have to wait until next Saturday until a timer for "Go, Götz, Go!" - Alsmanns Radioshow will be programmed.

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 |

Benutzeravatar
FireBird
Suspekter verdächtiger Zauberküchenchef, TAP & Firmware-Guru
Suspekter verdächtiger Zauberküchenchef, TAP & Firmware-Guru
Beiträge: 28911
Registriert: Fr 9. Dez 2005, 09:59
Receivertyp: SRP-2401CI+ TFIR
vu+ Duo 4k
Wohnort: Wien

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

#89

Beitrag von FireBird » Mi 28. Aug 2013, 11:03

Isarwolf hat geschrieben:ö

This means that the Umlaut is UTF8 encoded.
I programmed a timer with Umlaut Ö in the name and found also another record with Umlaut Ö no trouble.
Do these have the same UTF8 encoded Umlaut?

DeltaMikeCharlie
WebController
WebController
Beiträge: 469
Registriert: Di 7. Mai 2013, 05:11
Wohnort: Australia

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

#90

Beitrag von DeltaMikeCharlie » Mi 28. Aug 2013, 11:22

In index.html, I have the statement <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">, because I don't know any better.

Could this be a contributing factor?

Benutzeravatar
FireBird
Suspekter verdächtiger Zauberküchenchef, TAP & Firmware-Guru
Suspekter verdächtiger Zauberküchenchef, TAP & Firmware-Guru
Beiträge: 28911
Registriert: Fr 9. Dez 2005, 09:59
Receivertyp: SRP-2401CI+ TFIR
vu+ Duo 4k
Wohnort: Wien

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

#91

Beitrag von FireBird » Mi 28. Aug 2013, 11:34

Would be worth trying "charset=UTF-8".

Benutzeravatar
Isarwolf
Vielantworter
Vielantworter
Beiträge: 825
Registriert: Fr 8. Dez 2006, 17:19
Receivertyp: TF5200PVRC 08.12.2006
CRP 2401 C+ 21.05.2011
CRP 2401 C+ 24.02.2017
Receiverfirmware: TF5200 01.12.2006
CRP 2401 C+ 42031_2012Sept14
Wohnort: KDG Oberbayern

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

#92

Beitrag von Isarwolf » Mi 28. Aug 2013, 11:40

@ Firebird
Yes they have. For example:
Die tödliche Maria -
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: 469
Registriert: Di 7. Mai 2013, 05:11
Wohnort: Australia

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

#93

Beitrag von DeltaMikeCharlie » Mi 28. Aug 2013, 11:52

I have done some research and I should probably put another field into my HTTP header response stating "charset=UTF-8" (in addition to index.html).

In addition to this, I should probably change the "Content-Type: text/html" to "Content-Type: application/json" for my data responses.

I'd love to know the exact cause so that I could replicate it on my PVR and then change one thing at a time until it works to the point where I can force the error at will to prove the cause and remedy.

Benutzeravatar
Isarwolf
Vielantworter
Vielantworter
Beiträge: 825
Registriert: Fr 8. Dez 2006, 17:19
Receivertyp: TF5200PVRC 08.12.2006
CRP 2401 C+ 21.05.2011
CRP 2401 C+ 24.02.2017
Receiverfirmware: TF5200 01.12.2006
CRP 2401 C+ 42031_2012Sept14
Wohnort: KDG Oberbayern

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

#94

Beitrag von Isarwolf » Mi 28. Aug 2013, 12:14

I have just recorded SOKO Köln - 2013-08-28 11-15.rec.
No problems.

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 |

Benutzeravatar
Isarwolf
Vielantworter
Vielantworter
Beiträge: 825
Registriert: Fr 8. Dez 2006, 17:19
Receivertyp: TF5200PVRC 08.12.2006
CRP 2401 C+ 21.05.2011
CRP 2401 C+ 24.02.2017
Receiverfirmware: TF5200 01.12.2006
CRP 2401 C+ 42031_2012Sept14
Wohnort: KDG Oberbayern

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

#95

Beitrag von Isarwolf » Mi 28. Aug 2013, 13:05

I have made another test and programmed a timer for "Go, Götz, Go!" - Alsmanns Radioshow - 2013-08-20-05.
And now the timers are not shown. If I blocke the timer then I can see the timers. There are also another timers with Ö without problems. There most be any other character, which cause the problem.
If anyone wants to test it the programme is on WDR4 on Monday at 20:05.

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: 469
Registriert: Di 7. Mai 2013, 05:11
Wohnort: Australia

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

#96

Beitrag von DeltaMikeCharlie » Mi 28. Aug 2013, 13:24

I would like to get a copy of your data so that I can investigate further. Can I send you a special debug version of TMA1 to write the data into the log file?

Alternately, FireBird, do you think that running FlashDecode would give me the data that I need from the timers?

Benutzeravatar
FireBird
Suspekter verdächtiger Zauberküchenchef, TAP & Firmware-Guru
Suspekter verdächtiger Zauberküchenchef, TAP & Firmware-Guru
Beiträge: 28911
Registriert: Fr 9. Dez 2005, 09:59
Receivertyp: SRP-2401CI+ TFIR
vu+ Duo 4k
Wohnort: Wien

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

#97

Beitrag von FireBird » Mi 28. Aug 2013, 13:31

FlashTimerGetInfo() should return the data without any modifications.

Benutzeravatar
Isarwolf
Vielantworter
Vielantworter
Beiträge: 825
Registriert: Fr 8. Dez 2006, 17:19
Receivertyp: TF5200PVRC 08.12.2006
CRP 2401 C+ 21.05.2011
CRP 2401 C+ 24.02.2017
Receiverfirmware: TF5200 01.12.2006
CRP 2401 C+ 42031_2012Sept14
Wohnort: KDG Oberbayern

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

#98

Beitrag von Isarwolf » Mi 28. Aug 2013, 14:22

DeltaMikeCharlie hat geschrieben:I would like to get a copy of your data so that I can investigate further. Can I send you a special debug version of TMA1 to write the data into the log file?

Alternately, FireBird, do you think that running FlashDecode would give me the data that I need from the timers?


I think I have found the reason:

"filename":""Go, Götz, Go!" - Alsmanns Radioshow - 2013-08-26 20-05.rec",


The two quotation marks :[ size=175]""[/size]Go, Götz, Go!" make the trouble. I have renamed another record - with a quotation mark in the beginning - and got the same trouble. :D :

If I should anyway use the debug version please ask again and then I will send you my EMail address
best regards
Zuletzt geändert von Isarwolf am Mi 28. Aug 2013, 14:25, insgesamt 1-mal geändert.
Grund: Zusatz
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
FireBird
Suspekter verdächtiger Zauberküchenchef, TAP & Firmware-Guru
Suspekter verdächtiger Zauberküchenchef, TAP & Firmware-Guru
Beiträge: 28911
Registriert: Fr 9. Dez 2005, 09:59
Receivertyp: SRP-2401CI+ TFIR
vu+ Duo 4k
Wohnort: Wien

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

#99

Beitrag von FireBird » Mi 28. Aug 2013, 15:17

Well done. :)

Benutzeravatar
Isarwolf
Vielantworter
Vielantworter
Beiträge: 825
Registriert: Fr 8. Dez 2006, 17:19
Receivertyp: TF5200PVRC 08.12.2006
CRP 2401 C+ 21.05.2011
CRP 2401 C+ 24.02.2017
Receiverfirmware: TF5200 01.12.2006
CRP 2401 C+ 42031_2012Sept14
Wohnort: KDG Oberbayern

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

#100

Beitrag von Isarwolf » Mi 28. Aug 2013, 15:18

I have found for me the solution.
I have changed in SmartEPG the name of the search. :)
In the timers and in the recordings should be no quotation mark in the beginning of the name.

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 |

Gesperrt

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