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

TAPs für die SRP- und CRP-Serie
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.

#141

Beitrag von DeltaMikeCharlie » Sa 7. Sep 2013, 12:27

[quote="FireBird"]I'm sorry but I didn't invent all the different tables.[/quote]
Sorry FireBird. I did not mean to "shoot the messenger". I have just found your StrToUTF8() function. I think that this may be useful.

Benutzeravatar
jkIT
TFtool-Guru
TFtool-Guru
Beiträge: 3194
Registriert: Sa 10. Dez 2005, 18:26
Receivertyp: TF4000 & TF5000MP & SRP-2410

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

#142

Beitrag von jkIT » Sa 7. Sep 2013, 12:50

DeltaMikeCharlie hat geschrieben:I have uploaded A-013 with what I hope is the final fix for the trailing comma problem. It is very untested, so I have also included a copy of A-012 as a fallback just in case.

I replaced all "eval" by JSON.parse in apitest.html. No error messages. :up:
Gruß jkIT

CRP-2401; SRP-2410 (aD); TF5000MP (aD); TF4000PVR (aD); TFtool, aTMSremote (Autor)

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.

#143

Beitrag von DeltaMikeCharlie » Sa 7. Sep 2013, 22:45

A question about favourites.

I'm currently working on providing favourites groups data via TMA1.

In my household, we have 1 favourites group with all of the channels that we watch in it. Luckily, we only have 30 services, of which, 17 are in the "Favourites" group.

I plan to modify the channels API so that it can optionally only return the channels in a specified favourites group, in the order that they appear within that group.

Would it be handy for satellite/cable users with hundreds of channels to be able to request multiple favourites groups and have the channels returned in 1) the order of the groups listed and then 2) the order that the services appear within the group?

Perhaps the groups could also be colour-coded or form a new row or be listed in tabs or something.

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.

#144

Beitrag von DeltaMikeCharlie » So 8. Sep 2013, 08:55

Today's update: A-014.
  • The biggest change today is the new favourites listing. This is only demonstrated in apitest.html at the moment.
  • Apitest has been changed to use JSON.parse rather than eval for all data. Index.html is still unchanged.
  • The configuration page has been updated to accept 2-10 channels across.
  • I have made an internal change so that the code that produces the channels JSON output can be used by other functions, like the favourites. This should have no visible impact.
  • I have added the TMA1 version to the config output. This too is only visible from apitest.html.

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.

#145

Beitrag von DeltaMikeCharlie » So 8. Sep 2013, 09:02

macfan hat geschrieben:One little change in "config.html", and now I have the view I wanted to have. :up:

That is good to hear. This is exactly what I was hoping that this project would encourage. If you don't like something, it is relatively simple to change things yourself because a lot of the work is done by the HTML/CSS/JavaScript and that is all plain-text and interpreted (not compiled!).

Also, there is another not-so-clean way to change that: You could have manually edited TMA1-Client.ini on the PVR with the value that you wanted!

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.

#146

Beitrag von Isarwolf » So 8. Sep 2013, 10:59

On my tablet I have today the first time breaks in the start time. On laptop is all OK.

best regards
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.
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.

#147

Beitrag von DeltaMikeCharlie » So 8. Sep 2013, 11:17

Isarwolf,

I think that this is function of how your browser renders the HTML table. I'm guessing that if you were to reduce the width of the laptop browser, you may see something similar.

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.

#148

Beitrag von Isarwolf » So 8. Sep 2013, 11:26

[quote="DeltaMikeCharlie"]Isarwolf,

I think that this is function of how your browser renders the HTML table. I'm guessing that if you were to reduce the width of the laptop browser, you may see something similar.[/quote]


Correct, I can reproduce this on the laptop.
The question is now, why this happens only on Monday? The number of characters is always equal
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.

#149

Beitrag von DeltaMikeCharlie » So 8. Sep 2013, 11:37

[quote="Isarwolf"]The question is now, why this happens only on Monday?[/quote]

This depends on the font that your browser uses. It is not the number of characters, but the total width of the characters that matters. The width of most characters is proportional. For example, the character "W" is wider that the character "i". On Monday, you just got lucky.

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.

#150

Beitrag von Isarwolf » So 8. Sep 2013, 15:26

[quote="DeltaMikeCharlie"]If you don't like something, it is relatively simple to change things yourself.[/quote]
This lead me to change the background color.
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.

#151

Beitrag von DeltaMikeCharlie » Fr 13. Sep 2013, 12:04

Here is version A-16 to play with.
  • I have added the ability to return the contents of a favourites list via JSON.
  • There is a new function to return all of the client settings in one JSON block instead of having to request one setting at a time.
  • The files listing has been updated with some of the information from the INF file. This is still a work in progress and not yet complete, but you can see the channel and duration on the list. Depending upon the number of recordings you have, the files list may take several seconds to load. If this turns out to be a massive problem, I will look at fetching the file names and then the INF data separately, but for the moment it seems OK for me.
  • There are a few more parameters in the config listing.
  • Forum user jkIT has done some nice work giving the front end a facelift. It is in early development (like the whole system at the moment) and it only works for recording files, however, I like the colours and the way that columns can be sorted as well as the breadcrumbs across the top. The percent of disc used/free is also very nice. To access this demo, go to http://<PVR IP>:8000/demo/demo.html. Feedback is welcome.
I have done a little more research into character sets, etc, but I have not yet finalised a solution within the TAP. I already have a function that will "escape" special characters as it copies data to the output buffer. I want to look at enhancing this function so that it is capable of translating characters as it copies them to keep TMA1 as fast as possible.

Also, I posted a question about how people use Favourites, especially cable and satellite users. I'd like some feedback on that or any other ways that these users may organise their channels. For my 30 channels, I'm going to use a single favourites list, but this may not be suitable for others.

Have fun, be careful and reboot after use.
Zuletzt geändert von DeltaMikeCharlie am Fr 13. Sep 2013, 13:24, insgesamt 1-mal geändert.
Grund: tftool -> jkIT

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.

#152

Beitrag von FireBird » Fr 13. Sep 2013, 12:55

The only favourite feedback that I can give is that I don't use the favourite lists.

Benutzeravatar
Twilight
Zauberküchencheflehrling mit extra Butter
Zauberküchencheflehrling mit extra Butter
Beiträge: 64876
Registriert: Fr 9. Dez 2005, 09:17
Receivertyp: 1 x SRP 2100(TMS) TFIR und .1 x SRP 2410 M
Wohnort: Wien Umgebung

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

#153

Beitrag von Twilight » Fr 13. Sep 2013, 13:07

And the User "tftool" is normaly called jkit :u:

Twilight

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.

#154

Beitrag von DeltaMikeCharlie » Fr 13. Sep 2013, 14:04

[quote="FireBird"]The only favourite feedback that I can give is that I don't use the favourite lists.[/quote]

How do you find the channels that you like to watch? Have you sorted your services table, or do you just search until you find one?

Benutzeravatar
Wolfman
Ewige Jungfrau, Schachtelsatzkönigin und missverstandener Aushilfsexbajuware
<span title=Stets unschuldige(r) Anheizergeselle(in)>Ewige Jungfrau, Schachtelsatzkönigin und missverstandener Aushilfsexbajuware</span>
Beiträge: 17376
Registriert: Sa 7. Okt 2006, 04:05
Receivertyp: SRP2410M, SRP 2410,Reserve 2410 M SE,Halde TMS,TF5500,TF6000
Receiverfirmware: s. Sig
Wohnort: Ba-Wü (OAK)

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

#155

Beitrag von Wolfman » Fr 13. Sep 2013, 14:21

I think that at least every user of an EPG TAP like SmartEPG or iTiNa has (or should have ;) ) a well sorted channel list :D
SRP 2410M FW 10.01.2013 FastSkip, SmartEPG, RebuildNav, ND_TMS, Timerdiags, SmartFiler_TMS, lost+found, SmartDecrypter, TMSRemote
TMS , 2410 M SE stille Reserve
SRP 2410 FW 02/13 FastSkip, SmartEPG, RebuildNav, ND_TMS, Timerdiags, dbFit, SmartFiler_TMS
Der Fehler sitzt zwar meist vor dem Bildschirm, aber
Bitte nicht alles, was ich verzapfe tierisch ernst nehmen :o

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.

#156

Beitrag von FireBird » Fr 13. Sep 2013, 14:33

[quote="DeltaMikeCharlie"]How do you find the channels that you like to watch? Have you sorted your services table, or do you just search until you find one?[/quote]
My channel list consists of two blocks: the first approx. 40 entries contain the mostly used channels in nearly alphabetical order (some local channels are at the very beginning), and the remaining channels are building a second alphabetically sorted block and are only used to cross check if other users complain about strange behaviour of a TAP or similar.
Zuletzt geändert von FireBird am Fr 13. Sep 2013, 14:35, insgesamt 1-mal geändert.

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.

#157

Beitrag von Isarwolf » Fr 13. Sep 2013, 15:25

[quote="FireBird"]The only favorite feedback that I can give is that I don't use the favorite lists.[/quote]

I agree with FireBird. I allso use no favorites. I have sorted my channellist with SmartEPG

It should perhaps help to establish a public-opinion poll, how many people use favorites.

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 |

Online
Benutzeravatar
Mucki
Quelle des Wissens
Quelle des Wissens
Beiträge: 1348
Registriert: Mo 12. Dez 2005, 19:14
Receivertyp: SRP2100, PVR5000, Vu+ Ultimo4K mit DVB-S2 + DVB-T2
Receiverfirmware: Die Aktuelle
Wohnort: Grafschaft

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

#158

Beitrag von Mucki » Fr 13. Sep 2013, 19:21

The new Version makes a Reboot by selecting the Records. :thinker:
Gruß Mucki :)

Taps: SE, TMSArchiv, V!deotext, Callmonitor, lost+found, TMSRemote, TimeShiftSaver, NiceDisplay, FastSkip, TMSCommander, Backupsettings, FreeSatEit_TMS, TMSMount, Inf+, TMA1

Neu Ultimo4K mit SmartEPGVu+, Autotimer, AutomaticBackup, EMC, Camofs, CoolTV, AdvancedLibrary, VWeather3.
Skin: IFlatHD mit Eisman Pro Features

Benutzeravatar
Sirius
Vollzeit-Guru
Vollzeit-Guru
Beiträge: 2429
Registriert: So 8. Apr 2007, 10:05
Receivertyp: SRP-2100(TMS) / TF5500
Receiverfirmware: 08.Apr.2014 / 22.Dez.2011 PHUD
Wohnort: Hessen

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

#159

Beitrag von Sirius » Fr 13. Sep 2013, 19:27

Mucki hat geschrieben:The new Version makes a Reboot by selecting the Records. :thinker:

Here also, I tried it two times and get two reboots.
Also with demo.html (one time testet).

At the moment I can't test anymore, new tests tomorrow...

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

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

#160

Beitrag von DeltaMikeCharlie » Fr 13. Sep 2013, 23:09

The new Version makes a Reboot by selecting the Records.
Thanks for testing. I'm sorry to hear about the reboots.

I had reboots during development with recordings that did not have an INF file for a while, but I managed to fix that. I have no reboots on my system any more.

I have uploaded a new version with more logging enabled. As each INF file is about to be opened, a log entry is made. Once your PVR reboots, do not reload TMA1, check /ProgramFiles/TMA1.log to see the last file processed. You can also watch this live on the telnet console.

Also maybe I do not allocate enough RAM to build the response. In the log file, look for "Reserving xxxx bytes for files response" and "files = (yyy)". What are these values set to?

You can also manually check different subdirectories by entering "http://<PVR IP>:8000/api?function=files&action=get!dir=/DataFiles/<Sub Directory>&". Using a variety of subdirectories may point towards one particular file or character contents, etc.

Gesperrt

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