Hi, All, hoping somebody can help me here
I have been trying this all day!
I and a few friends have created a home page screen which puts it in the place of the bouquet selector (show bouquet on launch) so instead of getting a list of all the bouquets, we get this :
1_0_1_1656_7E5_2_11A0000_0_0_0.jpg
Now, although this looks similar to official sly's homepage for their box, we're not in any way trying to clone the official sly completely, just experimenting with the possibilities of e2 and see how far we can push the GUI and still have it running as it should - it's just a project (note : the images on the screen are visual only - you can't go into them - only function is 'ok' and this takes you to the graphical EPG)
creating this mod hasn't been a problem, and as far as testing it out, it works flawlessly
We decided after creating this mod to try and create a shell script to work with a cron timer on the box to pull images automatically from the web
Well it works, but there are a few issues, mainly only for me grr! i've tried so many things and hoping someone can help me here
At first, the shell script didn't work ; so we used a python file instead to pull a set of images from github and work with the cron timer ; when the cron timer runs, it automatically downloads the images and overwrites existing ones on the box; and it works - to get it to work a python script was created and placed in the filesystem, then it was just a case of creating a cron timer to point to that location e.g. /usr/bin/python /usr/script/toppicks.py
the only problem we are finding with this is that it's not a fully automated solution - in order to change the images and keep them updating to other images, they need to be changed on github by one of us - making it automatic for those using it, but not for the person who has to manually update the images every so often
Today there was a bit of a breakthrough though, it was re-visited and a shell script was created to pull images from an online source which is automatically and regularly updated/changed
to get this to work, the new shell script was placed in the filesystem , then a new cron timer was added to enable the automatic downloads and updates of the screen
Now the problem I have, it's not working for me, although a few of the guys who helped make this possible it is working for them, and i have done exactly the same as them
everything is in the right place, but when i telnet into the box and run the command /usr/script/toppicks2.sh - i get the error "not found" , so instead i tried the command cd /usr/script and then tried ./toppicks2.sh - still "not found" , I then tried /bin/sh /usr/script and i got :
: not found.sh: line 4:
Connecting to www.*****.com (104.65.19.97:80)
htmlpage 100% |*******************************| 105k 0:00:00 ETA
: not found.sh: line 7:
cat: can't open 'htmlpage': No such file or directory
: not found.sh: line 10:
: not found.sh: line 12:
sed: links.txt: No such file or directory
?w=400&h=240&mode=stretch&format=png
'get: bad address '
: not found.sh: line 20:
sed: links.txt: No such file or directory
'get: bad address '
: not found.sh: line 27:
sed: links.txt: No such file or directory
'get: bad address '
: not found.sh: line 34:
sed: links.txt: No such file or directory
'get: bad address '
: not found.sh: line 41:
sed: links.txt: No such file or directory
'get: bad address '
now we know this works, because most others who know what they're doing and have tried it, it's a success, it downloads the images, overwrites the current ones and displays them
I don't know what else to try , I have definitely chmod the files for execution and the path to the relevant files is definitely right, cron jobs are correct currently set up to run daily however by putting the command in telnet that should run it there and then.
Does anybody have any advice? What could I be doing wrong
Is it possible my root filesystem needs to be updated or is there a github source where i could re-install busybox-cron if needed or the sh located in /bin
Thanks in advance for any help, much appreciated