FalseDev / event-notifier

A serverless function written in Deno to remind you of events through PushBullet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Event Notifier

This is a simple Deno serverless function that checks the next n days for upcoming events and sends a message containing said events to the user through the PushBullet API

Endpoints

Endpoint Params Function
/checkUpcomingEvents days - number of days ahead to check Check days days for upcoming events and notify the user

Environment variables

Variable Description
PUSHBULLET_API_KEY Your PushBuller API key obtained from settings
GIST_ID The ID of the gist where you have your events.json file stored

File Format

Here is an example file

{
    "eventName": [
        {
            "name": "Someone",
            "date": "2023-03-12"
        }
    ]
}

This generates the message Sun Mar 12 2023: eventName of Someone

About

A serverless function written in Deno to remind you of events through PushBullet


Languages

Language:TypeScript 100.0%