Jump to content


mino60

Member Since 26 Sep 2018
Offline Last Active 04 Mar 2024 08:26
-----

Topics I've Started

Help skin icon for plugin

28 April 2019 - 08:13

Hello...

 

 

I made an enigma2 plugin to run scripts and I created a folder named icon that contains rapids Icon 128px

how to display the flags of each country for each com (entry) that matches

from Screens.Screen import Screen
from Screens.Console import Console
from Components.MenuList import MenuList
from Components.ActionMap import ActionMap
from Components.Pixmap import Pixmap
from Plugins.Plugin import PluginDescriptor 
import os
import urllib2
import re
from Screens.Screen import Screen
from Components.Label import Label
from Components.Pixmap import Pixmap
from Components.AVSwitch import AVSwitch
from Components.ActionMap import ActionMap
from Plugins.Plugin import PluginDescriptor
from enigma import ePicLoad
icon="/usr/lib/enigma2/python/Plugins/Extensions/FreeServer/icon/DZ.png" 
###########################################################################
#https://cdn.countryflags.com/thumbs/algeria/flag-800.png                                                 
class MyShPrombt(Screen):
 	skin = """                                 
		<screen position="40,50" size="1200,620" title=" Last Oscam Ncam Bin Update" flags="wfNoBorder" backgroundColor="#20000000">
		<widget name="icon" zPosition="4" position="856,20" size="132,88" alphatest="blend" borderWidth="2" borderColor="white" backgroundColor="black" />
                <widget name="myMenu" position="0,0" size="620,500" font="mediaportal;22" flags="wfNoBorder" backgroundColor="#00000000" halign="right">
		</widget>
		</screen>"""
	def __init__(self, session, picPath = None, args = 0, cover=cover):
		Screen.__init__(self, session)
		print "[icon] __init__\n"
		self['icon'] = Pixmap()
		self.showInfos()


		list = []
		list.append(("  vpn-ca", "com_1", "icon"))                
		list.append(("  vpn-de", "com_2", "icon"))                
		list.append(("  vpn-fr", "com_3", "icon"))                
		list.append(("  vpn-pl", "com_4", "icon"))                
		list.append(("  vpn-us", "com_5", "icon"))

		list.append((_("Exit"), "exit"))
		
		Screen.__init__(self, session)
		#self.show_Screenmenu
		self.cmdlist = []
		self['icon'] = Pixmap()		
		self["myMenu"] = MenuList(list)
		self["myActionMap"] = ActionMap(["SetupActions"],
		{
                       # "up": self.up,
                       # "down": self.down,
                        #"left": self.left,
                      #  "right": self.right,
			"ok": self.go,
			"cancel": self.cancel
		}, -1)


	def go(self):
		returnValue = self["myMenu"].l.getCurrentSelection()[1]

		print "\n[MyShPrombt] returnValue: " + returnValue + "\n"


		if returnValue is not None:
		
			if returnValue is "com_1":
				cmdlist = []
                                self.prombt("/usr/lib/enigma2/python/Plugins/Extensions/FreeServer/scripts/FreeServersh4.sh")				
			        self.session.open(Console, title='Installing last update', cmdlist=cmdlist, finishedCallback=None)
			elif returnValue is "com_2":
				cmdlist = []
                                self.prombt("/usr/lib/enigma2/python/Plugins/Extensions/FreeServer/scripts/FreeServersh4.sh")			
			        self.session.open(Console, title='Installing last update', cmdlist=cmdlist, finishedCallback=None)				self.prombt("/usr/lib/enigma2/python/Plugins/Extensions/FreeServer/scripts/FreeServerMipsoe2.0.sh")
				
			elif returnValue is "com_3":
			
				cmdlist = []
                                self.prombt("/usr/lib/enigma2/python/Plugins/Extensions/FreeServer/scripts/FreeServersh4.sh")			
			        self.session.open(Console, title='Installing last update', cmdlist=cmdlist, finishedCallback=None)				self.prombt("/usr/lib/enigma2/python/Plugins/Extensions/FreeServer/scripts/FreeServerMipsoe2.0.sh")
	
			elif returnValue is "com_4":
			
				cmdlist = []
                                self.prombt("/usr/lib/enigma2/python/Plugins/Extensions/FreeServer/scripts/FreeServersh4.sh")			
			        self.session.open(Console, title='Installing last update', cmdlist=cmdlist, finishedCallback=None)				self.prombt("/usr/lib/enigma2/python/Plugins/Extensions/FreeServer/scripts/FreeServerMipsoe2.0.sh")
				
							else:
				print "\n[MyShPrombt] cancel\n"
				self.close(None)

	def prombt(self, com):
	        scripts = "/usr/lib/enigma2/python/Plugins/Extensions/FreeServer/scripts/"
                os.chmod(scripts, 755)
		self.session.open(Console,_("Executing: %s") % (com), ["%s" % com])
		
	def cancel(self):
		print "\n[MyShPrombt] cancel\n"
		self.close(None)


def main(session, **kwargs):
	print "\n[MyShPrombt] start\n"	
	session.open(MyShPrombt)

Xymaa7o.jpg?1

 

n33O6zf.png?1

sorry for my English


Messagebox to open read file

7 February 2019 - 13:45

Hello

I created an enigma2 plugin in a part I would like to make a messagebox
the message opens a file that I download it on the Web


ok: self.Messagebox

def Messaagebox

f= file('/tmp/message', w)
self.session.open(Messagebox, message, + str(f) + ) Messagebox_type_INFO

How to make a shell command to execute the on clik function

13 November 2018 - 06:01

I want to activate a cline for cccam but with a script Shell , I could have the cline but is not activated I need to click on the button green.
 


Emulator autostart

2 October 2018 - 23:00

I noticed that the emu cccam on openpli does not activate automatically when the system is remade it must go green menu then softcam , on other images like openbh 4..2 oe4.2 the cam starts directly when restarting système.

I created a script that I wanted it to start when starting the system in etc / init.d -> 777 chmood and I created a simbolic link in rc2.d mait it does not work at the demarage of my vusolo4k

Sorry for my english

Wifi integrated in vu+ solo 4k

27 September 2018 - 02:56

I have a problem wlan wifi on my box vu+ solo 4k with the wifi wirlesse integrated motherboard vusolo4k the other hand no connection problem with dwa131:

Connexion WlAN /
Realtek interface réseau son fil

Connexion WLAN 2 ×
usb interface réseau son fil

Connexion LAN ×

the second is for the wifi integrate
and here is the log on the image openpli 6.2 of 24/09/2018 when I look for available wifi networks (Network Scanner).
on the image openbh or Black hole 3.0.5 I do not have this problem.

https://ia601509.us...._1538006175.log

https://image.ibb.co...FMp/MbcFile.jpg