Skip to content

Automatically send your files to Kindle via email

License

Notifications You must be signed in to change notification settings

jbiers/bridge2kindle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Automatically send your files to Kindle via email

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published