Slyk Skin Mods v5

Status
Not open for further replies.
The background is any easy fix
as the spinner has no background so your just getting that. So you could do another element with the background with the play or pause icon on it and place it one layer back.


but spinning is another question

yeah once and if it's figured out that it can spin, (which it must be possible in some way or form as we have it on the CCcam starting screen) the background could then be added in with the play/pause icons etc -- i'm doing a bit of googling on this

i found a plugin called 'permanent spinner' which if turned on will always be displayed on the screen (default is a massive moving spider - why?!! hate spiders) but you have to turn it on and off in the plugin menu and doesn't look like there's any settings to only display on certain screens; i'm not sure; it's in a foreign language by default too

if someone wants to take a look at the plugin; perhaps that could be edited as a plugin

---------- Post Merged at 04:05 PM ----------

its only a skin you can remove it and it will go back to defualt

yeah i know at first when i tried it bootlooped and then when i put back to default it was still looping so i had to switch off at the back for it to come back on - that's the first time it's happened though normally i would just undo whatever i just did and it'd come back on but this time it didn't work without switching off manually - so i'm gonna research a bit into it; i know it's just the skin but it's always a bit scary when the box doesn't boot up after you've undone what you did
 

Attachments

  • enigma2-plugin-extensions-permanentspinne_0.2-20131122-r3_mipsel.ipk.zip
    4.3 MB · Views: 19
done that so many times
i have it time out

gui boot on the h2s is around 28-32secs
if she doesnt boot after the gui and you dont get the original files back over within in the min or so. you need to power cycle


so i open google stop watch to time it out to save me running to the box
once it hits 34 seconds the original file is back on it
 
following this ive been trying also does anyone know where this code is i think it might help only guessing or the screensaver or crashlog

My Great Capture Screenshot 2016-09-18 16-13-03.jpg
 
following this ive been trying also does anyone know where this code is i think it might help only guessing or the screensaver or crashlog

i think that might be in something like plugins.pyo or usageconfig.pyo in /usr/lib/engima2/python - you can get default .py files for enigma2 on github for atv and vix

---------- Post Merged at 04:33 PM ----------

done that so many times
i have it time out

gui boot on the h2s is around 28-32secs
if she doesnt boot after the gui and you dont get the original files back over within in the min or so. you need to power cycle


so i open google stop watch to time it out to save me running to the box
once it hits 34 seconds the original file is back on it


okay i tried to create an animated PNG, which works automatically by opening it up on my laptop, just click on the file and it renders but i put it in the code for movies.xml but nothing shows up on playback of a recording so enigma2, even though it's a png, probably recognises it's not the same format as the standard png and doesn't show

i'll upload the moving png if anyone wants to have a play

ouput.png
 
is watching this thread with amusement.

you can't just call any old widget in any old screen. That widget will be defined in that particular screens py file.

you cannot call another screen in a screen.

you cannot use animated pngs or animated gifs.


Anyway... I am still stuck on toppicks. If I putty/telnet into my box and call
wget "http://www.sky.com/watch/channel/sky-living" -O living i get a file

if i put the exact same code in the shell script file I get "error getting response: connection reset by peer". I have no idea why the 2 are getting different results ... and it's doing my nut in.
 
following this ive been trying also does anyone know where this code is i think it might help only guessing or the screensaver or crashlog

BiGC0L - code is in setup.xml in /usr/share/enigma2 :

Code:
		<item level="0" text="Show animation while busy" description="Show ViX spinning logo when the system is busy.">config.usage.show_spinner</item>

i've also found in usageconfig.py :

Code:
	config.usage.show_spinner = ConfigYesNo(default = True)

and

Code:
def SpinnerOnOffChanged(configElement):		setSpinnerOnOff(int(configElement.value))
	config.usage.show_spinner.addNotifier(SpinnerOnOffChanged)

i wouldn't know myself as this is far too advanced for me, but does anyone have the faintest idea where to start for the possibility of the moving spinner on recording playback and for play/rewind/fast-forward on live tv?

it looks like on usageconfig.py that it is telling enigma2 to show the spinner when busy; so i'm assuming a piece of code could be written for the skin, to make the spinner show when play/re-wind/fast-forward buttons are pressed?

---------- Post Merged at 05:32 PM ----------

is watching this thread with amusement.

you can't just call any old widget in any old screen. That widget will be defined in that particular screens py file.

you cannot call another screen in a screen.

you cannot use animated pngs or animated gifs.


Anyway... I am still stuck on toppicks. If I putty/telnet into my box and call
wget "http://www.sky.com/watch/channel/sky-living" -O living i get a file

if i put the exact same code in the shell script file I get "error getting response: connection reset by peer". I have no idea why the 2 are getting different results ... and it's doing my nut in.

Laugh away kiddac - me + code = brain melt lol

Yes over the past few weeks I have learnt so much about how a skin works/operatates but if it's put down to a percentage i'd probably give myself about 30% / 100% - the remaining 70% being not understanding how the widgets, screens, components etc work

Would you happen to know (give the skinning side of your brain a good old rack) if there is any possibility of an additional spinner showing on screen with recording playback or when play/re-wind/fast-forward is happening? We know its possible in other screens other than the 'show animation whilst busy' because a different spinner of the same design appears when starting/restarting/stopping the softcam

I've done some googling and you're right ; there's no way of enigma2 working with a gif image (even in today's technology) and neither the png moving image

As for the toppicks shell script, I too had numerous headaches on this; when danmed released the final no matter what i did it would not work on my duo2 ; i had a lot of help from danmed but no matter what i couldn't get it to work; I then had some great help from birdman (on another forum) and now it works after much frustration; if you like I can pm you the details as I don't think I can post a link to another forum on this one (against the rules as far as I know)

Thanks
 
ive taken kiddacs advice and gave up i did a FTP search and found the same

by the way kiddac your toppicks works for me

[video=youtube;bWRRxfNcE14]https://www.youtube.com/watch?v=bWRRxfNcE14&amp;feature=youtu.be[/video]
 
Ok so after hours of trial and error. I eventually worked out how to scrape https sites on enigma2.

The answer is bloody simple in the end. *disclaimer i haven't fully tested my box after this so i have no idea if it effects anything important on your box. Now is a good time to make a backup.

The wget function on these boxes is a stripped down version with very limited use.

Now all you have to do is update wget to the latest full version.

Telnet into your box
opkg install wget

This lives in usr/bin. Would you be able to include this usr/bin/wget into an ipk i.e skin.. I do not know.

I think there is a few more steps to then recognise the ssl certificate but for now you can just use this command.
Wget --no-check-certificate "https://blah" -O yourfile
 
Last edited:
Kiddac when trying that I get -sh: Opkg: command not found

try this instead
1st code
Code:
 wget --no-check-certificate
2nd code
Code:
/usr/scripts/toppicks2.sh

Code:
Welcome to OpenViX for zgemma-h.2s
openvix 4.2 zgemma-h.2s


zgemma-h.2s login: root
Last login: Mon Sep 19 02:12:03 IST 2016 on pts/0
root@zgemma-h:~# wget --no-check-certificate
BusyBox v1.24.1 (2016-09-10 18:16:55 BST) multi-call binary.


Usage: wget [-c|--continue] [-s|--spider] [-q|--quiet] [-O|--output-document FIL                                     E]
        [--header 'header: value'] [-Y|--proxy on/off] [-P DIR]
        [-U|--user-agent AGENT] [-T SEC] URL...


Retrieve files via HTTP or FTP


        -s      Spider mode - only check file existence
        -c      Continue retrieval of aborted transfer
        -q      Quiet
        -P DIR  Save to DIR (default .)
        -T SEC  Network read timeout is SEC seconds
        -O FILE Save to FILE ('-' for stdout)
        -U STR  Use STR for User-Agent header
        -Y      Use proxy ('on' or 'off')
root@zgemma-h:~# /usr/scripts/toppicks2.sh
Connecting to www.sky.com (95.100.199.119:80)
pick1                100% |*******************************|   105k  0:00:00 ETA
Connecting to www.sky.com (95.100.199.119:80)
pick5                100% |*******************************| 78525   0:00:00 ETA
Connecting to www.zavvi.com (31.177.17.38:80)
pick2                100% |*******************************|   557k  0:00:00 ETA
Connecting to www.sky.com (95.100.199.119:80)
otherpicks           100% |*******************************|   105k  0:00:00 ETA
51
24
http://www.asset1.net.rsz.io/tv/pictures/movie/julia-2014-2014/Julia-DI-1.jpg?w=                                     378&h=244&mode=crop&format=png
Connecting to www.asset1.net.rsz.io (72.93.243.211:80)
toppicks1.png        100% |*******************************|   151k  0:00:00 ETA
59
58
http://s4.thcdn.com.rsz.io/productimg/300/300/11256790-1564392841653255.jpg?w=18                                     3&h=244&mode=crop&format=png
Connecting to s4.thcdn.com.rsz.io (72.93.243.211:80)
toppicks2.png        100% |*******************************| 78335   0:00:00 ETA
19
18
http://www.asset1.net.rsz.io/tv/pictures/movie/13-hours-the-secret-soldiers-of-b                                     enghazi-2016/13-Hours-Banghazi-DI-1.jpg?w=183&h=116&mode=crop&format=png
Connecting to www.asset1.net.rsz.io (72.93.243.211:80)
toppicks3.png        100% |*******************************| 47270   0:00:00 ETA
19
14
http://www.asset1.net.rsz.io/tv/pictures/movie/sisters-2015/Sisters-DI-1.jpg?w=1                                     83&h=116&mode=crop&format=png
Connecting to www.asset1.net.rsz.io (72.93.243.211:80)
toppicks4.png        100% |*******************************| 53940   0:00:00 ETA
7
3
http://www.asset1.net.rsz.io/tv/pictures/movie/welcome-to-me-2014/Welcome-To-Me-                                     KA-1.jpg?w=183&h=244&mode=crop&format=png
Connecting to www.asset1.net.rsz.io (72.93.243.211:80)
toppicks5.png        100% |*******************************| 95294   0:00:00 ETA
19
10
http://www.asset1.net.rsz.io/tv/pictures/movie/some-kind-of-hate-2015/Some-Kind-                                     of-Hate-DI-1.jpg?w=183&h=116&mode=crop&format=png
Connecting to www.asset1.net.rsz.io (72.93.243.211:80)
toppicks6.png        100% |*******************************| 33621   0:00:00 ETA
root@zgemma-h:~#
 
Ok so after hours of trial and error. I eventually worked out how to scrape https sites on enigma2.

The answer is bloody simple in the end. *disclaimer i haven't fully tested my box after this so i have no idea if it effects anything important on your box. Now is a good time to make a backup.

The wget function on these boxes is a stripped down version with very limited use.

Now all you have to do is update wget to the latest full version.

Telnet into your box
opkg install wget

This lives in usr/bin. Would you be able to include this usr/bin/wget into an ipk i.e skin.. I do not know.

I think there is a few more steps to then recognise the ssl certificate but for now you can just use this command.
Wget --no-check-certificate "https://blah" -O yourfile

Does this mean we're not going to get IP banned by rsz.io then?
 
The images are all sourced from http addresses and the rsz added. So rsz is fine. Certain pages (the pages we really wanted for images) were doing multiple redirects on load . This meant it was just returning errors and the wget was unable to scrape the html. The original enigma2 barebones wget couldn't handle it.

An example of a page that now works with an updated wget is
https://www.sky.com/watch/channel/sky-living

If you install the new wget it's the full version. And every wget command can be used on it link. Not just limited to 8 highlighted in Bigcols code post above.
 
The images are all sourced from http addresses and the rsz added. So rsz is fine. Certain pages (the pages we really wanted for images) were doing multiple redirects on load . This meant it was just returning errors and the wget was unable to scrape the html. The original enigma2 barebones wget couldn't handle it.

An example of a page that now works with an updated wget is
https://www.sky.com/watch/channel/sky-living

If you install the new wget it's the full version. And every wget command can be used on it link. Not just limited to 8 highlighted in Bigcols code post above.

i get ya.

---------- Post Merged at 01:10 PM ----------

The images are all sourced from http addresses and the rsz added. So rsz is fine. Certain pages (the pages we really wanted for images) were doing multiple redirects on load . This meant it was just returning errors and the wget was unable to scrape the html. The original enigma2 barebones wget couldn't handle it.

An example of a page that now works with an updated wget is
https://www.sky.com/watch/channel/sky-living

If you install the new wget it's the full version. And every wget command can be used on it link. Not just limited to 8 highlighted in Bigcols code post above.

Are you planning on incorporating this in to your skin as default or are you going to leave it as a Mod?
 
If i get it working how i want it to work i will probably release it as a seperate release. Its a bit hacky to force on everyone. In the ipk i would have to include. Cron timer. New wget. Script. Etc. Maybe people don't want that stuff
 
Last edited:
Status
Not open for further replies.
Back
Top