• Stars
    star
    210
  • Rank 187,585 (Top 4 %)
  • Language
    Python
  • License
    GNU General Publi...
  • Created almost 6 years ago
  • Updated 27 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Embed a highly customizable web calendar into your website using ICal source links

Open Web Calendar

GitHub Workflow Status Support on Open Collective build and publish the Docker image

You might want to:

Python: 3.7, 3.8, 3.9, 3.10

There are several commercial solutions which allow embedding of calendars into my website. I only have a link to an ICS file and want to show a nice-looking calendar on my site. Browser-only calendars usually have the problem that many ICS files can not be accessed (such as ownCloud/nextCloud in my case). I also want to be in control over who knows the people who visit the site and not pass everything to Google. This is a solution in my case which I share with the world. You are free to use it or deploy your own, modify or share it. It works offline and in company networks, too.

Features

  • Embedded calendar
  • Choice of time zone
  • ICS link, best multiple
  • month/week as a view
  • name, time of event, link?
  • showing the time span
  • styling of choice (icon, color, font, ...)

Contributing

There are several ways in which you can help this project:

Translation

You can help us by translating the project to your language. If your language is not listed, please request to add it!

Here, you can see the current translation status:

Translation status

Deployment

There are several ways to deploy the open-web-calendar.

Environment Variables - Configuration

These environment variables can be used to configure the service:

  • APP_DEBUG default true, values true or false, always false in the Docker container
    Set the debug flag for the app.
  • PORT default 5000, default 80 in the Docker container
    The port that the service is running on.
  • WORKERS default 4 only for the Docker container
    The number of parallel workers to handle requests.
  • CACHE_REQUESTED_URLS_FOR_SECONDS default 600
    Seconds to cache the calendar files that get downloaded to reduce bandwidth and delay.

Docker

To build the container yourself type the command

docker build --tag niccokunzmann/open-web-calendar .

You can also use the existing image: niccokunzmann/open-web-calendar.

docker run -d --rm -p 5000:80 niccokunzmann/open-web-calendar

Then, you should see your service running at http://localhost:5000.

Container Tags

The container niccokunzmann/open-web-calendar:latest contains the latest release. Containers are also tagged with the version from the changelog, e.g. niccokunzmann/open-web-calendar:v1.10. If you wish to run the latest development version, use niccokunzmann/open-web-calendar:master.

Docker Compose

Using pre build dockerhub image with docker-compose

version: '3'
services:
  open-web-calendar:
    image: niccokunzmann/open-web-calendar
    ports:
      - '80:80'
    environment:
      - WORKERS=4
    restart: unless-stopped

To deploy the open-web-calendar with docker-compose, do the following steps:

  1. Copy the docker-compose.yml file to the directory from where you want to run the container.
  2. If needed change port mapping and environment variables.
  3. Type docker-compose up -d to start the container.
  4. The container will be pulled automatically from dockerhub and then starts.

Important Note: If you use this service, consider setting up log rotation as it is very talkative.

Update prebuild image with Docker Compose

If you want to update your image with the latest version from dockerhub type docker-compose pull

Note: You need to start the container after pulling again in order for the update to apply (docker-compose up -d)

Vercel

You can create a fork of this repository which automatically deploys to Vercel:

Deploy

Alternatively you can create a one off deploy by cloning this repository and running npx vercel at the root.

Heroku

You can deploy the app using Heroku.

Deploy

Heroku uses gunicorn to run the server, see the Procfile.

Research

Hosts

Sources/Libs

Search Terms

calendar ics service, ics calendar to html, open source calendar view ical, python Ical, calendar viewer website for ics, open source calendar website, embed calendar into website

Software Components

Development

  1. Optional: Install virtualenv and Python3 and create a virtual environment.
    virtualenv -p python3 ENV
    source ENV/bin/activate
    
  2. Install the packages.
    pip install -r requirements.txt
    
  3. Start the app.
    python3 app.py
    

For the configuration of the app through environment variables, see the app.json file.

Running Tests

To run the tests, we use tox. tox tests all different Python versions which we want to be compatible to.

pip install tox

Run all tests:

tox

Run a specific Python version:

tox -e py39

Updating Dependencies

We use pip-compile to guarantee a tested deployment by fixing all the dependencies to a specific version.

You can update the packages to the latest version:

rm requirements.txt test-requirements.txt
pip install --upgrade pip-tools -r requirements.in -r test-requirements.in
pip-compile -o requirements.txt requirements.in
pip-compile -o test-requirements.txt test-requirements.in

And run the tests:

tox

Changelog

  • v1.16
    • Add a dropdown to choose another time zone to view the calendar in the about screen, see Issue #213.
  • v1.15
    • Update dependecies
  • v1.14
    • Improve Indonesian translation by Reza Almanda
    • Improve Spanish translation by zyloj
    • Improve Polish translation by Eryk Michalak
    • Update dependencies
    • Do not test Python 3.7 any more
    • Test Python 3.11
  • v1.13
    • Improve French translation
    • Update dependencies
  • v1.12
    • Add Croatian UI by Milo Ivir
  • v1.11
    • Add German UI
    • Improve calendar in Polish
    • Add Welsh calendar
  • v1.10
    • Add translations for nb_NO.
    • Translate the user interface.
    • Use weblate to translate files.
  • v1.9
  • v1.8
  • v1.7
  • v1.6
    • Add choice of Sunday or Monday for the start of the week Issue 39 - backed by donation!
  • v1.5
  • v1.4
    • add event categories when you click an event, see PR 159.
  • v1.3
    • update translation mistake
    • fix encoding problem for languages other than en/de
    • add ability to remove all controls
    • test with GitHub actions
    • test user interface
  • v1.2
  • v1.1
    • Add Coatian Language by Tomislav Gomerฤiฤ‡
  • v1.0

Update Dependencies

  1. Enter your virtual environment. E.g.
    source .tox/py39/bin/activate
    
  2. Install all dependencies:
    pip install -r requirements.in -r test-requirements.in pip-tools
    
  3. Fix the dependencies:
    rm *requirements.txt
    pip-compile --output-file=requirements.txt requirements.in
    pip-compile --output-file=test-requirements.txt test-requirements.in
    
  4. Create a branch, commit:
    git branch -d update
    git checkout -b update
    git add *requirements.txt
    git commit -m"Update dependencies"
    git push -u origin update
    
  5. Create a Pull Request and see if the tests run.

Release a new Version

To release a new version:

  1. Edit the README.md file in the Changelog Section and add the changes.
    git add README.md
    git commit -m"Modify changelog for release"
    git push
    
  2. Create a tag for the version.
    git tag v1.6
    git push origin v1.6
    
  3. Notify solved issues about the release.

Related Work

More Repositories

1

python-recurring-ical-events

Python library to calculate recurrence times of events, todos and journals based on icalendar RFC5545
Python
93
star
2

python_dhcp_server

a dhcp server in python
Python
90
star
3

hanging_threads

Deadlocks? Detect where your threads hang in Python with one import.
Python
51
star
4

mundraub-android

๐Ÿ“ฑAndroid App for Mundraub, Na-Ovoce and other fruit maps
Java
33
star
5

download_latest

Download files from the latest release.
JavaScript
25
star
6

dockerhub-build-status-image

Status images for your dockerhub automated build (like those for travis)
Python
16
star
7

qvm-expose-port

Expose a qubes vm port to the public interfaces of the sys-net vm.
Shell
13
star
8

crc8

A module with the CRC8 algorithm for Python 2 and 3
Python
13
star
9

ci-latex

A docker container for Gitlab CI to build papers with Latex
Dockerfile
10
star
10

first_timer_scraper

Find pull-requests and issues of first time contributors
Python
9
star
11

bhagavad-gita-android

Maximum compatible open-source Android App for the Bhagavad Gita
Java
8
star
12

app.memory.quelltext.eu

An app for the memory game
Kotlin
6
star
13

nullege

nullege is a python library to use the nullege API to search for usage of python objects in open source code
Python
6
star
14

paper-io-bot

Program your of bot for paper-io.com
JavaScript
6
star
15

UC121902-TNARX-A

Arduino library for the UC121902-TNARX-A LCD display
C++
5
star
16

calender_merger

merge ICS calenders into one calender
Python
5
star
17

ledtable

LED tables from LED stripes
Arduino
5
star
18

x-wr-timezone

Handling of non-standard X-WR-TIMEZONE icalendar property in Python and Command Line
Python
5
star
19

coloring-book-gallery

This is an open image gallery for everybody's use festuring black and white outline images for drawing.
Shell
4
star
20

escape-the-shell

Escape game for hackers following the hacker ethics
Shell
3
star
21

fossasia-badge-generator

Conference Badges Generator of FOSSASIA
Python
3
star
22

positioning_system

arduino sound based positioning system
C++
3
star
23

meshviewer-doc

Meshviewer gitbook
2
star
24

ObservableList

a list class with observable changes
Python
2
star
25

spiele-mit-kindern

Spiele entwickeln
2
star
26

self-care-bingo

Self-Care Bingo
JavaScript
2
star
27

freifunk-berlin-docker-image

Ein Docker-Image mit dem OpenWrt der Berliner Freifunker. OpenVPN ist dabei.
Dockerfile
2
star
28

fast-api-get-next-ics-events

FastAPI service to get the next few events from an ICS link as JSON
Python
1
star
29

case-of-death

Q&A for how to deal with my software in case I die
1
star
30

mousemove

Python
1
star
31

wget-app

Android App to download and mirror web pages using the GNU Wget command
Java
1
star
32

memory.quelltext.eu

Memory Games
JavaScript
1
star
33

hintjens.com

HTML
1
star
34

youtube-content-crawler

Fetching Youtube videos by given channel ids; posting them to a Schul-Cloud endpoint
JavaScript
1
star
35

schulcloud-server

JavaScript
1
star
36

ping

using pyro to create a game
Python
1
star
37

raspberry_pi_installation

Installation des Raspbian Betriebssystems auf dem Raspberry Pi mit und ohne Bildschirm
Shell
1
star
38

project-stats

Statistics to reason about github projects and their processes
Shell
1
star
39

PhidgetsWithCSharp

Tag der Talente. Stadt. Land. Zukunft.
C#
1
star
40

wolfen

1
star
41

mearm

A fork of the mearm roboter arm with Modelcraft RS-2 servos
1
star
42

ExceptionWithContext

A Python 2.7 exception with the __context__ attribute like in Python 3
Python
1
star
43

punch

hole punching
Python
1
star
44

mass-router-status

Status checks for a set of routers
Shell
1
star
45

ayab

Python
1
star
46

hpa

High Precision Arithmetic for the Arduino
C
1
star
47

protocol

a simple syntax stack machine protocol for information transfer between many languages
Python
1
star
48

open-transifex-api

Open the transifex API of your project to other people
Python
1
star
49

niccokunzmann.github.io

website
HTML
1
star
50

ScreenCastTools

Capture special key and mouse presses on windows
1
star
51

meshviewer-to-openwifimap

An application to post https://github.com/ffrgb/meshviewer data to the https://openwifimap.net
1
star
52

gh-pages-edit

github-pages-edit
Python
1
star
53

visitenkarten

Hier sind meine Visitenkarten
1
star
54

PasswordManager

A Password Manager
Python
1
star
55

comic-cluster

Create Comic images from photos using Python and clustering algorithms
Jupyter Notebook
1
star
56

talley-ptfa-calendar-spec

1
star
57

network-status-monitor

monitoring the local network status and internet connection
Shell
1
star