Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 11-01-2012, 06:49 AM   #1
jkgeyti
Member
jkgeyti is a marvel to beholdjkgeyti is a marvel to beholdjkgeyti is a marvel to beholdjkgeyti is a marvel to beholdjkgeyti is a marvel to beholdjkgeyti is a marvel to beholdjkgeyti is a marvel to beholdjkgeyti is a marvel to beholdjkgeyti is a marvel to beholdjkgeyti is a marvel to beholdjkgeyti is a marvel to behold
 
Posts: 17
Karma: 11628
Join Date: Oct 2012
Device: Kobo Touch
Wifi Connection on boot (touch)

Hi.

Is it possible to enable wifi (and connect to a network already stored) in order to run e.g. wget on boot (run.sh)? I am trying to make the touch fetch a new calibre news epub whenever I reboot the device.
jkgeyti is offline   Reply With Quote
Old 11-11-2012, 06:57 AM   #2
sven
Enthusiast
sven has a complete set of Star Wars action figures.sven has a complete set of Star Wars action figures.sven has a complete set of Star Wars action figures.sven has a complete set of Star Wars action figures.sven has a complete set of Star Wars action figures.
 
Posts: 39
Karma: 454
Join Date: Jul 2012
Location: Brussels
Device: Kobo Touch
Hi there,

If you already have a setup and configured network it should be sufficient to run wpa_supplicant by

Code:
wpa_supplicant -i wlan0 -D wext -c /etc/wpa_supplicant/wpa_supplicant.conf -B
wpa_supplicant is responsible for managing the wireless connection.

Since I haven't setup my Kobo Touch yet, I am going to briefly describe how I did setup the wireless manually.

1. Load the module for the wifi
Code:
# insmod /drivers/freescale/wifi/ar6000.ko
2. Verify that the module is loaded
Code:
# lsmod
3. Start wpa_supplicant (as mentioned above)
Code:
# wpa_supplicant -i wlan0 -D wext -c /etc/wpa_supplicant/wpa_supplicant.conf -B
4. Configure the network via wpa_cli in interactive mode ( A help at the wpa_cli prompt '>' will show you all available commands)
Code:
# wpa_cli
4a. Retrieve and show all available networks
Code:
> scan 
> scan_results
4b. add a new network. The resulting digit (0 in my case) indicates the new network number for the following commands
Code:
> add network
0
4c. set SSID for network
Code:
> set_network 0 ssid "Your-Network"
4d. set password phrase
Code:
> set_network 0 psk "YourPassphrase"
4e. save the new configuration
Code:
> save_config
4f. quit wpa_cli
Code:
> quit
5. Set an IP address to wlan0 adapter either static or by dhcp
5a. static IP (example)
Code:
# ifconfig wlan0 192.168.1.1
5b. dynamic
Code:
# udhcpc -i wlan0
6. For hostname to ip resolving the file /etc/resolv.conf is needed. If the file does not exist create the file with a line pointing to your nameserver in it, e.g.
Code:
nameserver 192.168.1.1
7. Add a route to kernel routing table to reach external networks
Code:
# route add -net 0.0.0.0 netmask 0.0.0.0 gw 192.168.1.1 dev wlan0
After these steps I was able to download from internet with wget command.

To have the wireless available after booting the Kobo Touch I created a script that is called during start up:
Code:
/bin/busybox insmod /drivers/freescale/wifi/ar6000.ko > /mnt/onboard/test.log
sleep 4
/bin/busybox lsmod > /mnt/onboard/test.log 
/bin/wpa_supplicant -i wlan0 -D wext -c /etc/wpa_supplicant/wpa_supplicant.conf -B > /mnt/onboard/test.log
sleep 2
/sbin/ifconfig wlan0 192.168.1.12 > /mnt/onboard/test.log 
sleep 2
/sbin/route add -net 0.0.0.0 netmask 0.0.0.0 gw 192.168.1.1 dev wlan0
/sbin/route > /mnt/onboard/test.log
The redirection in the test.log file is just for information purpose. You can omit if everything is working properly.

One issue I discovered is that nickel interferes with my batch script. The output in the log file was as expected, but
when I listed loaded modules and running threads neither the wireless module was loaded nor wpa_supplicant was running.
In dmesg log file an error during wireless module loading was indicated.
Therefore, I decided to comment out nickel in rcS file, since I do not need it anyway.

I hope my description helps you to get your wireless running after boot,

Sven
sven is offline   Reply With Quote
Old 11-11-2012, 03:20 PM   #3
ikarus9999
Connoisseur
ikarus9999 can spell AND pronounce 'liseuse.'ikarus9999 can spell AND pronounce 'liseuse.'ikarus9999 can spell AND pronounce 'liseuse.'ikarus9999 can spell AND pronounce 'liseuse.'ikarus9999 can spell AND pronounce 'liseuse.'ikarus9999 can spell AND pronounce 'liseuse.'ikarus9999 can spell AND pronounce 'liseuse.'ikarus9999 can spell AND pronounce 'liseuse.'ikarus9999 can spell AND pronounce 'liseuse.'ikarus9999 can spell AND pronounce 'liseuse.'ikarus9999 can spell AND pronounce 'liseuse.'
 
Posts: 88
Karma: 39373
Join Date: Apr 2003
Location: Austria
Device: Kobo Touch
Quote:
Originally Posted by sven View Post
Therefore, I decided to comment out nickel in rcS file, since I do not need it anyway.
Thanks for the detailed instructions.
One quick question. Why don't you need 'nickel' on your kobo?
ikarus9999 is offline   Reply With Quote
Old 11-11-2012, 06:24 PM   #4
sven
Enthusiast
sven has a complete set of Star Wars action figures.sven has a complete set of Star Wars action figures.sven has a complete set of Star Wars action figures.sven has a complete set of Star Wars action figures.sven has a complete set of Star Wars action figures.
 
Posts: 39
Karma: 454
Join Date: Jul 2012
Location: Brussels
Device: Kobo Touch
I currently try to replace nickel with a java application ( I am not a C++ guy) that at the end of the day hopefully provides some calendar, mail, note taking and, of course, reading (books and news) functionality. Through a simple plug-in mechanism this application shall be extendable with a kind of applets for further functions.

The project is still in prototype stage, but I could provide some pictures in the next few days if you would be interested.
sven is offline   Reply With Quote
Old 11-12-2012, 05:43 PM   #5
Zurga
Junior Member
Zurga began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Feb 2011
Device: Kobo Glo
Sven that is awesome! I for one would love to see some pictures of that.
Zurga is offline   Reply With Quote
Old 11-13-2012, 05:48 AM   #6
ilpestifero
Junior Member
ilpestifero began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Nov 2012
Device: Kobo Touch
Very interesting!
Screenshot please
ilpestifero is offline   Reply With Quote
Old 11-17-2012, 07:41 AM   #7
sven
Enthusiast
sven has a complete set of Star Wars action figures.sven has a complete set of Star Wars action figures.sven has a complete set of Star Wars action figures.sven has a complete set of Star Wars action figures.sven has a complete set of Star Wars action figures.
 
Posts: 39
Karma: 454
Join Date: Jul 2012
Location: Brussels
Device: Kobo Touch
Hi.
As promised a few days ago I provide some pictures of my nickel replacing Java application on my Kobo Touch.
The first one is the Home Screen.
Click image for larger version

Name:	DSC00990.JPG
Views:	191
Size:	371.0 KB
ID:	96305
The upper part of the screen shows a list of recently read books. The lower part contains icons for several "Applets", e.g. Calendar, News, Mail or Reader.

The Calendar can be displayed in a month, week or day view. One can switch through the different views by tapping on the icons at the right part of the menu bar. With a swipe to the left or to the right one can go a month, a week or a day back or forward.
Click image for larger version

Name:	DSC00993.JPG
Views:	143
Size:	373.1 KB
ID:	96306Click image for larger version

Name:	DSC00994_50.jpg
Views:	132
Size:	367.0 KB
ID:	96307

By a long tap one can create a new event, by a normal tap on an existing event one can modify the details of the event.
Click image for larger version

Name:	DSC00995_50.jpg
Views:	129
Size:	443.7 KB
ID:	96308Click image for larger version

Name:	DSC00996_50.jpg
Views:	129
Size:	414.8 KB
ID:	96309
The events are stored in a file in XCAL (XML iCal)format. I hope to implement in future a synch mechanism for my thunderbird calendar at home.

The Reading Applet shows the exiting book categories as a tag cloud considering the number of books in a particular category. Currently the category structure is file system based, that means each category is a directory in file system. That makes it easy to manipulate categories and add or remove books.
Click image for larger version

Name:	DSC00991.JPG
Views:	132
Size:	319.7 KB
ID:	96311
After a tap on a category, a list of the books in that category is diplayed to select the book to read (I haven´t finished this work yet).

The News Applet displays my favorite online news. A separate application crawls the news webpages and compiles an ePub (without advertisements and pictures).
Click image for larger version

Name:	DSC00998_50.jpg
Views:	133
Size:	392.6 KB
ID:	96313Click image for larger version

Name:	DSC00999_50.jpg
Views:	118
Size:	395.5 KB
ID:	96314

The Weather Applet is inspired by the great work of KevinShort http://www.mobileread.com/forums/sho...d.php?t=194376
Click image for larger version

Name:	DSC00992.JPG
Views:	128
Size:	339.3 KB
ID:	96310

As it can be seen on the pictures the User Interface is not consistent yet, some menu items are displayed as icons some as text. I am to date not sure what will be the best solution.
Also one can notice a lot of ghosting on the pictures, but this will be fixed in the future. All in all, there is still much room for improvement and a lot of work to be done.

Any feedback is appreciated whether the community might be interested in my replacement of nickel or whether I only develop for my purpose (then I do not have to clean up the code )
sven is offline   Reply With Quote
Old 11-17-2012, 08:01 AM   #8
Zurga
Junior Member
Zurga began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Feb 2011
Device: Kobo Glo
I really love the way it looks, simple, like an e-reader should be. The applications that you developed are just what an e-reader missed in my eyes. I would really like to try this! This makes my e-reader so much more than a reader, it provides information now.

Please start a topic here with your Nickel replacement(Copper :P).
Zurga is offline   Reply With Quote
Old 12-08-2012, 09:59 PM   #9
ryanthejuggler
Junior Member
ryanthejuggler began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Dec 2012
Device: Kobo Touch
Difficulty connecting using TLS

This may be a bit off-topic, but I'm having trouble with wpa-supplicant connecting to my university's wireless. It uses WPA-EAP TLS.

Here's my conf file:

Code:
ctrl_interface=/var/run/wpa_supplicant
update_config=1
ap_scan=1
fast_reauth=1
eapol_version=1 
network={
	ssid="WPI-Wireless"
	scan_ssid=0
	key_mgmt=WPA-EAP
	pairwise=CCMP TKIP
	group=CCMP TKIP
	eap=TLS
	mode=0
	auth_alg=OPEN
	identity="Wireless User 12-13"
	anonymous_identity="Wireless User 12-13"
	ca_cert="/home/certs/netops-ca.pem"
	ca_path="/home/certs"
	private_key="/home/certs/Wireless-User.pem"
	client_cert="/home/certs/Wireless-User.pem"
	private_key_passwd="--------"
}
When I try wpa_supplicant, I get the following:

Code:
# wpa_supplicant -dd -i wlan0 -c /home/wpa_supplicant.conf 
Initializing interface 'wlan0' conf '/home/wpa_supplicant.conf' driver 'default' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/home/wpa_supplicant.conf' -> '/home/wpa_supplicant.conf'
Reading configuration file '/home/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
update_config=1
ap_scan=1
fast_reauth=1
eapol_version=1
Line: 6 - start of a new network block
ssid - hexdump_ascii(len=12):
     57 50 49 2d 57 69 72 65 6c 65 73 73               WPI-Wireless    
scan_ssid=0 (0x0)
key_mgmt: 0x1
pairwise: 0x18
group: 0x18
eap methods - hexdump(len=16): 00 00 00 00 0d 00 00 00 00 00 00 00 00 00 00 00
mode=0 (0x0)
auth_alg: 0x1
identity - hexdump_ascii(len=19):
     57 69 72 65 6c 65 73 73 20 55 73 65 72 20 31 32   Wireless User 12
     2d 31 33                                          -13             
anonymous_identity - hexdump_ascii(len=19):
     57 69 72 65 6c 65 73 73 20 55 73 65 72 20 31 32   Wireless User 12
     2d 31 33                                          -13             
ca_cert - hexdump_ascii(len=25):
     2f 68 6f 6d 65 2f 63 65 72 74 73 2f 6e 65 74 6f   /home/certs/neto
     70 73 2d 63 61 2e 70 65 6d                        ps-ca.pem       
ca_path - hexdump_ascii(len=11):
     2f 68 6f 6d 65 2f 63 65 72 74 73                  /home/certs     
private_key - hexdump_ascii(len=29):
     2f 68 6f 6d 65 2f 63 65 72 74 73 2f 57 69 72 65   /home/certs/Wire
     6c 65 73 73 2d 55 73 65 72 2e 70 65 6d            less-User.pem   
client_cert - hexdump_ascii(len=29):
     2f 68 6f 6d 65 2f 63 65 72 74 73 2f 57 69 72 65   /home/certs/Wire
     6c 65 73 73 2d 55 73 65 72 2e 70 65 6d            less-User.pem   
private_key_passwd - hexdump_ascii(len=8): [REMOVED]
Priority group 0
   id=0 ssid='WPI-Wireless'
SIOCGIWRANGE: WE(compiled)=22 WE(source)=13 enc_capa=0x0
  capabilities: key_mgmt 0x0 enc 0x3 flags 0x0
netlink: Operstate: linkmode=1, operstate=5
Own MAC address: a0:0b:ba:6c:e4:48
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_countermeasures
RSN: flushing PMKID list in the driver
Setting scan request: 0 sec 100000 usec
WPS: UUID based on MAC address - hexdump(len=16): b1 7d 94 e4 f5 d4 58 7e 96 91 fc c6 c2 5a 51 2f
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: Supplicant port status: Unauthorized
EAPOL: Supplicant port status: Unauthorized
Added interface wlan0
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Trying to get current scan results first without requesting a new scan to speed up initial association
Received 4096 bytes of scan results (8 BSSes)
BSS: Start scan result update 1
BSS: Add new id 0 BSSID 78:19:f7:77:8b:82 SSID 'WPI-Wireless'
BSS: Add new id 1 BSSID 78:19:f7:78:42:82 SSID 'WPI-Wireless'
BSS: Add new id 2 BSSID 78:19:f7:73:44:c2 SSID 'WPI-Wireless'
BSS: Add new id 3 BSSID 00:16:ca:32:7f:c0 SSID 'WPI-Wireless'
BSS: Add new id 4 BSSID 66:6d:57:68:63:57 SSID 'Connectify-wxs'
BSS: Add new id 5 BSSID 78:19:f7:77:8b:80 SSID 'WPI-Guest'
BSS: Add new id 6 BSSID 78:19:f7:78:42:80 SSID 'WPI-Guest'
BSS: Add new id 7 BSSID 78:19:f7:73:44:c0 SSID 'WPI-Guest'
New scan results available
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 78:19:f7:77:8b:82 ssid='WPI-Wireless' wpa_ie_len=0 rsn_ie_len=20 caps=0x11
   selected based on RSN IE
   selected WPA AP 78:19:f7:77:8b:82 ssid='WPI-Wireless'
Trying to associate with 78:19:f7:77:8b:82 (SSID='WPI-Wireless' freq=2412 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
Overriding auth_alg selection: 0x1
RSN: using IEEE 802.11i/D9.0
WPA: Selected cipher suites: group 16 pairwise 16 key_mgmt 1 proto 2
WPA: clearing AP WPA IE
WPA: set AP RSN IE - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 01 00 00
WPA: using GTK CCMP
WPA: using PTK CCMP
WPA: using KEY_MGMT 802.1X
WPA: Set own WPA IE default - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 01 00 00
No keys have been configured - skip key clearing
State: DISCONNECTED -> ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
netlink: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_associate
wpa_driver_wext_set_drop_unencrypted
wpa_driver_wext_set_psk
^Cioctl[SIOCSIWESSID]: Interrupted system call
Association request to the driver failed
Setting authentication timeout: 5 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - EAP fail=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - portControl=Auto
EAPOL: Supplicant port status: Unauthorized
CTRL-EVENT-TERMINATING - signal 2 received
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b04 len=12
Removing interface wlan0
No keys have been configured - skip key clearing
State: ASSOCIATING -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
netlink: Operstate: linkmode=-1, operstate=5
EAPOL: External notification - portEnabled=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - portValid=0
EAPOL: Supplicant port status: Unauthorized
wpa_driver_wext_set_countermeasures
No keys have been configured - skip key clearing
BSS: Remove id 0 BSSID 78:19:f7:77:8b:82 SSID 'WPI-Wireless'
BSS: Remove id 1 BSSID 78:19:f7:78:42:82 SSID 'WPI-Wireless'
BSS: Remove id 2 BSSID 78:19:f7:73:44:c2 SSID 'WPI-Wireless'
BSS: Remove id 3 BSSID 00:16:ca:32:7f:c0 SSID 'WPI-Wireless'
BSS: Remove id 4 BSSID 66:6d:57:68:63:57 SSID 'Connectify-wxs'
BSS: Remove id 5 BSSID 78:19:f7:77:8b:80 SSID 'WPI-Guest'
BSS: Remove id 6 BSSID 78:19:f7:78:42:80 SSID 'WPI-Guest'
BSS: Remove id 7 BSSID 78:19:f7:73:44:c0 SSID 'WPI-Guest'
Cancelling scan request
Cancelling authentication timeout
netlink: Operstate: linkmode=0, operstate=6

Last edited by ryanthejuggler; 12-08-2012 at 09:59 PM. Reason: removed password
ryanthejuggler is offline   Reply With Quote
Old 03-17-2013, 04:22 PM   #10
njpollard
Junior Member
njpollard began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Feb 2013
Device: Kobo Mini
If anyone is trying to automatically connect wifi at startup on the Kobo Mini, I found the following script on a Japanese website:

Code:
#!/bin/sh 
insmod /drivers/ntx508/wifi/sdio_wifi_pwr.ko 
insmod /drivers/ntx508/wifi/dhd.ko 
sleep 2 
ifconfig eth0 up 
wlarm_le -i eth0 up 
wpa_supplicant -s -i eth0 -c /etc/wpa_supplicant/wpa_supplicant.conf -C /var/run/wpa_supplicant -B 
udhcpc -S -i eth0 -s /etc/udhcpc.d/default.script -t15 -T10 -A3 -f -q
Hope this is of help to some people.

Source:
http://itpro.nikkeibp.co.jp/article/...42/?ST=oss&P=2
njpollard is offline   Reply With Quote
Old 03-29-2013, 03:20 PM   #11
lsmod
Member
lsmod began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Mar 2013
Device: Kobo Touch
Hello Sven,

is there any further progress in your genius project now?
This looks very good!
lsmod is offline   Reply With Quote
Old 05-01-2013, 03:33 PM   #12
z000ao8q
Enthusiast
z000ao8q shares his or her toysz000ao8q shares his or her toysz000ao8q shares his or her toysz000ao8q shares his or her toysz000ao8q shares his or her toysz000ao8q shares his or her toysz000ao8q shares his or her toysz000ao8q shares his or her toysz000ao8q shares his or her toysz000ao8q shares his or her toysz000ao8q shares his or her toys
 
Posts: 49
Karma: 5942
Join Date: May 2013
Device: kobo mini
Hello,
for me the japanese part works as-is - but nickel needs to be down.
I went a step further and also shut down the whole wifi interface again after I don´t use it anymore.

Quote:
#!/bin/sh
killall wpa_supplicant
wlarm_le -i eth0 down
ifconfig eth0 down
rmmod dhd
rmmod sdio_wifi_pwr
My setup is based on an hourly cron job (during the day) with
  1. starts Wifi
  2. call an image generator php-script on my NAS
  3. downloades the ready-converted raw.gz
  4. shutdown wifi

The battery is now up for almost 1 week already - I still need to do a precise runtime measurement.

I am using this to read various temperature sensors in the house + a forecast from wunderground.com
The complete setup is being shown here

Last edited by z000ao8q; 05-01-2013 at 03:36 PM.
z000ao8q is offline   Reply With Quote
Old 05-01-2013, 04:04 PM   #13
KevinShort
Addict
KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.KevinShort can program the VCR without an owner's manual.
 
KevinShort's Avatar
 
Posts: 342
Karma: 165069
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
Quote:
Originally Posted by z000ao8q View Post
I am using this to read various temperature sensors in the house + a forecast from wunderground.com
The complete setup is being shown here
Pretty nice, might I ask what command you are using to generate the raw image for the Kobo?
KevinShort is offline   Reply With Quote
Old 05-02-2013, 06:33 AM   #14
andyh2000
Fanatic
andyh2000 ought to be getting tired of karma fortunes by now.andyh2000 ought to be getting tired of karma fortunes by now.andyh2000 ought to be getting tired of karma fortunes by now.andyh2000 ought to be getting tired of karma fortunes by now.andyh2000 ought to be getting tired of karma fortunes by now.andyh2000 ought to be getting tired of karma fortunes by now.andyh2000 ought to be getting tired of karma fortunes by now.andyh2000 ought to be getting tired of karma fortunes by now.andyh2000 ought to be getting tired of karma fortunes by now.andyh2000 ought to be getting tired of karma fortunes by now.andyh2000 ought to be getting tired of karma fortunes by now.
 
andyh2000's Avatar
 
Posts: 567
Karma: 1568694
Join Date: Apr 2009
Location: UK
Device: Samsung Galaxy S4 Mini phone / Kindle 4 Black / Kindle Paperwhite
Quote:
Originally Posted by z000ao8q View Post
Hello,
...
My setup is based on an hourly cron job (during the day) with
  1. starts Wifi
  2. call an image generator php-script on my NAS
  3. downloades the ready-converted raw.gz
  4. shutdown wifi
...
That's brilliant being able to get the wifi up and down on demand. I shall have to try that myself.

And can we see a photo of the device in action?

Andrew
andyh2000 is offline   Reply With Quote
Old 05-02-2013, 01:59 PM   #15
z000ao8q
Enthusiast
z000ao8q shares his or her toysz000ao8q shares his or her toysz000ao8q shares his or her toysz000ao8q shares his or her toysz000ao8q shares his or her toysz000ao8q shares his or her toysz000ao8q shares his or her toysz000ao8q shares his or her toysz000ao8q shares his or her toysz000ao8q shares his or her toysz000ao8q shares his or her toys
 
Posts: 49
Karma: 5942
Join Date: May 2013
Device: kobo mini
hello,

this is how it currently looks like (the battery level on right-top)


regarding the php-script:
  • basically its creating an image
  • filling it with e.g. a lot of imagettftext
  • rotating it
  • saving it
  • and executing a shell command to convert it

Quote:
$im = ImageCreate (800, 600);
......
$rotate = ImageCreate (600, 800);
$rotate = imagerotate($im, 90 ,0);
imagepng($rotate, "kobo.png");
$convert = shell_exec("sh ./kobo.sh");
the shell script (on QNAP) is:
Quote:
/mnt/ext/opt/medialibrary/bin/ffmpeg -i kobo.png -vf transpose=2 -f rawvideo -pix_fmt rgb565 -s 800x600 -y kobo.raw < /dev/null
gzip -c kobo.raw > kobo.raw.gz

Last edited by z000ao8q; 05-09-2013 at 07:12 AM.
z000ao8q is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kindle Touch: execute script when wifi connection is established atordo Kindle Developer's Corner 5 07-13-2012 06:06 AM
Connection problem on dual boot Nook Color pops1959 Barnes & Noble NOOK 0 02-03-2012 06:27 PM
Did anyone succeed to boot the Wifi from SD card? How? Cyberman tM Kobo Reader 6 07-26-2011 05:20 AM
Touch Nook Touch WiFi won't connect after "forgetting" connection config el34han Nook Developer's Corner 0 07-16-2011 03:35 PM
Classic Unrooting my Nook Wifi lost Wifi connection: unable to save the hotspot SnerdlyBosco Nook Developer's Corner 2 03-08-2011 09:17 AM


All times are GMT -4. The time now is 09:35 PM.


MobileRead.com is a privately owned, operated and funded community.