The Following 3 Users Say Thank You to switch-hitter For This Useful Post: | ||
|
2016-10-24
, 18:24
|
|
Posts: 1,338 |
Thanked: 1,055 times |
Joined on Oct 2009
@ California, USA / Jordan
|
#2
|
|
2017-11-28
, 12:32
|
Posts: 100 |
Thanked: 307 times |
Joined on Jan 2015
@ Argentina
|
#3
|
Python 3.6.3 (default, Oct 6 2017, 07:46:32) [GCC 4.2.1 Compatible Android Clang 5.0.300080 ] on linux Type "help", "copyright", "credits" or "license" for more information.
$ python -m SimpleHTTPServer /data/data/com.termux/files/usr/bin/python: No module named SimpleHTTPServer
$ paplay C4.wav W: [pulseaudio] caps.c: Normally all extra capabilities would be dropped now, but that's impossible because PulseAudio was built without capabilities support.
The Following User Says Thank You to maegon9y00 For This Useful Post: | ||
|
2017-11-28
, 13:21
|
|
Posts: 3,141 |
Thanked: 8,161 times |
Joined on Feb 2013
@ From my Gabriola Island hermitage, near the Edge of the World
|
#4
|
The Following User Says Thank You to endsormeans For This Useful Post: | ||
|
2017-11-28
, 13:30
|
Posts: 100 |
Thanked: 307 times |
Joined on Jan 2015
@ Argentina
|
#5
|
$ sleep 600; espeak "hey buddy, 10 minutes of nap is enough. Go back to work now"
|
2017-11-28
, 13:45
|
Posts: 54 |
Thanked: 208 times |
Joined on Oct 2011
@ Brazil
|
#6
|
But it doesn't have the SimpleHTTPServer module
Any idea how to get/add this module?Code:$ python -m SimpleHTTPServer /data/data/com.termux/files/usr/bin/python: No module named SimpleHTTPServer
$ apt install python2 $ python2 -m SimpleHTTPServer
The Following 3 Users Say Thank You to brunelli For This Useful Post: | ||
|
2017-11-28
, 14:02
|
Posts: 100 |
Thanked: 307 times |
Joined on Jan 2015
@ Argentina
|
#7
|
python2 -m SimpleHTTPServer Serving HTTP on 0.0.0.0 port 8000 ...
The Following User Says Thank You to maegon9y00 For This Useful Post: | ||
|
2017-11-29
, 00:15
|
|
Posts: 387 |
Thanked: 1,700 times |
Joined on Feb 2010
@ Cambridge, MA, USA
|
#8
|
What I really want is to use terminal as I use it in n900.
my purpose is use the espeak in the way worked on n900.
You could set a simple reminder like
This kind of use i am pointing in. But actually, espeakCode:$ sleep 600; espeak "hey buddy, 10 minutes of nap is enough. Go back to work now"
Doesn't make a sound in termux
$ sleep 600; espeak -w temp.wav "hey buddy, 10 minutes of nap is enough. Go back to work now";play-audio temp.wav;rm temp.wav
The Following User Says Thank You to Ken-Young For This Useful Post: | ||
|
2017-11-29
, 00:44
|
Posts: 100 |
Thanked: 307 times |
Joined on Jan 2015
@ Argentina
|
#9
|
Once you've installed Termux you can open it and run:
$ apt install python
to install Python 3.5. I think Ruby, Lua and others are also available.
Installing Termux:API gives you CLI utilities with the ability to access device capabilities like camera, gps, sms, etc... I haven't tested it yet but I think you should be able to access these from your Python scripts using subprocess / shlex.
Both of the above are free and there's an additional modestly priced app, Termux:Widget, that adds a widget to your homescreen that you can use to provide shortcuts to your scripts.