GithubHelp home page GithubHelp logo

bridge2kindle's Introduction

bridge2kindle

Automatically send your files to Kindle via email

โ” About


Sending files to Kindle can be done in two ways: via USB cable or by sending it as an attachment to the device's own email address. This application was built with the purpose of automating this process. With bridge2kindle, any time you move a file to a specific directory, it will be automatically sent to your Kindle device.

๐Ÿ–ฅ How to use it


Warning: this application was built with Linux systems in mind. Specifically Debian-like distros, and may not work in other environments.
Run locally

# Clone this repository
$ git clone <https://github.com/jbiers/bridge2kindle>

# It is recommended that you save the program files to the /usr/share directory
$ sudo mv -r bridge2kindle /usr/share

# Go into the NodeJS script folder and install the dependencies
$ cd /usr/share/bridge2kindle/sendKindleEmail
$ npm install

# Add a symbolic link to the sendKindleEmail.mjs file in the /usr/bin directory
$ ln -s /usr/share/bridge2kindle/sendKindleEmail/sendKindleEmail.mjs /usr/bin/sendKindleEmail

# Now, you need to install the incrontab dependency
$ sudo apt-get update  && apt-get install incron

# The last step is to define the script inside of your incrontab file by running
$ incrontab -e

# The script should look something like this:
# /directory_to_be_watched      IN_MOVED_TO     sendKindleEmail "$@/$#"

# You will need to set the following environment variables: KINDLE_DIR, KINDLE_EMAIL, USER_EMAIL_PORT, USER_EMAIL_HOST, USER_EMAIL_PASSWORD and USER_EMAIL

๐Ÿ›  Technologies


The following technologies were used in the development of this project:

๐Ÿ“š Learned


  • Scheduling tasks with Crontab.
  • Watch for events with inotifywait and incron.
  • Send emails with Nodemailer.
  • Linux troubleshooting.
  • Bash scripting.

๐Ÿ‘ฉ Author



Julia Bier

Made with โค๏ธ by Julia Bier ๐Ÿ‘‹๐Ÿฝ Contact me!

Linkedin Badge Gmail Badge

bridge2kindle's People

Contributors

jbiers avatar

Stargazers

Thiago Henrique Domingues avatar

Watchers

 avatar  avatar

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.