Meo Posted May 5, 2021 Share Posted May 5, 2021 (edited) Hallo zusammen! (Wie) Kann ich den DMS zwingen eine gerade mit Xepg EPG neu erzeugte C:\ProgramData\CMUV\DVBViewer\Config\epg.dat sofort einzulesen? Das macht er nämlich erst nach einiger (welcher?) Zeit oder wenn man ihn beendet und neu startet. Hintergrund ist, ich arbeite NUR mit der via Xepg/EPG-Buddy erzeugten EPG.DAT. Und schiebe per Batch nach ein cURL http://localhost:8089/tasks.html?task=AutoTimer"&"aktion=tasks hinterher. Was aber wirkungslos für neue EPG Einträge ist. Vielen Dank an Alle die Antworten. ?? Edited May 5, 2021 by Meo Ergänzung Quote Link to comment
Griga Posted May 5, 2021 Share Posted May 5, 2021 Das Laden der epg.dat ist im DMS nur beim Start vorgesehen, sonst nicht. Xepg ermöglicht jedoch den Import als XML zur Laufzeit über eine POST-Request an den Webserver. Quote Link to comment
Meo Posted May 5, 2021 Author Share Posted May 5, 2021 Also auf "normalen" Wege ist dies nicht möglich? Quote Link to comment
YARD2 Posted May 6, 2021 Share Posted May 6, 2021 Wenn du eine externe EPG XML angelegt hast, kannst du im xepg unter optionen für den DMS deine Daten einstellen. dann werden die EPG Daten per POST übertragen. Quote Link to comment
Meo Posted May 6, 2021 Author Share Posted May 6, 2021 (edited) Das das natürlich so eingestellt, dass Xepg das EPG Paket dem DMS "unterschiebt" Einstellung Das löst aber nicht das Problem das für neu erhaltene EPG Daten keine Timer erzeugt werden weil die EPG.DAT noch nicht auf Platte geschrieben/aktualisiert sind. Ich bemerke diesen Umstand dies weil die EPG.DAT sich nach dem Beenden des DMS ändert. (Größe) Vielleicht gibt es einen Parameter mit dem sich der Dienst des C:\Program Files (x86)\DVBViewer\DVBVservice.exe neustarten lässt. Edited May 6, 2021 by Meo Ergänzungen, Verbesserungen :-) Quote Link to comment
Delphi Posted May 6, 2021 Share Posted May 6, 2021 (edited) 13 hours ago, Meo said: Kann ich den DMS zwingen eine gerade mit Xepg EPG neu erzeugte C:\ProgramData\CMUV\DVBViewer\Config\epg.dat sofort einzulesen? Xepg does NOT read nor write the epg.dat! After the import the external epg from the xmltv file(s) are available and visible in DMS and DVBViewer. DMS creates the epg.dat (after som time). Since you use EPG-Buddy you set the time when the process happens in EPG-Buddy. Please read the help to EPG buddy. Also read Xepg -> Automate -> Help (How To) (latest version) Edited May 6, 2021 by Delphi Quote Link to comment
Delphi Posted May 6, 2021 Share Posted May 6, 2021 One more thing: Your password for DMS is empty. Will not work for import. Quote Link to comment
HaraldL Posted May 6, 2021 Share Posted May 6, 2021 vor 33 Minuten schrieb Meo: Das löst aber nicht das Problem das für neu erhaltene EPG Daten keine Timer erzeugt werden weil die EPG.DAT noch nicht auf Platte geschrieben/aktualisiert sind. Das hängt meines Wissens nicht damit zusammen ob die epg.dat auf die Platte gesichert wurde, es sollte reichen wenn der DMS die Daten erhalten hat. Anders als bei der regulären EPG-Suche nach der per Aufgabe neue Timer erstellt werden mußt du wohl nach dem Import die Aufgabe "Automatisch Timer erzeugen" selbst anstoßen, kannst du ja im Webinterface testen ob das neue Timer erzeugt ohne daß die epg.dat geschrieben wurde. Quote Link to comment
Meo Posted May 6, 2021 Author Share Posted May 6, 2021 vor 6 Minuten schrieb HaraldL: Das hängt meines Wissens nicht damit zusammen ob die epg.dat auf die Platte gesichert wurde, es sollte reichen wenn der DMS die Daten erhalten hat. Anders als bei der regulären EPG-Suche nach der per Aufgabe neue Timer erstellt werden mußt du wohl nach dem Import die Aufgabe "Automatisch Timer erzeugen" selbst anstoßen, kannst du ja im Webinterface testen ob das neue Timer erzeugt ohne daß die epg.dat geschrieben wurde. Die Funktion "Automatisch Timer erzeugen" wird bereits in meiner CMD nach dem erzeuge der EPG.DAT ausgeführt! Quote Link to comment
Delphi Posted May 6, 2021 Share Posted May 6, 2021 The EPG-Buddy uses its own way to communicate with Xepg and DMS. Reading the help files I suggested is a must. Quote Link to comment
Meo Posted May 6, 2021 Author Share Posted May 6, 2021 (edited) vor 8 Minuten schrieb Delphi: The EPG-Buddy uses its own way to communicate with Xepg and DMS. Reading the help files I suggested is a must. I use the EPG Buddy ONLY to read the EPG data. Otherwise he do nothing! It creates the XML file in the Xepg directory, which Xepg then reads and then passes to the DMS. Does the DMS have to have a password? Or is it enough if I set a character in the options of the Xepg? My test: - No password set in the DMS - One character written into the passoword field of the Xepg - Test: Xepg reports full access Edited May 6, 2021 by Meo Quote Link to comment
Delphi Posted May 6, 2021 Share Posted May 6, 2021 1 hour ago, Meo said: Does the DMS have to have a password? Or is it enough if I set a character in the options of the Xepg? It actually works with an empty password in both DMS and Xepg. I was wrong, sorry. 1 hour ago, Meo said: I use the EPG Buddy ONLY to read the EPG data. Otherwise he do nothing! It creates the XML file in the Xepg directory, which Xepg then reads and then passes to the DMS If you want to automate things using a batch file you should include a command line like: "C:\Program Files (x86)\Xepg\Xepg.exe" -xGrabThenImport Use Xepg -> Automate -> Command Line -> Copy (to get what it is in your own installation) Quote Link to comment
Meo Posted May 6, 2021 Author Share Posted May 6, 2021 (edited) vor 15 Minuten schrieb Delphi: If you want to automate things using a batch file you should include a command line like: "C:\Program Files (x86)\Xepg\Xepg.exe" -xGrabThenImport Use Xepg -> Automate -> Command Line -> Copy (to get what it is in your own installation) Yes, thats my way since 5 months: ******************** EPG.CMD ******************** @CmdFocus /min @echo off "C:\Program Files (x86)\Xepg\Xepg.exe" -xGrabThenImport setlocal enableDelayedExpansion set m=http://localhost:8089/tasks.html?task=AutoTimer^&aktion=tasks cURL !m! **************************************** The batch file is called in the task scheduling at 8 o'clock. Edited May 6, 2021 by Meo Quote Link to comment
Delphi Posted May 6, 2021 Share Posted May 6, 2021 19 minutes ago, Meo said: set m=http://localhost:8089/tasks.html?task=AutoTimer^&aktion=tasks cURL !m! You don't need that since you have "Call auto timers after import" checked in your Xepg settings. I still don't understand why you want the epg.dat to be updated. DMS maintains that. The data flow is xmltv file -> Xepg -> DMS memory. This is enough to see the imported epg in the web interface and DMS clients (including KODI). Quote Link to comment
Griga Posted May 6, 2021 Share Posted May 6, 2021 http://localhost:8089/api/getepgdat.html?v=265 can be used to fetch the current epg buffer content in binary format (epg.dat format) from the DMS. However, I don't understand why this should be necessary. Quote Link to comment
Meo Posted May 6, 2021 Author Share Posted May 6, 2021 vor 6 Stunden schrieb Delphi: You don't need that since you have "Call auto timers after import" checked in your Xepg settings. I still don't understand why you want the epg.dat to be updated. DMS maintains that. The data flow is xmltv file -> Xepg -> DMS memory. This is enough to see the imported epg in the web interface and DMS clients (including KODI). As far as I can remember, the DMS does not run the AutoTimer by itself. Therefore I have added the AutoTimer command to my batch. But this does not work for new added entries. Soweit ich mich erinnern kann, führt der DMS die AutoTimer nicht von selber aus. Deswegen habe ich das AutoTimer Kommando in meiner Batch nachgeschoben. Dieser funktioniert aber nicht für neue hinzugekommene Einträge. Quote Link to comment
Griga Posted May 6, 2021 Share Posted May 6, 2021 vor 1 Stunde schrieb Meo: As far as I can remember, the DMS does not run the AutoTimer by itself. You mean automatic timer creation? On which occasion? After an EPG import? https://www.dvbviewer.tv/forum/topic/65087-timer-rules-and-timers/?do=findComment&comment=494899 Quote Link to comment
Meo Posted May 6, 2021 Author Share Posted May 6, 2021 vor 45 Minuten schrieb Griga: You mean automatic timer creation? On which occasion? After an EPG import? https://www.DVBViewer.tv/forum/topic/65087-timer-rules-and-timers/?do=findComment&comment=494899 Bitte in Deutsch weitermachen. ? Ich werfe DeepL nur wegen den Xepg Entwickler Delphi an. Ich kenne (jetzt) die in- und externe Timer des DMS. Das würde bedeuten ich lege einen internen Timer von 00:00 bis 23:59 mit "Automatisch Timer erzeugen" an, und damit werden die Timer ständig erzeugt? Quote Link to comment
Delphi Posted May 6, 2021 Share Posted May 6, 2021 Why not just use the EPG-Buddy as it is intended to be used? Everything, including calling the autotimer after EPG import (Xepg will do that) will then work. https://www.DVBViewer.tv/forum/topic/64611-epg-buddy-ein-leicht-zu-nutzendes-tool-für-xmltv-epg/ Quote Link to comment
Meo Posted May 6, 2021 Author Share Posted May 6, 2021 vor 22 Minuten schrieb Delphi: Why not just use the EPG-Buddy as it is intended to be used? Everything, including calling the autotimer after EPG import (Xepg will do that) will then work. https://www.DVBViewer.tv/forum/topic/64611-epg-buddy-ein-leicht-zu-nutzendes-tool-für-xmltv-epg/ I've used this instruction: https://www.DVBViewer.tv/forum/topic/64067-DVBViewer-internet-streams-und-epg-mit-epg-buddy-und-xepg/?tab=comments#comment-488620 Quote Link to comment
Delphi Posted May 6, 2021 Share Posted May 6, 2021 This never ended up working, probably because 2 conflicting windows tasks are involved: you create one and the EPG-Buddy creates one. Use the link I provided. @Griga: Maybe you want to put a comment into the first post to warn users to do it that way. In this thread: https://www.DVBViewer.tv/forum/topic/64067-DVBViewer-internet-streams-und-epg-mit-epg-buddy-und-xepg/?tab=comments#comment-488620 Quote Link to comment
Griga Posted May 6, 2021 Share Posted May 6, 2021 vor einer Stunde schrieb Meo: Das würde bedeuten ich lege einen internen Timer von 00:00 bis 23:59 mit "Automatisch Timer erzeugen" an, und damit werden die Timer ständig erzeugt? No. Timer creation is triggered once at the start time on a daily basis. The stop time indicates the latest point in time for executing an optional final action (like shutdown). Usually it is executed earlier when the task is done. So your timer would be executed at 00:00, and a final action would be executed when the task is done or latest at 23:59. Quote Link to comment
Meo Posted May 7, 2021 Author Share Posted May 7, 2021 vor 7 Stunden schrieb Delphi: This never ended up working, probably because 2 conflicting windows tasks are involved: you create one and the EPG-Buddy creates one. Use the link I provided. @Griga: Maybe you want to put a comment into the first post to warn users to do it that way. In this thread: https://www.DVBViewer.tv/forum/topic/64067-DVBViewer-internet-streams-und-epg-mit-epg-buddy-und-xepg/?tab=comments#comment-488620 No, that's wrong. Take a look at Bild 3 Quote Link to comment
HaraldL Posted May 7, 2021 Share Posted May 7, 2021 Vielleicht gibt es hier einen Zusammenhang? Link Quote Link to comment
Delphi Posted May 7, 2021 Share Posted May 7, 2021 5 hours ago, Meo said: No, that's wrong. In that case yes. I still recommend to use EPG-Buddy as it is intended to be used. Quote Link to comment
Meo Posted May 7, 2021 Author Share Posted May 7, 2021 vor 3 Stunden schrieb HaraldL: Vielleicht gibt es hier einen Zusammenhang? Link Das Problem tritt bei mir aber schon länger auf. Quote Link to comment
Delphi Posted May 7, 2021 Share Posted May 7, 2021 See: https://www.DVBViewer.tv/forum/topic/65169-xepg-does-not-create-new-timers/?do=findComment&comment=495463 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.