View Single Post
Old 12-20-2016, 01:36 PM   #16
notimp
Addict
notimp ought to be getting tired of karma fortunes by now.notimp ought to be getting tired of karma fortunes by now.notimp ought to be getting tired of karma fortunes by now.notimp ought to be getting tired of karma fortunes by now.notimp ought to be getting tired of karma fortunes by now.notimp ought to be getting tired of karma fortunes by now.notimp ought to be getting tired of karma fortunes by now.notimp ought to be getting tired of karma fortunes by now.notimp ought to be getting tired of karma fortunes by now.notimp ought to be getting tired of karma fortunes by now.notimp ought to be getting tired of karma fortunes by now.
 
Posts: 248
Karma: 892441
Join Date: Jul 2010
Device: K2i
Quote:
Originally Posted by knc1 View Post
Quote:
Originally Posted by notimp View Post
Not sure if possible - but, could you have your script activate the Kindles Wifi (- Kindle then auto connects) on start, and deactivate it again once sync is finished? It would be neat to have that functionality. Those extra steps become quite tedious after a while..
There are lipc commands for those purposes that probably could be included in the script.

Give it a try and let us know.
Made it work.

Replace the "synchronize" line in the menu.json file with:

Code:
{"name": "[ Synchronize ]", "priority": 1, "action": "lipc-set-prop com.lab126.cmd wirelessEnable 1 && sleep 7 && /mnt/us/python/bin/python2.7 /mnt/us/extensions/dropbox/bin/dbcli.py && lipc-set-prop com.lab126.cmd wirelessEnable 0"},
Its a little unsophisticated, but it works.

If trap000d some day would want to work on a better implementation, I'd not be opposed to that.

Also thank you @knc1 for pointing me in the right direction.
notimp is offline   Reply With Quote