03-27-2014, 07:02 PM | #16 |
Member
Posts: 15
Karma: 10
Join Date: Jan 2014
Location: Germany
Device: Kindle Paperwhite 2 WiFi
|
|
03-27-2014, 07:23 PM | #17 |
Member
Posts: 15
Karma: 10
Join Date: Jan 2014
Location: Germany
Device: Kindle Paperwhite 2 WiFi
|
Sorry to bother you again. But there's one more thing I noticed:
Assuming in config.sh I have Code:
DISABLE_WIFI=1 Maybe this could be realized as follows (update.sh): Code:
# disable wireless if necessary if test 1 -eq $DISABLE_WIFI; then lipc-get-prop com.lab126.powerd status | grep "Screen Saver" && ( logger "Disabling WiFi" lipc-set-prop com.lab126.cmd wirelessEnable 0 ) fi Last edited by Hades77; 03-27-2014 at 07:29 PM. |
Advert | |
|
03-27-2014, 07:42 PM | #18 | |
Connoisseur
Posts: 74
Karma: 889004
Join Date: Mar 2014
Device: Kindle PW2
|
Quote:
I am not sure whether it makes sense to have this extension support turning wifi off only during sleep. This would not be the task of the script, but rather something new, and here it probably should be "turn wifi off after X minutes of use". Last edited by peterson; 03-27-2014 at 07:51 PM. |
|
03-27-2014, 08:03 PM | #19 |
Connoisseur
Posts: 74
Karma: 889004
Join Date: Mar 2014
Device: Kindle PW2
|
@hades77: attached is a version with support for a schedule. This has been tested a total of 5 minutes, so even though I am optimistic that it is correct, it may cause your device to explode or tell you the endings of your unread books.
EDIT: Updated file (9 hours after next post date) to better handle intervals overlapping midnight, also subsequent schedule entries that are shorter will adjust the interval accordingly. Last edited by peterson; 03-28-2014 at 04:57 AM. |
03-27-2014, 08:07 PM | #20 |
Member
Posts: 15
Karma: 10
Join Date: Jan 2014
Location: Germany
Device: Kindle Paperwhite 2 WiFi
|
Wow this was a very short plenty of days. Thank's! I'll have to test it tomorrow. Going to sleep now.
Hades. |
Advert | |
|
03-28-2014, 05:01 AM | #21 |
Connoisseur
Posts: 74
Karma: 889004
Join Date: Mar 2014
Device: Kindle PW2
|
Ah, well, I had most of the code already anyway. FYI, I uploaded a new version in my previous post to improve some things. Again, this has not been tested for a full day (d'oh!), but I guess it won't do much harm. Keep an eye on the log file (must not be stdout!) and let me know how it works.
Out of curiousity: what are you updating your screensaver every 5 minutes with? I'm getting bored already with my weather display and am thinking of freshing it up :-) Next feature in my mind: use different intervals depending on whether the device is being charged or running on battery. Probably also a nice idea for another extension where it turns wifi on/off depending on that. |
03-28-2014, 03:15 PM | #22 | |
Member
Posts: 15
Karma: 10
Join Date: Jan 2014
Location: Germany
Device: Kindle Paperwhite 2 WiFi
|
OK. I installed the new version and am now testing with the following schedule:
Code:
SCHEDULE="00:00-07:30=240 07:30-19:00=5 19:00-23:00=10 23:00-24:00=20" What I noticed today: when I set DIASABLE_WIFI=1 the Kindle goes to plane mode after updating the first time, but doesn't wake up again, i.e. I always get a timeout. But maybe the problem is in my network. Code:
Thu Mar 27 23:30:01 CEST 2014: Disabling online screensaver auto-update Fri Mar 28 07:47:38 CEST 2014: Enabling online screensaver auto-update Fri Mar 28 07:47:38 CEST 2014: Screen saver image updated Fri Mar 28 07:47:39 CEST 2014: Start waiting for timeout (300 minutes) Fri Mar 28 07:47:39 CEST 2014: Starting to wait for timeout to expire Fri Mar 28 07:52:40 CEST 2014: Finished waiting Fri Mar 28 07:52:44 CEST 2014: Screen saver image updated Fri Mar 28 07:52:44 CEST 2014: Updating image on screen Fri Mar 28 07:52:45 CEST 2014: Disabling WiFi Fri Mar 28 07:52:45 CEST 2014: Start waiting for timeout (300 minutes) Fri Mar 28 07:52:45 CEST 2014: Starting to wait for timeout to expire Fri Mar 28 07:57:47 CEST 2014: Finished waiting Fri Mar 28 07:57:47 CEST 2014: WiFi is off, turning it on now Fri Mar 28 07:58:07 CEST 2014: No connection after timeout, aborting. Fri Mar 28 07:58:07 CEST 2014: Disabling WiFi Fri Mar 28 07:58:07 CEST 2014: Start waiting for timeout (300 minutes) ... Quote:
The Kindle displays my home informations, like room temperatures, the state of my ipcam and when my baby is sleeping (see attached png). Hades. |
|
03-28-2014, 03:59 PM | #23 | ||
Connoisseur
Posts: 74
Karma: 889004
Join Date: Mar 2014
Device: Kindle PW2
|
Quote:
Quote:
|
||
03-29-2014, 09:30 AM | #24 |
Member
Posts: 15
Karma: 10
Join Date: Jan 2014
Location: Germany
Device: Kindle Paperwhite 2 WiFi
|
OK I've tested your latest version and will let it run. Everything looks very fine. Log attached.
Just wondering what that means: Code:
Full two day schedule Last edited by Hades77; 03-29-2014 at 09:32 AM. |
03-29-2014, 01:49 PM | #25 | ||
Connoisseur
Posts: 74
Karma: 889004
Join Date: Mar 2014
Device: Kindle PW2
|
Quote:
Quote:
Last edited by peterson; 03-29-2014 at 06:01 PM. |
||
03-31-2014, 03:35 AM | #26 |
Connoisseur
Posts: 74
Karma: 889004
Join Date: Mar 2014
Device: Kindle PW2
|
I've made some minor fixes and uploaded this version as 0.3 to the first post.
|
04-08-2014, 02:52 PM | #27 |
Member
Posts: 15
Karma: 10
Join Date: Jan 2014
Location: Germany
Device: Kindle Paperwhite 2 WiFi
|
Thank you!
|
05-04-2014, 11:56 AM | #28 |
Junior Member
Posts: 2
Karma: 10
Join Date: May 2014
Device: Kindle 3 Wifi
|
I've been trying to get this to work on a Kindle 3 (wifi).
But upon running the command Code:
/mnt/us/extensions/onlinescreensaver/bin/scheduler.sh & Code:
[root@kindle bin]# /mnt/us/extensions/onlinescreensaver/bin/scheduler.sh: source: line 25: config.sh: not found Thanks. |
05-04-2014, 01:20 PM | #29 |
BLAM!
Posts: 13,501
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@seeadler: You broke the config by editing it with a nasty Windows editor that doesn't honor the linebreak format?
|
05-04-2014, 02:37 PM | #30 |
Junior Member
Posts: 2
Karma: 10
Join Date: May 2014
Device: Kindle 3 Wifi
|
@NiLuJe
I just double checked and the file has the correct Unix EOLs. With my rather limited knowledge of shell scripts I was able to edit the scheduler.sh script and add the full path for both the config.sh and the utils.sh. Now the error mentioned above is gone and the script is actually running. But I'm still getting error messages: Code:
[root@kindle bin]# /mnt/us/extensions/onlinescreensaver/bin/scheduler.sh & [root@kindle bin]# Sun May 4 21:28:47 GMT+03:53 2014: Full two day schedule: 00:00-06:00=300 06:00-22:00=10 22:00-24:00=30 24:0-30:0=300 30:0-46:0=10 46:0-48:0=30 com.lab126.cmd failed to access property wirelessEnable (0x8 lipcErrNoSuchProperty) sh: -eq: argument expected Sun May 4 21:28:48 GMT+03:53 2014: Screen saver image updated Sun May 4 21:28:48 GMT+03:53 2014: Schedule 06:00-22:00=10 used, next update in 10 minutes Sun May 4 21:28:48 GMT+03:53 2014: Next update in 10 minutes /mnt/us/extensions/onlinescreensaver/bin/scheduler.sh: line 126: syntax error: 60 * |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
AZW3 Extension | fcm52 | Amazon Kindle | 6 | 09-29-2013 07:47 PM |
SSModeSwitcher: An extension to change Screensaver mode | thomass | Kindle Developer's Corner | 13 | 11-04-2012 10:31 PM |
Troubleshooting file extension | gerry7 | Amazon Kindle | 1 | 05-25-2011 07:55 AM |
Will there be another US copyright extension? | pdurrant | General Discussions | 30 | 04-08-2011 11:12 AM |
NO extension, no sugar.... | Greg Anos | Lounge | 7 | 01-16-2010 11:23 AM |