emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Hendy <jw.hendy@gmail.com>
To: Peter Davis <pfd@pfdstudio.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: MobileOrg
Date: Sat, 21 Nov 2015 12:44:34 -0600	[thread overview]
Message-ID: <CA+M2ft83u0svDtOTT4F3y2rg7Nv6eDYto1YEvyTzgY6+MNEk9Q@mail.gmail.com> (raw)
In-Reply-To: <1448120544.3716674.446155745.23995073@webmail.messagingengine.com>

[-- Attachment #1: Type: text/plain, Size: 3907 bytes --]

On Sat, Nov 21, 2015 at 9:42 AM, Peter Davis <pfd@pfdstudio.com> wrote:
>
> On Fri, Nov 20, 2015, at 03:58 PM, dean wrote:
>> On 11/21/15 00:14, Peter Davis wrote:
>> Hi pd,
>>
>> > I'm just starting out with MobileOrg, using Dropbox, but I'm confused by the setup instructions. I've gotten the app linked to my
>> > Dropbox account, but the next step in the setup instructions <http://mobileorg.ncogni.to/doc/getting-started/using-dropbox/> involve
>> > setting up some emacs stuff on my "local system." My question is: *Which* local system? I have several sync'ed to Dropbox. Is the
>> > mobile app going to require a single point of contact?

Well, to my knowledge, mobile-org isn't meant to function as a way to
sync a bunch of emacs/org setups, so yes. You'd have one primary
system with your files to sync, you'd push to Dropbox from that
system, and the changes would get picked up from the phone.
Changes/additions from the phone are not automatic, to my knowledge.
These get put in the file pointed to by =org-mobile-inbox-for-pull=,
which you can then re-file or whatever into your main org files. You
could certainly sync various files with Dropbox on several systems,
re-create the same local mobileorg setup on said systems, edit them
from the Dropbox folder and invoke org-mobile-push from that system.
This will use Dropbox to sync the local file since it's under Dropbox
control, and also update it for your phone.

>> >
>>
>> Im fairly new to emacs and mobileorg, so im no expert here but...
>> I believe Mobile org will be using your dropbox folder as its single
>> point of contact.
>> For example your workflow would be:
>> - Create/edit notes/todo's on your phone
>> - sync the app (which should save to dropbox)
>> - Open emacs on your pc, issue org-mobile-pull
>> - This should add your edits to your org files on your pc
>>
>> For the other direction:
>> - Edit org files on your pc, issue org-mobile-push
>> - sync on the app should import your edits into the app
>>
>> Im assuming you have a dropbox daemon taking care of the syncing in this
>> process.
>>
>> This should be the same no matter how many pc's/emacs you use.
>> Does this help answer your question?
>>
>
> Thanks, Dean.  Actually, I can't even sync mobileorg. When I try
> (Pressing the sync button in the upper right corner), I get:
>

Well, like my comments on your subtree export thread, no one can
diagnose what they can't reproduce. You've literally supplied no
information about what you've done. Did you set any of the variables
described in the manual? What are they set to? Did you run =M-x
org-moble-push=? Do you have the Dropbox daemon on so that the changes
were pushed to the cloud? You're doing yourself a serious disservice
by not posting full details and reproducible examples. 1) you're going
to get *vastly* less responses because people don't even know what to
make of the post and won't try, and 2) people will get frustrated
making a suggestion to one email (say, about directing you on how to
use mobileorg) and meeting a response that's completely different (I
can't get it to sync due to checksums.dat missing). Basically, these
detail lacking posts waste the time of others.

I've been wanting to try mobileorg for some time so I took the time to
go through the instructions from scratch. See attached pdf and .org
file. I can't verify that mobileorg picks it up on my phone because
Dropbox is down, but the created file structure in ~/Dropbox/MobileOrg
looks sane. I'll try dropbox later to see if that part succeeds.


John

>
> *Error downloading checksums*
>
> An error was encountered while downloading checksums.dat from the
> server. The file isn't required, but the error received was unusual. The
> error was:
>
> Unexpected error
>
>
> I don't know what that's about, but I can't get past it.
>
> Thanks,
> -pd
>
>
>   Peter Davis
>   www.techcurmudgeon.com
>   www.timebums.com
>

[-- Attachment #2: instructions.org --]
[-- Type: application/octet-stream, Size: 4851 bytes --]

#+setupfile: "~/org/aux/setupfile.org"

* Basic config

Add org load paths to config and set some general stuff I prefer:

#+begin_src elisp :exports code :results silent :tangle ./min-config

(add-to-list 'load-path "~/.elisp/org.git/lisp/")
(add-to-list 'load-path "~/.elisp/org.git/contrib/lisp")
(setq-default fill-column 90)
(add-hook 'text-mode-hook 'turn-on-auto-fill)

(org-babel-do-load-languages
 'org-babel-load-languages
 '((shell . t)
   (emacs-lisp . t)))

(require 'ox-latex)
#+end_src


* Google mobileorg
  :LOGBOOK:
  CLOCK: [2015-11-21 Sat 11:29]--[2015-11-21 Sat 11:32] =>  0:03
  :END:

- found [[https://github.com/matburt/mobileorg-android/wiki][mobileorg wiki]]
- googled "orgmode mobileorg" and found [[http://orgmode.org/manual/MobileOrg.html][org manual page]]

Noted that [[https://github.com/matburt/mobileorg-android/wiki/Documentation][documentation]] says:

#+begin_quote
Initial Setup: Set up the location of your org-files by configuring and running ‘org-mobile-push’ in
emacs. 
#+end_quote

Looks like we set up emacs side first.

* Setup emacs side
  :LOGBOOK:
  CLOCK: [2015-11-21 Sat 11:51]--[2015-11-21 Sat 11:52] =>  0:01
  CLOCK: [2015-11-21 Sat 11:32]--[2015-11-21 Sat 11:42] =>  0:10
  :END:

Click [[http://orgmode.org/manual/Setting-up-the-staging-area.html#Setting-up-the-staging-area][staging area]] section and see that I need to tell it what directory to use. Also says
I should connect mobile-org to Dropbox and that directory will be created automatically,
so I'll just do that:

#+begin_src elisp :exports code :results silent :tangle ./min-config

(setq org-mobile-directory "~/Dropbox/MobileOrg")

#+end_src

To get that directory, sounds like we:
- install mobile-org on phone
- connect to dropbox
- install dropbox on laptop
- sync and find folder it created (same as listed in manual/below)
- add this to config

*Note:* wouldn't you know that Dropbox is down for maintenance, so I had to skip connecting mobileorg
to dropbox on phone/finding MobileOrg file on computer. I just manually created
=~/Dropbox/MobileOrg= it so it existed in order to continue with the test.

#+begin_src elisp :exports code :results silent :tangle ./min-config

(setq org-mobile-directory "~/Dropbox/MobileOrg")

#+end_src

Go back and click [[http://orgmode.org/manual/Pushing-to-MobileOrg.html#Pushing-to-MobileOrg][pushing]]. Looks like I need to tell it which files to push. I'll create a
=notes.org= file as well as adding this instructions file.

#+begin_src elisp :exports code :results silent :tangle ./min-config

(setq org-mobile-files '("~/Desktop/mobile-org-setup/notes.org"
                         "~/Desktop/mobile-org-setup/instructions.org"))

#+end_src

Note that paths are relative to =org-directory=. For now, ignoring since I gave full paths
above, but looks like one could set =org-directory= to, e.g.,
=~/Desktop/mobile-org-setup/= and then just list =notes.org= and =instructions.org=.

Go back and click [[http://orgmode.org/manual/Pulling-from-MobileOrg.html#Pulling-from-MobileOrg][pulling]]. Looks like I'm not ready for this yet since I haven't done
anything from Dropbox yet, but we need to tell Org where changes from mobile will land:

#+begin_src elisp :exports code :results silent :tangle ./min-config

(setq org-mobile-inbox-for-pull "~/Desktop/mobile-org-setup/changes.org")

#+end_src



* Try it out
  :LOGBOOK:
  CLOCK: [2015-11-21 Sat 11:54]--[2015-11-21 Sat 11:56] =>  0:02
  CLOCK: [2015-11-21 Sat 11:46]--[2015-11-21 Sat 11:51] =>  0:05
  :END:

Well, I happen to know that the command is =org-mobile-push=, but I find it odd that the
page doesn't actually tell you what to do (i.e. run this command) after doing the stuff
above. In any case, we run the command:

#+begin_src sh :exports results :results output 

tree ~/Dropbox/MobileOrg

#+end_src

#+RESULTS:
: /home/jwhendy/Dropbox/MobileOrg
: ├── agendas.org
: ├── checksums.dat
: ├── index.org
: ├── instructions.org
: ├── mobileorg.org
: └── notes.org
: 
: 0 directories, 6 files

Looks good to me.

To reproduce,
- put this file somewhere
- adjust paths as needed
- run =M-x org-babel-tangle= on this file
- run =emacs -Q= from the directory this file lives in
- run =M-x load-file RET ./min-config=

* Respond to email with results
  :LOGBOOK:
  CLOCK: [2015-11-21 Sat 12:02]--[2015-11-21 Sat 12:20] =>  0:18
  :END:

* Time

#+BEGIN: clocktable :maxlevel 1 :scope file
#+CAPTION: Clock summary at [2015-11-21 Sat 12:37]
| Headline                      |   Time |
|-------------------------------+--------|
| *Total time*                  | *0:39* |
|-------------------------------+--------|
| Google mobileorg              |   0:03 |
| Setup emacs side              |   0:11 |
| Try it out                    |   0:07 |
| Respond to email with results |   0:18 |
#+END:

[-- Attachment #3: instructions.pdf --]
[-- Type: application/pdf, Size: 83149 bytes --]

  reply	other threads:[~2015-11-21 18:44 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-20 14:14 MobileOrg Peter Davis
2015-11-20 20:58 ` MobileOrg dean
2015-11-21 15:42   ` MobileOrg Peter Davis
2015-11-21 18:44     ` John Hendy [this message]
2015-11-21 23:24       ` MobileOrg Peter Davis
2015-11-21 23:39         ` MobileOrg John Hendy
2015-11-21 19:07     ` MobileOrg Ed Hirgelt
2015-11-21 21:17       ` MobileOrg John Hendy
2015-11-21 22:05         ` MobileOrg dean
2015-11-21 22:52       ` MobileOrg Peter Davis
2015-11-21 23:25         ` MobileOrg John Hendy
2015-11-21 23:30         ` MobileOrg dean
2015-11-21 23:52           ` MobileOrg Peter Davis
2015-11-22  6:34             ` MobileOrg dean
2015-11-22 13:43               ` MobileOrg Peter Davis
  -- strict thread matches above, loose matches on Subject: below --
2014-08-06 14:07 MobileOrg Noah Slater
2014-08-06 16:11 ` MobileOrg Subhan Michael Tindall
2014-08-06 16:33   ` MobileOrg Alexis
2014-08-06 18:33     ` MobileOrg Xebar Saram
2014-08-14  1:50       ` MobileOrg Sean Escriva
2014-02-28  4:34 MobileOrg David Masterson
2014-03-01  7:07 ` MobileOrg Bastien
2014-03-02  3:14 ` MobileOrg John Hendy
2014-03-02  3:20   ` MobileOrg John Hendy
2014-03-03 19:20 ` MobileOrg Sean Escriva
2014-03-03 19:29   ` MobileOrg Ken Mankoff
2014-03-15  0:12   ` MobileOrg Aric Gregson
2014-03-15  0:50     ` MobileOrg Sean Escriva
2014-03-15  0:59       ` MobileOrg Aric Gregson
2014-06-25 18:56       ` MobileOrg Aric Gregson
2014-06-25 19:17         ` MobileOrg Nick Dokos
2014-07-04  0:47           ` MobileOrg Aric Gregson
2014-07-04 13:14             ` MobileOrg Nick Dokos
2014-07-04 13:17             ` MobileOrg Nick Dokos
2013-03-13 13:09 mobileorg Marvin Doyley
2013-03-13 13:53 ` mobileorg Rainer M Krug
2013-03-14 11:13   ` mobileorg Rasmus

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=CA+M2ft83u0svDtOTT4F3y2rg7Nv6eDYto1YEvyTzgY6+MNEk9Q@mail.gmail.com \
    --to=jw.hendy@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=pfd@pfdstudio.com \
    /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).