🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

github.com/creativeprojects/openhab-calendar

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/creativeprojects/openhab-calendar

Source
Go
Version
v0.0.0-20251028115842-9ded378e9096
Version published
Created
Source

openhab-calendar

Simple script to load information from an iCalendar into OpenHAB.

The iCal binding (in OpenHAB v2) didn't work for me because:

  • it can't use a Digest authentication
  • it's a bit tedious to setup rules in Xtend
  • it's much easier to debug on my local machine

Example configuration file:

{
    "rules": [
        {
            "priority": 10,
            "name": "Override",
            "calendar": {
                "url": "http://calendars/override"
            },
            "result": "OVERRIDE"
        },
        {
            "priority": 20,
            "name": "Away",
            "calendar": {
                "url": "http://calendars/away"
            },
            "result": "AWAY"
        },
        {
            "priority": 30,
            "name": "DayOff",
            "weekdays": [
                "Mon",
                "Tue",
                "Wed",
                "Thu",
                "Fri"
            ],
            "calendar": {
                "url": "http://calendars/dayoff"
            },
            "result": "DAYOFF"
        },
        {
            "priority": 40,
            "name": "Office",
            "weekdays": [
                "Mon",
                "Tue",
                "Wed",
                "Thu",
                "Fri"
            ],
            "calendar": {
                "url": "http://calendars/office"
            },
            "result": "OFFICE"
        },
        {
            "priority": 50,
            "name": "WorkFromHome",
            "weekdays": [
                "Mon",
                "Tue",
                "Wed",
                "Thu",
                "Fri"
            ],
            "result": "WFH"
        },
        {
            "priority": 60,
            "name": "Weekend",
            "weekdays": [
                "Sat",
                "Sun"
            ],
            "result": "DAYOFF"
        }
    ],
    "post-rules": [
        {
            "priority": 10,
            "name": "First day of week-end",
            "when": { "is": "DAYOFF"},
            "previous": { "not": "DAYOFF" },
            "next": { "is": "DAYOFF" },
            "result": "JOBBIES"
        }
    ],
    "default": {
        "name": "Unknown",
        "result": "ERROR"
    },
    "servers": {
        "http": {
            "listen": "http://:6060"
        }
    },
    "authentication": [
        {
            "url": "http://calendars/",
            "username": "username",
            "password": "password"
        }
    ]
}

FAQs

Package last updated on 28 Oct 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts