kolossos4730 wrote: 
> Steen, Greg, Ralphy,
> 
> Thanks for the piCorePlayer update and for including my VU meter!
> 
> Attached is my first attempt at writing a Lua applet specific for
> piCorePlayer/JiveLite. On my system everything works as intended, but I
> cannot give any guarantees this will not destroy your system ;)
> 
> The included folder needs to be copied to
> /home/tc/.jivelite/userpath/applets directory and the permissions
> changed to owner root and group staff. Easiest way (at least for me) is
> to use WinSCP to copy the folder to /home/tc/ folder and then in putty,
> using sudo su, copy/move this folder to the applets folder. Then save
> the changes to SD card with filetool.sh -b so they survive a reboot.
> 
> After a reboot this applet should add a piCorePlayer menu option on the
> settings screen with the following options:
> 
> The Reboot piCorePlayer and Shutdown piCorePlayer options start a 5
> second timer. If you touch the screen or press a button on the remote
> within these 5 seconds, the action gets canceled. The Save settings to
> SD card executes the filetool.sh -b command.
> 
> Of course this menu could be easily extended to include further options
> (e.g. execute shell script to toggle GPIO connected devices)
> 
> Regards,
> 
> Arie

hi kolossos4730,

Very nice. ;) Saved us a lot of work.

As a possible option?

Included in pCP1.22 we have added a pCP CLI with a few basic command. If
you type # pcp you will get a list of commands.

So instead of using piCore commands it is slightly better if you call
the pCP version. We have done this to simply coding, make things a
little more consistent and in some circumstances we have found little
issues that we have overcome. So instead of "sudo filetool.sh -b" use
"pcp bu".

Unfortunately, I put pcp CLI in /home/tc/.local/bin so jivelite doesn't
have pcp in its path, so you will need to prefix pcp with
/home/tc/.local/bin/.  I will move it to a more general bin directory
next release.


Code:
--------------------
    os.execute("/home/tc/.local/bin/pcp rb")
  os.execute("/home/tc/.local/bin/pcp sd")
  os.execute("/home/tc/.local/bin/pcp bu")
--------------------


This pCP CLI is intended to make it easy to call common pCP functions
from the command line and also for use in non piCorePlayer scripts.

Thanks
Greg


------------------------------------------------------------------------
Greg Erskine's Profile: http://forums.slimdevices.com/member.php?userid=7403
View this thread: http://forums.slimdevices.com/showthread.php?t=97803

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to