Quantcast
Channel: [EN] OpenPLi Third-Party Development
Viewing all 1692 articles
Browse latest View live

Is there a reason why you have so old openvpn versions in opkg and Why I cant build it from source?

$
0
0

I am to be honest a little pissed of because you have still the openvpn version 2.3.9 in opkg. With this version you cant do anything right.

The .ovpn you create with the newest version on your server arent working good and for the security perspective its more than a mess to use so old versions. So i tried to build openvpn from source (the newest version ofc) and figured out that this is not even possible because I cant get

libssl-dev liblzo2-dev libpam0g-dev build-essential

if you know a way pls tell me ;D

 

I want to ask now:

1) Why didnt you updated the openvpn versions in opkg

2) Do you know another way to use openvpn

3) Do you use .ovpn files for your clients? Or do you handle it differently?

 

Have a nice Day

 

Turbo


GStreamer 1.0

$
0
0

Dear All,

 

 

I thing that everyone likes some might interesting in the new features and stability? offered by newer versions of GStreamer.

 

OpenPLi currently has some "experimental" branches (named gst 1.0) where GStreamer API changes applied in order to be able to build images with the new version of GStreamer.

 

Using those branches i have managed to build an image using latest (stable) GStreamer 1.0.7.

 

Of course results are not so good. Almost.. no media work (except some mkv).

 

So i have some questions:

 

1. Do you want/accept patches for gst 1.0 branch?

 

2. Is it possible to update gst 1.0 branch to latest version (and synchronize with HEAD)?

 

3. What would be the starting point for fixing things, eg first try to fix MP3?

 

4. Maybe its better to create "experimental" gst 1.0 on Github so other teams interesting in Gstreamer 1.0 help?

 

I can attach changes already did here, if someone wants to play with GStreamer 1.0. Making one step at a time all of the sudden we are going to have the first Enigma2 with GStreamer 1.0.

 

Regards,

athoik

Open satfinder in myplugin

$
0
0

Hi Dears

 

I want to open satfinder plugin in myplugin.

 

first method:

def upsatfinder(self):
	if fileExists("/usr/lib/enigma2/python/Plugins/SystemPlugins/Satfinder/plugin.py"):
		from Plugins.SystemPlugins.Satfinder.plugin import Satfinder 
		self.session.open(Satfinder)

But I want a second method to open Satfinder plugin by following function"def SatfinderMain(session, close=None, **kwargs)" in Satfinder plugin

 

How can I do that?

 

thanks

 

Following codes  belong to satfinder plugin. also attached file.

class Satfinder(ScanSetup, ServiceScan):
    """Inherits StaticText [key_red] and [key_green] properties from ScanSetup"""

    def __init__(self, session):
    .
    .
    .
def SatfinderCallback(close, answer):
	if close and answer:
		close(True)

def SatfinderMain(session, close=None, **kwargs):"""I want a second method to open Satfinder plugin by this function"""
	nims = nimmanager.nim_slots
	nimList = []
	for n in nims:
		if not any([n.isCompatible(x) for x in "DVB-S", "DVB-S2"]):
			continue
		if n.config_mode in ("loopthrough", "satposdepends", "nothing"):
			continue
		if n.isCompatible("DVB-S") and n.config_mode in ("advanced", "simple") and len(nimmanager.getSatListForNim(n.slot)) < 1:
			config.Nims[n.slot].configMode.value = "nothing"
			config.Nims[n.slot].configMode.save()
			continue
		nimList.append(n)

	if len(nimList) == 0:
		session.open(MessageBox, _("No Satellite Tuner is configured. Please check your tuner setup."), MessageBox.TYPE_ERROR)
	else:
		session.openWithCallback(boundFunction(SatfinderCallback, close), Satfinder)

def SatfinderStart(menuid, **kwargs):
	if menuid == "scan" and nimmanager.somethingConnected():
		return [(_("Signal finder"), SatfinderMain, "satfinder", None)]
	else:
		return []

def Plugins(**kwargs):
	if any([nimmanager.hasNimType(x) for x in "DVB-S", "DVB-T", "DVB-C", "ATSC"]):
		return PluginDescriptor(name=_("Signal finder"), description=_("Helps setting up your antenna"), where = PluginDescriptor.WHERE_MENU, needsRestart = False, fnc=SatfinderStart)
	else:
		return []

Attached Files

Plugin Option to start when a remote key is pressed

$
0
0

I'm working on a plugin.  I would like to know if there is a way to tell the plugin to start when you press a particular key on your remote.  A color key for example.

 

I would like to make a plugin that will store the satellite position to the dish mover at a push of a button. 

 

I tried this thinking it might launch when you press the red button, but it does not appear to work

 

PluginDescriptor(name="myplugin", description=_("myplugin"), where = PluginDescriptor.WHERE_CHANNEL_SELECTION_RED, fnc=main)

Plugin - Ability to retrieve NIB tuner configuration settings?

$
0
0

I would like to make modifications to the diseqc position plugin.  I would like it to default to the Diseqc store position as setup in the Tuner configuration settings for the current signal. I would basically like to personalize the plugin allowing me to quickly nudge the satellite dish east / west, and then store the position.  The current plugin doesn't know the store position, you have to enter it.  That is not very user friendly.

 

 

openvpn plugin

$
0
0

hello, i installed openvpn through telnet (opkg install openvpn) but i don't see it in plugins or system settings. where does it hiding and how can i turn it on?

[eDVBPESReader] ERROR reading PES

$
0
0

Hello to the eager hobbyists

maybe someone would like to give me a hint.
It is not a problem of the 'original' Pli-Image construction.
For a long time I'm building a modified sh4 pli.
Principal basis is libeplayer based.
Error occurs at the end of a stream (mp4) and leads to reboot.
Media data will otherwise be given back properly.
My question ...
Does the error originally come from the e2?
Or would I have to adapt a bit more the libeplayer3 or the servicesh4?

greetings

[eDVBPESReader] ERROR reading PES (fd=53): Value too large for defined data type
[eDVBPESReader] ERROR reading PES (fd=53): Value too large for defined data type
[eDVBPESReader] ERROR reading PES (fd=53): Value too large for defined data type
Backtrace:
/usr/bin/enigma2(_Z17handleFatalSignaliP9siginfo_tPv) [0x46A4C0]
/usr/lib/libavcodec.so.58(av_packet_copy_props) [0x2D13B976]
-------FATAL SIGNAL

Allowing skins to set the frontendInfo colors...

$
0
0

Hi, I am trying to adjust the python code, so skins will be able to set the frontendinfo colors, via a skin parameter. I can't seem to make it work though.

 

My changes are here: https://github.com/nautilus7/enigma2/commit/7b913b122a34d3061609e1c0dc4b9cdc58a664ce

 

The hex2str color conversion function is taken from here: https://github.com/OpenPLi/enigma2/blob/develop/lib/python/Components/Renderer/NextEpgInfo.py#L72

 

In my test code, I can't even get the the print calls to work. I get no output from these print functions (in debug level), as if they are not there... Any ideas?


NameError: global name 'Diseqc' is not defined

$
0
0

I am attempting to write a plugin that will issue a diseqc command.  I am trying to make a plugin that will include moving the dish west / east.  I want to do this based off the active service/tuner.

 

I got much of my ideas by studying the positionersetup.py, however i don't want to ask what tuner to use, i want to use the active one.  The error tells me it has no idea what the Diseqc command is.  Where/How does the Diseqc get declared?  I thought i have all the imports.   Can someone give me a clue as to why i have hit a dead end.

 

Ps.  On another note, I might be wrong, but from me working with this a few days, I have come to believe the feid is the Tuner card that is active??  Yes No?  I hardcoded the value to 1 assuming that is tuner 1.  Am i correct ? and how might i grab the active tuner feid rather than hardcoding.

 

Here is a snippet of my code :

        self.feid = 1
        feInfo = service and service.frontendInfo()
        cur = feInfo.getTransponderData(True)
            if self.openFrontend():
                diseqcpos = 999
            self.frontendStatus = { }
            self.diseqc = Diseqc(self.frontend)    <-- Crash on this line.

 

The error I am receiving : NameError: global name 'Diseqc' is not defined

 

 

How open record screen in myplugin

$
0
0

Hi Dears

 

I want to open record screen in myplugin but i want to open 3rd item screen directly (Add recording (enter recording duration)) .

 

How can i do it?

Attached Thumbnails

  • Screenshot from 2019-11-11 22-59-03.png

Loading plugin pixmaps from skin path first, then fallback to plugin path - What's the best way to do it?

$
0
0

So, let's say a plugin needs to load some pixmaps for its skin. It can look up in the plugin director to load the pixmaps provided by the plugin, or look up in the skin directory to load the pixmaps provided by the skin.

 

This could be done like this:

# first check if current skin provides the icon
icon = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "icons/pluginName/icon.png"))

# fallback to icon supplied by the plugin
if icon is None:
     icon = LoadPixmap(resolveFilename(SCOPE_CURRENT_PLUGIN, "pluginName/icons/icon.png"))

The above work fine, but if the skin does not provides the icon, then we get an message in the debug log (icon not found)... Is there a way to do the same, but without getting the error message in the log?

 

In general, is there a more efficient or faster way to do it? 

Compile Git for enigma2

$
0
0

Hi

I'm starting to develop python plugins on the actual hw itself (easier) and would like to install Git on the target machine (Vu+duo2). Since I didn't find git anywhere baked, I decided to bitbake it myself. There were some issues, like patch file no_read_restart_on_eagain.patch which didn't apply anymore. Removed that from the recipe and after that bitbake git worked fine. The package also installed on the machine fine but alas it does not work because of wrong dependency?

 

vuduo2: git

git: /usr/lib/libcrypto.so.1.0.2: version `OPENSSL_1.0.2d' not found (required by git)

 

This is confusing since opkg info git__2.11.1-r0_mips32el.ipk

returns

Package: git
Version: 2.11.1-r0
Depends: libc6 (>= 2.25), libcrypto1.0.2 (>= 1.0.2k), libcurl4 (>= 7.53.1), libexpat1 (>= 2.2.0), libssl1.0.2 (>= 1.0.2k), libz1 (>= 1.2.11)
Status: unknown ok not-installed
Section: console/utils
Architecture: mips32el
Maintainer: OE-Core Developers <openembedded-core@lists.openembedded.org>
Source: git_2.11.1.bb
Description: Distributed version control system
Distributed version control system.

 

On the other hand checking libssl version tells me this:
vuduo2:~$ grep OPENSSL /usr/lib/libssl.so.1.0.2
OPENSSL_cleanse
OPENSSL_DIR_read
OPENSSL_DIR_end
OPENSSL_1.0.0
OPENSSL_1.0.1
OPENSSL_1.0.1d
OPENSSL_1.0.2
OPENSSL_1.0.2g
OPENSSL_DIR_read(&ctx, '
OPENSSL_malloc Error

 

and on the other hand opgk info openssl10 tells me this:
Version: 1.0.2q-r0
Depends: libc6 (>= 2.28), libcrypto1.0.2 (>= 1.0.2q), libssl1.0.2 (>= 1.0.2q), openssl10-conf
Provides: openssl
Status: unknown ok not-installed
Section: libs/network
Architecture: vuduo2
Maintainer: OE-Core Developers <openembedded-core@lists.openembedded.org>
MD5Sum: be7fd6b8109817bf9a24e82d8e9f1491
Size: 151558
Filename: openssl10_1.0.2q-r0_vuduo2.ipk
Source: openssl10_1.0.2q.bb
Description: Secure Socket Layer

 

My question is what dependency now is wrong and where? I should have openssl 1.0.2q installed with same versioned libcrypto and git should need =>1.0.2k. So this should be covered but still when running the binary I get complain from git? that I should have openssl 1.0.2d installed? Grepping libcrypto shows that I have 1.0.2g available. How do I fix this?

IPK Creator 5.0 + IPK Feed Generator 1.0

$
0
0

IPK Creator 5.0

Version 5.0

- Windows, Linux, macOS binaries added (x86/x64)

- "Recommends" added

- "armv7ahf-neon" and "cortexa9hf-neon" architectures added

- no check for characters so you can create anything

- less required fields in red

- lots of fixes/improvements

- clean and rebuild using JDK 8u102/NetBeans 8.1

IPK Feed Generator 1.0

Version 1.0

You need to install JRE (Java Runtime Environment) !

Download it from http://www.filehippo.com/download_jre/ (Windows)

Recommended JRE version : 8.0 build 102

Place your IPK files here then run IPKFeedGenerator.jar

It will create Packages and Packages.gz for you

==================================================

As you know you can run a jar file in any operating system (Windows, Linux, macOS, ...) because it's Java

I did compile it with Java 8u102/NetBeans 8.1 so you need JRE 1.8.x

Enjoy creating IPK feeds

:)

Attached Thumbnails

  • screenshot.jpg

Attached Files

OpenWebif suggestion: create a .M3U files for a whole bouquet

$
0
0
Hi,

I have just created a script to convert userbouquet files into .M3U file so we can zap directly from within VLC playlist.

Would be nice to have this .m3u file generation directly from OpenWebif instead of creating .m3u individually for each channel that we want to stream.
My idea is to have it include close to each bouquet name, so in one click we can generate a full playlist.

I have attached the script so people interested can have a look at it.

Regards,

Pr2

Attached Files

BISS2?


eudev or mdev

$
0
0

I have build the branch thud with eudev and removed mdev.

I was pretty surprised with minimal adjustment that it works inside e2 already good.

 

/media is actually not needed but as most people check this map it's in the patch mount to /run/media

 

I have only test the input and hardware devices like harddisk, usb stick sdcard, wifi sticks and internal ethernet.

I made an small patch for test and I hope we can switch from mdev to eudev.

 

todo

test nfs/cifs shares and mount/unmount

Rules for internal eMMC you can easily blacklist it but as some models use mmcblk0 and other mmcblk1 I have not added yet.

/hdd mount to disk I think it never work like it should been. Probably fstab or a rule is needed to assign a disk to HDD.

In Openembedded there only a couple links to /media left. As I do not know the application I left it along for now.

Attached Files

Error delete ccam.

$
0
0

Good afternoon.Tell me please.Thud branch(master brunch also),my build.Installed ccam2.3.2.It works,I want to delete it,but I can’t.

 

Attached Thumbnails

  • 1_0_16_709_12_70_1680000_0_0_0_20191124110616.jpg
  • 1_0_16_709_12_70_1680000_0_0_0_20191124111932.jpg

Webcam guru out there?

$
0
0

Hi guys. I am trying to view a few webcam streams on my duo2 but need some guidance if possible. I know how to stream a rtmp address and a m3u8 address but havn`t mastered the mjpeg as of yet. I can use webcamviewer plugin however but it does not refresh automatically.  Is there any software out there which will refresh automatically? I was thinking possibly Ts media or iptv plugin which could be tweaked somehow  to play http cams ,, Thanks

Install .ipk

$
0
0

I would like to manualy install file with end .ipk and it does not work with "install local ..."

 

How to do?

CommonInterfaceAssignement Plugin, with or without, no difference

$
0
0

Hello,

 

 Vu+ Duo2, 3 lines, tuners A,B,C, D on C., 13°, 19,2° and 5.0W

 

I would like to know if maybe I'm doing something wrong, but I have tried all the way to use the CommonInterfaceAssignement plugin, but not working for what upon my advice must do:

 

I have one smartcard in a Ci+ cam module, dual descrambling. And for commodity, I am using Oscam for other channels.
I have to specify that I have the original smartcards, it's only for descrambling commodity.

When recording 1 channel in Cam module, even if using CommonInterfaceAssignment, impossible to watch another channel on the card in the CI module, even if on the same transponder.
And impossible too to watch an Oscam channel, only some, sometimes.

 

Worth if I try to insert the 2 Cam modules (both in Viaccess) at this point, nothing works, I can only have 1 module inserted.

 

Normally, this plugin has to "force" the listed channels in the assignement?

 

But with or without, I have no difference.

 

Can somebody tell me what is wrong?

 

Thanks for the help,

 

Raymond

 

Tested on OP 6. 6.2 and 7.1

Viewing all 1692 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>