Coder Social home page Coder Social logo

fabsrc / tvcal Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 578 KB

:tv: :calendar: Air dates of upcoming TV show episodes as ical/webcal.

License: MIT License

JavaScript 67.62% HTML 13.80% CSS 18.40% Dockerfile 0.18%
tv-shows calendar webcal ical tv-series

tvcal's Introduction

TVCal

Build Status Dependencies Development Dependencies JavaScript Style Guide

A Node.js server providing the air dates of upcoming TV show episodes as ical/webcal.

Install

$ npm install

Start

$ npm start

Use the PORT environment variable to set a custom port (default is 5000).

Usage

Web UI

To select shows to get air dates for go to http://localhost:5000 and use the web UI. It will create a webcal URL which you can add to your calendar.

Get air dates by show titles

webcal://localhost:5000/shows/?q=shameless;brooklyn%20nine-nine

Get air dates by TVMaze ids

webcal://localhost:5000/shows/150;49

Use as a Module

Returns a calendar object which is created by ical-generator.

const tvcal = require('tvcal')

tvcal({
	name: 'Cal-Name',
	domain: 'Cal-Domain',
	showIds: [150, 49], // Use either showIds or showTitles
	// showTitles: ['Shameless', 'Brooklyn Nine-Nine'], // Alternative to showIds
	filterDate: new Date(new Date() - 14 * 24 * 60 * 60 * 1000) // Filter episodes which are older than two weeks
}).then(cal => {
	console.log(cal.toString())
})

Development

$ npm run dev

Test

$ npm test

Credits

This application makes use of the TVMaze API.

License

Licensed under the MIT License.

tvcal's People

Contributors

fabsrc avatar

Stargazers

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