Jump to content

API-Tasks-Command-Reflection


sir drake

Recommended Posts

sir drake

Hello Griga,

 

maybe somthing for further versions.

 

by using the Tasks-command ( api/tasks.html?action=.... ) 
i did not know, when a started process is finished.
(also not if start has happen successfully. no feedback given ) 

should it be possible to implement this as a feedback
once in the existing status2-request or in a sep. new tasks-status-request ? 

in a very specific case i need to know if a process has ended 

prior i fire the next command to dms.

 

every suggestion is welcome

 

brgds

sir drake
 

Link to post
sir drake

similar but not exactly what i want to know.
 

thanks for spending time to this topic

brgds

sir drake

Link to post
Griga

The requirements are the same. What you want needs

  1. An ID as reference allowing to specify exactly for which task you want to get feedback. The ID may for example include the task trigger (timer, API, web interface...), task name and time of execution.
  2. Objects that are able to monitor internal tasks (as already existing for external process tasks) and to indicate their running state.

Without this basis a "task feedback API" is impossible and the question "is my task finished?" cannot be answered. Since such a system does not exist in the DMS, it must be designed and implemented first. You can't do the second step before the first one.

 

Link to post
sir drake

Hi Griga,
yes, your are right.

Maybe in future, one day..... :)

 

meanwhile a simple sleep(1000) does the job as well.

but uncontrolled.

 

so what..

 

thanks again

Link to post
majstang
On 5/5/2018 at 1:13 PM, Griga said:

The requirements are the same. What you want needs

  1. An ID as reference allowing to specify exactly for which task you want to get feedback. The ID may for example include the task trigger (timer, API, web interface...), task name and time of execution.
  2. Objects that are able to monitor internal tasks (as already existing for external process tasks) and to indicate their running state.

Without this basis a "task feedback API" is impossible and the question "is my task finished?" cannot be answered. Since such a system does not exist in the DMS, it must be designed and implemented first. You can't do the second step before the first one.

 

 

It's truly great this in-detail-analysis has begun. A task feedback API would be awesome and something at least i have missed for a decade now. The new webinterface task notifications is nice, although in current state they leave the user wanting more. One idea is maybe if splitting the webinterface "Tasks" page in two windows, where one contains the tasks as is now and the other a task in-progress list which displays both auto activated (by script or timer) and manually activated tasks. Possibly also an other tab (or sub-window) with task deployment history, timings and error description if failed/aborted. That way the need to plow the logs to see if a task did run ok gets unnecessary.   

Link to post

Join the conversation

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

Guest
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.

  • Similar Content

    • DetlefM
      By DetlefM
      I noticed several things during my tests that make debugging api calls difficult.
      /api/epg.html
      The returned XML string is often (but not always) incorrect if the EPG entry is not found.
      <?xml version="1.0" encoding="utf-8" ?><!-- by DVBViewer Media Server --><epg Ver="1">
      The end tag is missing.
      Here it would be nice (besides the return of a valid XML string) to get an error code included. For example: wrong channelid, epgid not found
      When searching for pdc with a wrong pdc value (in my case 'NOPDC') this filter is completely ignored and the EPG list of the channel is returned. I think also here an error message would be more helpful.
      Many other api calls have no return value at all - e.g. timeredit. Here it would be helpful if the changed timer (or an error code in case of problems) would be returned.
    • t5b6_de
      By t5b6_de
      Hallo zusammen, 
       
      ich möchte für den DVBViewer und den Media Server plugins schreiben die  (im ersten Schritt Daten im TS-Datenstrom abgreifen, später dann auch manipulieren)
       
      Gibt es irgendwo ein Projektbeispiel für Visual Studio in c++ oder c?

      Ich konnte leider keines finden, oder war nicht in der Lage einen passenden Suchbegriff zu formulieren.
       
      Grüße
      Thomas
    • AnBad
      By AnBad
      Hallo,
      weiß jemand eine Möglichkeit wie man von FHEM aus EPG_Daten des Mediaservers aufrufen bzw. nach FHEM importieren kann? Also z.B. einmal am Tag für bestimmte Sender das Programm für z.B. die nächsten drei Tage.
       
      Ich weiß es gibt eine API-Schnittstelle im Mediaserver. Aber ich habe da keine Ahnung. Könnte man mit "http://[user]:[password]@[IP]:[port]/api/" Daten im Browser anzeigen lassen, die man dann mit Parsing abgreift? Wobei ich nicht einmal weiß, welchen User und Passwort ich in das Link eintragen müsste.
       
      Danke
      Michael
    • sir drake
      By sir drake
      Hallo Griga,
      ich möchte ein meinem Programm neben dem CHANNEL-NAME auch die Quelle( SAT/Internet...HLS Deutsch....)  einer Aufnahme anzeigen.
      In einem TIMER-RECORD habe kann ich hierfür den Node  <CHANNEL ID> zerlegen und benutzen.
      In einem RECORDING-RECORD habe ich nur den Node >CHANNEL>xxxx</CHANNEL>
      Das reicht leider für meine Zwecke nicht aus.

      <recording id="98" charset="255" start="20181021195500" duration="001000">
      <channel>Das Erste</channel>
      <channel ID>1234567890</channel ID>
      <file>
      d:\_aufnahmen\2018-10-21_19-59-23_das erste_tagesschau.ts
      </file>
      <title>Tagesschau</title>
      <image>2706243175_SM.jpg</image>
      </recording>
       
      Vielleicht kannst du diesen Node optional beim Aufruf hinzufügen:
       
      ....://localhost:8089/api/recordings.html?utf8=1&amp;images=1;channel_id=1
       
       
      vg & Dank 
      Sir Drake
    • mani tehrani
      By mani tehrani
      hi
      how can i reduce size of  recorded files with ffmpeg tasks? for example how can i change bitrate and convert "mpg" recorded files to MP4?
      i know some channels are HD and others are SD, is there different?
×
×
  • Create New...