From: "Sven Bretfeld" <sven.bretfeld@gmx.ch>
To: Matthew Jones <bsdmatburt@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: MobileOrg and Voice Capturing (Android)
Date: 7 Dec 2010 11:05:45 +0100 [thread overview]
Message-ID: <87sjy9oq2u.fsf@gmx.ch> (raw)
In-Reply-To: <AANLkTimjNVTkTrNgMphD6iwU+G5a55wVzuv2fNrKTNQ5@mail.gmail.com> (Matthew Jones's message of "Fri, 3 Dec 2010 00:02:02 -0500")
Hi Matthew
Matthew Jones <bsdmatburt@gmail.com> writes:
> Alright guys, I've gotten this to work.... I've posted an early build of
> MobileOrg that supports this here:
>
> http://matburt.net/files/mobileorg-debug.apk
>
> basically, you need to emit the action: com.matburt.mobileorg.CAPTURE
>
> it takes an "extra" intent value called "txtValue" which will pre-populate the
> text display.
I was using the script for some days now and did all my capturing this
way. It is completely stable and reliable on my HTC Magic with Android
1.6. I see no hindrance for a release.
> import android
> droid = android.Android()
> message = droid.recognizeSpeech("Capture New Note").result
> a = droid.startActivity("com.matburt.mobileorg.CAPTURE", None, None,
> {'txtValue':message}, False)
Is there a way to enlarge the 'extra' intent with some standard string?
It would be nice to have a TODO keyword and a TAG inserted
automatically. If you are like me, you tend to forget refiling the items
of from-mobile.org regularly. An automatic TAG insertion could help to
remind yourself that there is something new that needs to be cared
about. I use to give a TAG :MIT: (Most Important Things [of the day])
and have a respective Agenda View that I review several times a day. If
newly captured items could appear in this list, I would never forget
about the newly captured tasks. To my regret, I don't know anything
about Python and its syntax, but I'm sure that the 'message' variable
can be extended easily (what I have tried did never work).
As a workaround I have written a simple shellscript for a Cronjob that
starts Conky whenever there is something new in from-mobile.org. So my
desktop reminds me to refile the new items. Maybe it is of some interest
for anybody, so I give it below.
Thanks again for your nice work.
Greetings,
Sven
Here is the Script. Some values and paths have to be replaced to fit
your needs:
--8<---------------cut here---------------start------------->8---
#!/bin/bash
KILLNR="$(ps ax | grep "conky -c .*conkyrc-mobile" | grep -v grep | sed 's/ pts.*//g')"
NEWTASK="$(cat /home/sven/Dropbox/myconf/from-mobile.org | grep -v auto-revert | grep -v ^$ | grep -v 20[0-9][0-9])"
if [ -n "$NEWTASK" ];
then
if [ -n "$KILLNR" ];
then
exit
# echo "file is full, conky is running"
else
conky -c ~/.conkyrc-mobile &
# echo "file is full, conky is not running"
fi
else
if [ -n "$KILLNR" ];
then
kill $KILLNR
# echo "file is empty, conky is running"
else
exit
# echo "file is empty, conky is not running"
fi
fi
--8<---------------cut here---------------end--------------->8---
This script needs a special configuration file .conkyrc-mobile to be
placed in the home folder:
--8<---------------cut here---------------start------------->8---
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
use_spacer right
use_xft yes
xftfont DejaVu Sans:size=18
xftalpha 0.8
text_buffer_size 2048
update_interval 3.0
draw_shades no
draw_outline no
draw_borders no
uppercase no
stippled_borders 3
border_margin 9
border_width 10
default_color grey
own_window_colour brown
own_window_transparent yes
alignment top_right
gap_x 10
gap_y 10
TEXT
$color
${Color green}NEW TASKS
${execi 10 cat /home/sven/Dropbox/myconf/from-mobile.org | grep -v auto-revert | grep -v ^$ | grep -v 20[0-9][0-9]}$color
--8<---------------cut here---------------end--------------->8---
next prev parent reply other threads:[~2010-12-07 10:06 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-28 19:10 MobileOrg and Voice Capturing (Android) Sven Bretfeld
2010-11-29 2:58 ` Matthew Jones
2010-11-30 22:06 ` Sven Bretfeld
2010-11-30 3:10 ` Mark Elston
2010-12-01 3:04 ` Matthew Jones
2010-12-02 1:25 ` Sven Bretfeld
2010-12-02 1:52 ` Mark Elston
2010-12-02 3:13 ` Matthew Jones
2010-12-02 8:02 ` Sven Bretfeld
2010-12-02 19:14 ` Mark Elston
2010-12-02 20:41 ` Matthew Jones
2010-12-02 22:43 ` Mark Elston
2010-12-03 5:02 ` Matthew Jones
2010-12-03 13:45 ` Sven Bretfeld
2010-12-03 20:51 ` Mark Elston
2010-12-03 21:18 ` Mark Elston
2010-12-07 10:05 ` Sven Bretfeld [this message]
2010-12-07 16:34 ` Matthew Jones
2010-12-07 23:24 ` Sven Bretfeld
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sjy9oq2u.fsf@gmx.ch \
--to=sven.bretfeld@gmx.ch \
--cc=bsdmatburt@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).