Coder Social home page Coder Social logo

go-ical-ntfy-reminder's Introduction

GO ical ntfy reminder

This is a simple Go application that does iCalendar files (.ics) analyzes and sends notifications by ntfy based on the events in these iCalendar files.

Prerequisites

Before you begin, ensure you have the following installed:

Getting Started

  1. Clone the repository:

    git clone https://code.brothertec.eu/simono41/go-ical-ntfy-reminder.git
  2. Create an environment variables file:

    Create a file named .env in your project directory. Fill this file with the required environment variables:

    TO_EMAIL=[email protected] (optional)
    NTFY_AUTH=echo "Basic $(echo -n 'testuser:fakepassword' | base64)"
    NTFY_HOST=https://ntfy.sh/alerts
    LOCATION=Europe/Berlin (default)
    ICS_DIR=/path/to/ics/files

    Customize the values according to your application.

  3. Build and run the Docker container:

    docker compose up -d --build

    This command uses Docker Compose to build and run the container, loading environment variables from the .env file.

  4. Access your application:

    Open your web browser and go to http://localhost:8080.

Customizing the Docker Image

  • If your application uses additional environment variables, add them to the .env file.
  • Customize the Dockerfile or docker-compose.yml if needed.

Running as a Cronjob

To run your application as a daily cronjob at 6 AM, add the following cronjob entry:

0 6 * * * docker compose -f /opt/containers/mail-reminder/docker-compose.yml up --build --exit-code-from go-app

This cronjob will execute the Docker Compose command daily at 6 AM.

Contributing

If you'd like to contribute, please fork the repository and create a pull request. Feel free to open an issue if you encounter any problems or have suggestions.

License

This project is licensed under the MIT License - see the LICENSE file for details.

go-ical-ntfy-reminder's People

Contributors

simono41 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.