Git Product home page Git Product logo

orch's Introduction

orch

Send scribbles and pictures from your Android phone to your Emacs org-mode buffer. Current requirements:

  • The computer running emacs and the phone running orch be on the same network. I'm working on a simple middleman server that both the app and emacs can talk to.

  • emacs 24.3+

Setup

  • Emacs

  • Put orch.el wherever you put your Emacs scripts (for me, this is ~/.emacs.d/vendor/). Add the following to your init.el (or .emacsrc):

     (add-to-list 'load-path "~/.emacs.d/vendor")
     (autoload 'orch-toggle "orch" nil t)
    
  • At this point (after possibly restarting Emacs), doing M-x orch-toggle will start the orch server on port 4000 (Change the port if you want in orch.el, grep for 4000).

    Image showing Emacs after orch-toggle command

  • Open a buffer in org-mode, if you haven't already (or just M-x org-mode in the current buffer).

  • Android

You can either install the app from the Play Store (https://play.google.com/store/apps/details?id=io.explog.orch) or build it yourself in Android Studio (import the android/ directory as a project in AS).

- Start the app, open settings, and fill in the IP address of your computer
  on which Emacs is running (the computer and the phone should be on the
  same network -- I'm working on making it work "via the cloud").
- Hit the back button and test the connection by tapping "PING SERVER"
on the action bar. If all is well, you should see a message saying
"pong".

Image showing an Android toast with PONG as the text

Using

Draw something on the Android app and hit the OK (✓) button.


Image showing a figure in Orch

The emacs org mode buffer should now have a link to an image in it.

Image highlighting a local image link in Emacs

To see the image inline, do C-c C-x C-v -- this toggles the inline image view in org mode.

Image showing a picture in inline-mode in an org buffer in Emacs

By default, the images land in ~/Pictures/orch/ (change this by editing orch.el).

orch's People

Contributors

yati-sagade avatar

Stargazers

Dmitry Simonov avatar Tuan Duc Tran avatar Patryk Dejewski avatar  avatar Donato Quiccione avatar  avatar Colton Eakins avatar Joe Tague avatar Claus-Peter Käpplinger avatar Cosmin-Octavian C avatar Dileep Kishore avatar Jorge Benavides Macías avatar Ivy avatar misha avatar Samuel Culpepper avatar  avatar Yannick Le Teigner avatar  avatar Linusp avatar  avatar David Martinez avatar Jakub Chalupa avatar  avatar Chen W. Zhu avatar Jesse Chintanadilok avatar Jonathan McHugh avatar Rohit Goswami avatar  avatar Clemens Radermacher avatar Samuel W. Flint avatar Weiss avatar DarkBuffalo avatar Gustavo de Paula avatar Nick Koptelov avatar Ilja Kocken avatar Daniel Kraus avatar Göktuğ Kayaalp avatar Philipp Fehre avatar a13ph avatar SR avatar Andrey Romanov avatar  avatar Nate Stahl avatar Zhongwei Yao avatar Yuval Kogman avatar Peter Gille avatar Andre Vidic avatar Michael Pope avatar Ryan avatar Milan Thapa avatar Jeremy Bae avatar Puneeth Chaganti avatar  avatar Sebastien Chapuis avatar

Watchers

James Cloos avatar  avatar  avatar  avatar

orch's Issues

error on executing

after M-x orch-toggle on GNU Emacs 26.0.50.2 (i686-pc-linux-gnu, GTK+ Version 3.10.8)
of 2016-10-25 server does not start, and emacs says:

apply: make server process failed: Conseguido, :name, ws-server, :service, 4001, :filter, ws-filter, :server, t, :nowait, t, :family, ipv4, :coding, no-conversion, :plist, (:server [eieio-class-tag--ws-server (((:GET . /ping) lambda (request) (with-slots (process headers) request (ws-response-header process 200 (quote (Content-type . text/plain))) (process-send-string process pong))) ((:POST . /insert) lambda (request) (with-slots (process headers) request (let ((file (cdr (assoc file headers)))) (if (null file) (orch-respond-text/plain process 400 Missing file) (let ((image-path ...)) (print (concat Wrote image-path)) (orch-respond-text/plain process 200 OK) (orch-insert-image-link image-path) image-path)))))) nil 4001 nil]), :log, nil

Use syncthing

The README states, The computer running emacs and the phone running orch be on the same network. I'm working on a simple middleman server that both the app and emacs can talk to..

It seems like using syncthing could be used to support this.

any updates?

Seems like this project has been abandoned. Are there any alternatives to achieve the same?
Ideally some automated way to send drawing from android to emacs without having to manually save the file in the cloud, then sync and put the path in emacs.

Release on fdroid

Thanks for your work. Could you please release your app on fdroid in addition to the play store? Some people do not want google services on their mobile devices.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.