Jump to content


Photo

OpenPli - How to render volume value in to the text?


  • Please log in to reply
15 replies to this topic

#1 b@dboy

  • Member
  • 12 posts

0
Neutral

Posted 11 June 2019 - 18:21

Hello guys!

I'm creating own skin for E2 box which is using OpenPli 8.6 software. 

I have created volume widget which is rendering the volume value into the text. 

Problem I have that there is volume from 1-20 rendered.

How to make this work to have volume value from 0-100 ? 

Below is my code.

I will be super grateful  for any help guys. 

Thanks 

<widget font="Arial;40" foregroundColor="white" backgroundColor="transpBlack" halign="center" valign="center" render="valioVolumeText" source="global.CurrentTime" position="239,-1" size="85,69" zPosition="20" transparent="1" />


Re: OpenPli - How to render volume value in to the text? #2 littlesat

  • PLi® Core member
  • 47,853 posts

+499
Excellent

Posted 11 June 2019 - 18:27

There exists no volume 0-100 the steps on (most) boxes are not that small...

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: OpenPli - How to render volume value in to the text? #3 mrvica

  • Senior Member
  • 670 posts

+37
Good

Posted 11 June 2019 - 19:42

have a look at

https://forums.openp...388-volumetext/



Re: OpenPli - How to render volume value in to the text? #4 athoik

  • PLi® Core member
  • 7,840 posts

+288
Excellent

Posted 11 June 2019 - 19:43

I'm creating own skin for E2 box which is using OpenPli 8.6 software.


OpenPLi 8.6! :)

What great news do you bring from future?
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: OpenPli - How to render volume value in to the text? #5 b@dboy

  • Member
  • 12 posts

0
Neutral

Posted 11 June 2019 - 20:46

Hahaha @athoik I'm sorry for confusion, please excuse me this is my first post. OpenPli for the box I'm working on is called 8.6 :)

That's probably named by people who adopted this software for this particular box. I'm sorry for confusing subject. I have just discovered OpenPli not long time ago, but I'm already a huge fan of this software.

Didn't realised that actual version number is much lower. 

 

@mrvica thank you so much this is what I was looking for, I will try to use this patch and see if this will work for me. 

 

Thank you guys you are amazing!



Re: OpenPli - How to render volume value in to the text? #6 b@dboy

  • Member
  • 12 posts

0
Neutral

Posted 11 June 2019 - 22:16

I have patched my /screens/volume.pyo files adding them 3 additional lines 

from Components.Label import Label
		self["VolumeText"] = Label("")
		self["VolumeText"].setText(str(vol))

so my volume patched file looks like this now:

from Screen import Screen
from Components.VolumeBar import VolumeBar
from Components.Label import Label

class Volume(Screen):
	def __init__(self, session):
		Screen.__init__(self, session)

		self.volumeBar = VolumeBar()

		self["Volume"] = self.volumeBar
		self["VolumeText"] = Label("")

	def setValue(self, vol):
		print "setValue", vol
		self.volumeBar.setValue(vol)
		self["VolumeText"].setText(str(vol))

but I'm getting the looped reboot coming from this file so I have temporarily uploaded the original volume file to check if this is the issue and yes the box is starting now so the additional line are causing some issue. 

If you can help me on this I will be super grateful guys. 

Thanks



Re: OpenPli - How to render volume value in to the text? #7 mrvica

  • Senior Member
  • 670 posts

+37
Good

Posted 12 June 2019 - 06:46

the file is harmless, try downloading it from here
https://github.com/O...reens/Volume.py
rigt click on "Raw" and "Save as"

Re: OpenPli - How to render volume value in to the text? #8 littlesat

  • PLi® Core member
  • 47,853 posts

+499
Excellent

Posted 12 June 2019 - 09:08

Didn't we already had a VolumeText label?

 

https://github.com/O...reens/Volume.py

 

Line #15

???

 

Sounds like 'fake' OpenPLi image does not has it...


Edited by littlesat, 12 June 2019 - 09:09.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: OpenPli - How to render volume value in to the text? #9 b@dboy

  • Member
  • 12 posts

0
Neutral

Posted 12 June 2019 - 11:40

Thanks guys I will give it a go one more time.

@littlesat that's not a fake image it has been adopted by someone to work with the box I have. This is not a Dreambox or VU+ box.



Re: OpenPli - How to render volume value in to the text? #10 littlesat

  • PLi® Core member
  • 47,853 posts

+499
Excellent

Posted 12 June 2019 - 11:44


 it has been adopted by someone to work with the box I have

 

That was what I meant with fake... I could better mention non genuine openpli image instead... Do you know where that someone has posted his sources/adaptions?


Edited by littlesat, 12 June 2019 - 11:44.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: OpenPli - How to render volume value in to the text? #11 b@dboy

  • Member
  • 12 posts

0
Neutral

Posted 12 June 2019 - 12:09

Yes you can download it here: https://mega.nz/#!d9...lvXm5I8ftSuG0Do

I'm sorry if this software is maybe used illegally I have no idea I thought this is open source software and any modifications are allowed. 

I'm here to not harm anyone I'm just creating my own skin:) and asking the questions in probably the best possible place.


Edited by b@dboy, 12 June 2019 - 12:12.


Re: OpenPli - How to render volume value in to the text? #12 littlesat

  • PLi® Core member
  • 47,853 posts

+499
Excellent

Posted 12 June 2019 - 12:11

This is not a location to sources.. this is a just the image.


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: OpenPli - How to render volume value in to the text? #13 WanWizard

  • Forum Moderator
    PLi® Core member
  • 46,688 posts

+766
Excellent

Posted 12 June 2019 - 12:12

That is the binary, not the image itself.

 

The problem I think Littlesat talks about, is that it is unclear from what source the image is made, what version of OpenPLi was copied, when was that done, and what modifications where made after that?


Currently in use: VU+Duo 4K (2xFBC S2), Amiko Viper T2C (T2), SAB Alpha Triple HD (S2+T2), Zgemma H3.T2C (T/C), Zgemma H6 (fallback), VU+Zero (fallback)

Many answers to your question can be found in our new and improved wiki.

note: I do not provide support via PM !

 


Re: OpenPli - How to render volume value in to the text? #14 b@dboy

  • Member
  • 12 posts

0
Neutral

Posted 12 June 2019 - 12:43

Alright thanks, Unfortunately I have no idea from what version it has been created. I know the best release has been made on 29/06/2014 so probably based on an old version which doesn't have the Volume Text applied yet. 



Re: OpenPli - How to render volume value in to the text? #15 WanWizard

  • Forum Moderator
    PLi® Core member
  • 46,688 posts

+766
Excellent

Posted 12 June 2019 - 12:47

The oldest version we still have online is OpenPLi 4: https://github.com/O.../tree/release-4, it's Volume.py is from June 7th 2014, and does not seem to have it, so perhaps your image is OpenPLi 4 based...


Currently in use: VU+Duo 4K (2xFBC S2), Amiko Viper T2C (T2), SAB Alpha Triple HD (S2+T2), Zgemma H3.T2C (T/C), Zgemma H6 (fallback), VU+Zero (fallback)

Many answers to your question can be found in our new and improved wiki.

note: I do not provide support via PM !

 


Re: OpenPli - How to render volume value in to the text? #16 b@dboy

  • Member
  • 12 posts

0
Neutral

Posted 12 June 2019 - 18:19

@mrvica thanks so much all works now, and this is great that this solution doesn't use any pixmaps. I'm really grateful for your valuable help. I must don't something wrong saving .py file. I have never used python before, but I have copied the content and saved as .py file using Notepad ++ then uploaded using FTP to my box. I will find out what I've done wrong previously but for now my problem is perfectly SOLVED thanks to you mrvica! Thanks once again. 

 

@WanWizard yest is must be OpenPli 4 then. I love this software so much, there is so many possibilities. 

 

Thanks all of you guys! 






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users