Notice: Use of undefined constant CACHE_NOCACHE - assumed 'CACHE_NOCACHE' in /var/www/nookdevs.com/htdocs/LocalSettings.php on line 87

Warning: Cannot modify header information - headers already sent by (output started at /var/www/nookdevs.com/htdocs/LocalSettings.php:87) in /var/www/nookdevs.com/htdocs/includes/WebResponse.php on line 16

Warning: Cannot modify header information - headers already sent by (output started at /var/www/nookdevs.com/htdocs/LocalSettings.php:87) in /var/www/nookdevs.com/htdocs/includes/WebResponse.php on line 16

Notice: Undefined property: SkinMonoBook::$getSkinName in /var/www/nookdevs.com/htdocs/extensions/MobileSkin/MobileSkin.body.php on line 201
Scripting - nookDevs

NookDevs.com 2.4.1 Softroot/ROM (B&N:1.4.0) has been released. Get it HERE!

Scripting

From nookDevs

Jump to: navigation, search

Installing android-scripting onto your nook with python

Make this easy on yourself. Start by connecting to adb. Next, pull the contents of your keylayout file.

./adb pull /system/usr/keylayout/s3c-button.kl . 

edit s3c-button.kl to read like the file below this will set your LEFT_NEXTPAGE button to pull up the menu and the RIGHT_PREVPAGE button to act as the system back button.

key 26    VOLUME_UP
key 34    VOLUME_DOWN
key 102   HOME              WAKE
key 58    MENU              WAKE_DROPPED
key 42    ENDCALL           WAKE_DROPPED
key 50    BACK              WAKE_DROPPED
key 105   DPAD_LEFT         WAKE_DROPPED
key 106   DPAD_RIGHT        WAKE_DROPPED
key 25    DPAD_UP           WAKE_DROPPED
key 41    DPAD_DOWN         WAKE_DROPPED
key 33    DPAD_CENTER       WAKE_DROPPED
key 116   ENDCALL			WAKE 
key 525   HOME   
key 524   MENU 
key 526   RIGHT_NEXTPAGE
key 527   RIGHT_PREVPAGE
key 143   WAKEUP			WAKE

push the file back to your nook

 ./adb push s3c-button.kl /system/usr/keylayout/s3c-button.kl

Reboot your nook.

you need to download and install the android-scripting base package ase_r15.apk

Install using the command
 ./adb install ase_r15.apk 

once the base package is installed you need to install the files for python

  1. Add ASE to your launcher menu.
  2. Connect to wifi with your nook.
  3. Locking the wifi with Wifi Locker helps maintain the connection.
  4. Run ASE
    1. Hit your menu key
    2. Select Interpreters
    3. Hit menu again
    4. Select add
    5. Install Python and whatever other languages you want.Repeat to taste.
    6. Create the directory /ase/scripts on your sdcard.
    7. You are going to want to have 19 blank files to take up the space of the eink screen, I recommend creating files _00.py through to _19.py

list of some API calls

Personal tools
Google AdSense

Warning: Cannot modify header information - headers already sent by (output started at /var/www/nookdevs.com/htdocs/LocalSettings.php:87) in /var/www/nookdevs.com/htdocs/includes/WebResponse.php on line 16

Warning: Cannot modify header information - headers already sent by (output started at /var/www/nookdevs.com/htdocs/LocalSettings.php:87) in /var/www/nookdevs.com/htdocs/includes/WebResponse.php on line 16

Warning: Cannot modify header information - headers already sent by (output started at /var/www/nookdevs.com/htdocs/LocalSettings.php:87) in /var/www/nookdevs.com/htdocs/includes/WebResponse.php on line 16

Warning: Cannot modify header information - headers already sent by (output started at /var/www/nookdevs.com/htdocs/LocalSettings.php:87) in /var/www/nookdevs.com/htdocs/includes/WebResponse.php on line 16

Warning: Cannot modify header information - headers already sent by (output started at /var/www/nookdevs.com/htdocs/LocalSettings.php:87) in /var/www/nookdevs.com/htdocs/includes/WebResponse.php on line 16