Jump to content


Photo

view and hide an image file on a TV screen (Python, Enigma-2)


  • Please log in to reply
43 replies to this topic

Re: view and hide an image file on a TV screen (Python, Enigma-2) #41 s3n0

  • Senior Member
  • 641 posts

+62
Good

Posted 30 April 2018 - 16:02

No, we do not understand :-) .

I want to make it possible to use all RC buttons to cancel / close the image.

This will probably be a bit more complicated. Grrrr. I also want to pass the RC code back to Enigma. In other words: I want to close the image and immediately send the code from the RC to the Enigma to execute it. For example, if the image is displayed on the TV and I press the RC button (eg MENU or CHANNEL +/-) then I want the image to close immediately and the RC button to be sent to the Enigma to execute it (as an example - to open the MENU or to change the channel).

My second unresolved problem:
If any OpenPLi MENU is currently open, my image (monoscope) is still displayed. The image is displayed depending on the current time. So I need a code that tests the condition of just opened: "Screens", Plugins, Applications, Video Players, MENU, etc. . If some MENU or some "Screen" (etc.) is just opened, then the picture will not be shown on the TV (in the repeat code, checking the current time).

I have to solve these two big problems so that I can begin to do an ant work in Python, independent of the Enigma system :-( .



Re: view and hide an image file on a TV screen (Python, Enigma-2) #42 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 30 April 2018 - 17:23

If i understand you,to close image screen by any remote key,i do not think there is simple way to do that but you can do with a lot of work by assinging every remote key to self.close.

Regarding second point you can do any action you want by using openWithCallback

def checkingProc():
	print('MYDEBUGLINE - checkingProc executed')
	if True:#"14:39" == datetime.datetime.now().strftime("%H:%M"):

		print('MYDEBUGLINE - equal clock detected')
		self.session.openWithCallback(screenback,MyTest)
def screenback(data=None):
        pass
        ## put your action here changing channel or showing menu

Regarding prevent image showing if menu or other screens opened,never came across such thing and do not know if possible.


Edited by mfaraj57, 30 April 2018 - 17:23.


Re: view and hide an image file on a TV screen (Python, Enigma-2) #43 s3n0

  • Senior Member
  • 641 posts

+62
Good

Posted 30 April 2018 - 17:51

I do not believe there is no declaration for the "all buttons" of the remote control as well. It must still exist :) . I can not find anything on the Internet... unfortunately. Assigning totally all the buttons on the remote is a little stupid, though of course it's real ;). Maybe that's how I try, I've already thought about it, but it seems stupid.

Then I have to forward the action of the button to that original (global) action. Alternatively, I can repeat the call of this key - I will have to find inspiration to call the RC button, for example in OpenWebif source codes. OpenWebig can retrieve buttons on the remote control and send them to Enigma. But as a beginner I do not find much inspiration. OpenWebif is an allegedly complicated code.



Re: view and hide an image file on a TV screen (Python, Enigma-2) #44 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 30 April 2018 - 21:18

You cannot blame enigma,because it is designed for small linux enviroment with limited resources so will not find flexible as others in different plateforms.

I do not think you will find anything helpful in webinterface but you can create local keymap.xml and make customized actionmap.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users