Topic: accessing device name from widget?

is there a way to access the registered device name from within a widget (via actionscript)?  what about through a python script running on the device?

thank you.

Re: accessing device name from widget?

Reference this page if you are developing in as2 or this page if in as3.

Re: accessing device name from widget?

thanks, is any of that accessible from the shell?

Re: accessing device name from widget?

The values are passed to the app from the Control Panel.   ChumbyNative functions (as2 only) would allow you to create a /tmp file that could then be read but I believe file creation is a privileged operation that only the Control Panel is allowed to do.  Otherwise I think you would need to somehow have your app post the values somewhere external to the device and then have your scripts read from there.