Script to get PID list for the selected channel

There are 6 replies in this Thread which was already clicked 665 times. The last Post () by sentaro.

  • Hi,


    I would need to find a way to get namespace and PID list for the currently tuned channel, in order to pass TID, NID, SID and hopefully the namespace to another script for further eleborations.

    Such values are available on the Info screen on the receiver itself and can be read by dreambox of course, but I need a way to get them programmatically by a bash script (so to pass the values to another python script).

    Are you aware of any easy way to get those data from the shell?


    Thank you!

    KR

  • master G

    Approved the thread.
  • Using chatgpt - maybe something like this. Not checked it though. XML version

    And don't forget to convert any .sh files to unix ending.

    ** A person who feels appreciated will always do more than what is expected **

  • wget version


    ** A person who feels appreciated will always do more than what is expected **

  • yeah, thank you.

    I'm done. at the end I made the rest request into a python script rather than in the bash script.

    This because I need to make calculations on the PIDs and namespace in order to compute the softcam hash of the tuned channel, you know...


    It's working now, basically this is what it does (not that elegant I know...):

    1) a bash script passes a "value" ( :smiling face with halo: ) as a parameter to a python script

    2) the python script gets the servicereference by the rest API, then PID parsification occurs, getting SID, TID, oNID, E2 namespace; then after elaboration the softcam hash is produced and softcam k*y file is updated with a new entry.

    3) the bash script forces a softcam restart in order to read the just updated k*y file

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!