Jump to content

api tasks.html task auf dms antwortet mit param-liste


sir drake

Recommended Posts

Hallo Griga,
ich habe heute den DMS über den RS installiert und viele Funktionen meines Programmes arbeiten ohne Änderungen.

Eine Funktion will aber nicht so richtig:
 

http://localhost:8089/api/tasks.html?task=EPGStart


liefert zwar einen http-result = 200 aber es ist die komplette param-liste der tasks die möglich sind.
ich sehe auch auf der StatusSeite des web-interface, das der EPGstart nicht statt gefunden hat.
Das geht mir auch mit dem Task CleanupDB so, den ich im Grunde benötige.

User und PW werden wie in allen anderen Befehlen korrekt gesetzt.
Das ist eine zentrale Routine, die alle Kommandos in Richtung RS/DMS ausführt.

Abrufen der Sender,  EPGs, Timer, aktivieren/deaktivieren funzt alles.

 

Ging unter der letzten RS-Version einwandfrei.

 

Hast du eine Idee ? 

 

vg 

Sir Drake

Edited by sir drake
Link to comment

Hallo nuts,
danke für die schnelle antwort.

dms 2.0.3.0


Ohne /api/ 

und

&aktions=tasks gehts.

http://localhost:8089/tasks.html?task=EPGStart&aktion=tasks
http://localhost:8089/tasks.html?task=EPGStop&aktion=tasks

 

ich bekomme als Resultat die Task-Seite des web interface :oops:
immerhin geht's aber.

 

Woran kann ich erkennen, das ich die neue API Version nutze ?
Wie gesagt, habe ich den DMS einfach darüber gebügelt.
 

vg

Link to comment

http://www.dvbviewer.tv/forum/topic/59621-media-server-2x-api-changes/?do=findComment&comment=465167

 

Da gibt es einen Bug, deshalb geht task=epgstart nicht. Aber action=epgstart sollte funktionieren.

 

Quote

Action is the command that must be sent to the Media Server for executing the task, e.g. /api/task.html?task=EPGStart. For consistency the API also allows to use /api/task.html?action=....

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...