It's all clear. But what about USB disk, Virt.USB and DLNA-sources ?zoelechat wrote:... Every external source already have a direct existing key to access it, it's just needed to search a bit..
[App] libRunWidget D/E/F/H
Re: [App] libRunWidget D/E/F/H
TV: Samsung UE40F6330AK (FW: T-MST12DEUC-1119.0 2014-02-22 / SamyGO) + HDD 1Tb 2,5" (TOSHIBA MQ01ABD1);
TV: Philips 26PF4311 + Cable TV Receiver LATEL LC-808HD (with NFS client, DLNA - n/a, Samba - n/a);
Router: Netgear WNDR3800 (FW: OpenWrt Attitude Adjustment 12.09-beta2) + HDD 1Tb 2,5" (SEAGATE Expansion STBX1000201) (with NFS,DLNA and Samba servers).
TV: Philips 26PF4311 + Cable TV Receiver LATEL LC-808HD (with NFS client, DLNA - n/a, Samba - n/a);
Router: Netgear WNDR3800 (FW: OpenWrt Attitude Adjustment 12.09-beta2) + HDD 1Tb 2,5" (SEAGATE Expansion STBX1000201) (with NFS,DLNA and Samba servers).
Re: [App] libRunWidget D/E/F/H
Run allshare/samsung link widget
I do NOT receive any PM. Please use forum.
Re: [App] libRunWidget D/E/F/H
Not suitable. I need direct access to specific source. Otherwise it will not differ from "Source-Right-Right-..-Right-Ok"zoelechat wrote:Run allshare/samsung link widget
TV: Samsung UE40F6330AK (FW: T-MST12DEUC-1119.0 2014-02-22 / SamyGO) + HDD 1Tb 2,5" (TOSHIBA MQ01ABD1);
TV: Philips 26PF4311 + Cable TV Receiver LATEL LC-808HD (with NFS client, DLNA - n/a, Samba - n/a);
Router: Netgear WNDR3800 (FW: OpenWrt Attitude Adjustment 12.09-beta2) + HDD 1Tb 2,5" (SEAGATE Expansion STBX1000201) (with NFS,DLNA and Samba servers).
TV: Philips 26PF4311 + Cable TV Receiver LATEL LC-808HD (with NFS client, DLNA - n/a, Samba - n/a);
Router: Netgear WNDR3800 (FW: OpenWrt Attitude Adjustment 12.09-beta2) + HDD 1Tb 2,5" (SEAGATE Expansion STBX1000201) (with NFS,DLNA and Samba servers).
-
- SamyGO Project Donor
- Posts: 161
- Joined: Sun May 03, 2015 6:11 am
Re: [App] libRunWidget D/E/F/H
I use your provided 'rcRemap_runWidget_EF' and it works great.
I use following libRCremap.config:
And whenever I press my KEY_PLAY, my widget runs successfully.
But I need more flexibility, I need to run my widget whenever my TV power on. How can I do?
Actully I fear to edit 99_95_RCremap.init file! Please as always help me to find my way.
I use following libRCremap.config:
Code: Select all
[
{
"KEY_VOLUP": "KEY_VOLUP"
},
{
"KEY_PLAY": "CMD:/mnt/opt/privateer/usr/bin/rcRemap_runWidget_EF"
}
]
But I need more flexibility, I need to run my widget whenever my TV power on. How can I do?
Actully I fear to edit 99_95_RCremap.init file! Please as always help me to find my way.
Re: [App] libRunWidget D/E/F/H
Just add injection command to any startup script start) case:
Or create a dedicated startup from another (change lib name and args, that's all )
You can even simply rename rcRemap_runWidget_EF script to something.init and put it in /mnt/etc/init.d (don't forget chmod +x !!)
Code: Select all
samyGOso -d -A -B -l /mnt/opt/privateer/usr/libso/libRunWidget.so ID:widgetID
You can even simply rename rcRemap_runWidget_EF script to something.init and put it in /mnt/etc/init.d (don't forget chmod +x !!)
I do NOT receive any PM. Please use forum.
-
- SamyGO Project Donor
- Posts: 161
- Joined: Sun May 03, 2015 6:11 am
Re: [App] libRunWidget D/E/F/H
Very simple and effective way. What about numbers like '99_95' at beginning of .init files? Is it about execution order?Or create a dedicated startup from another (change lib name and args, that's all
How can I make sure all init files are executed before running my widget? (I need to run my widget as late as possible in init file execution order)
You mean, Every .init file with any name will execute at run time?! Sounds great.
Last edited by smart_lover on Mon Jul 20, 2015 12:07 pm, edited 1 time in total.
Re: [App] libRunWidget D/E/F/H
Yes, scripts are executed alphabetically, and any /mnt/etc/*.init having execution rights will be executed on startup , so if you want script to be executed as last, call it for example 99_99_zzzRunWidget.init or even use letters which are sequentially after numbers.
I do NOT receive any PM. Please use forum.
-
- SamyGO Project Donor
- Posts: 161
- Joined: Sun May 03, 2015 6:11 am
Re: [App] libRunWidget D/E/F/H
It executed at the right place during startup. Thanks for your great help.zoelechat wrote:Yes, scripts are executed alphabetically, and any /mnt/etc/*.init having execution rights will be executed on startup , so if you want script to be executed as last, call it for example 99_99_zzzRunWidget.init or even use letters which are sequentially after numbers.
-
- SamyGO Project Donor
- Posts: 161
- Joined: Sun May 03, 2015 6:11 am
Re: [App] libRunWidget D/E/F/H
I've no experience with sh!zoelechat wrote:Yes, scripts are executed alphabetically, and any /mnt/etc/*.init having execution rights will be executed on startup , so if you want script to be executed as last, call it for example 99_99_zzzRunWidget.init or even use letters which are sequentially after numbers.
I need to do following steps in below .init file:
1:first if there is no MyWidget folder in /mtd_rwcommon/widgets/normal/MyWidget then copy entire content of folder(and of course create MyWidget folder) to /mtd_rwcommon/widgets/normal/MyWidget from /dtv/usb/sda1/MyWidget
2:Run MyWidget
Code: Select all
#!/bin/sh
. /dtv/SGO.env
SODIR=$SYSROOT/opt/privateer/usr/libso # D/E only, on F/H environment LIBSO_DIR is used
stop_bootloop()
{
for USB in /dtv/usb/sd* ; do
echo "checking $USB"
[ -e $USB/STOP ] && echo "STOP found. Script exit..." && exit 1
done
}
case $1 in
start)
stop_bootloop
[ "$LIBSO_DIR" ] && SODIR=$LIBSO_DIR
samyGOso -d -A -B -l $SODIR/libRunWidget.so ID:MyWidget
;;
stop)
;;
status)
[ -f /dtv/RunWidget.log ] && cat /dtv/RunWidget.log || echo "Not started"
;;
*)
echo "Usage: $0 {start|stop|status}" 1>&2
exit 0
;;
esac
thanks as always for your great help and tips in advance.