Geekzone: technology news, blogs, forums
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.

1702 posts

Uber Geek


# 204899 21-Oct-2016 23:33
Send private message

Thought someone might find this useful (it is based on the work from another kiwi user, @john, on the openHAB forums). I am using this script via a cronjob which runs each night at 12.01am. It checks if *today* is a holiday and updates an openHAB item (via the REST API). I can then use this item in my various automation rules to ensure the morning wakeup alarm doesn't go off etc.


Actually, I can't work out how to post a code snippet in here. Does the forum support pre-formatted code blocks?


I don't want to post the script as text as all the indentation gets lost.


If anyone is interested drop a line on this thread or PM me and I can email it to you.

Create new topic


656 posts

Ultimate Geek
Inactive user

  # 1656024 22-Oct-2016 01:16
Send private message

Post a link to the GitHub repository?

3445 posts

Uber Geek


  # 1656078 22-Oct-2016 08:42
Send private message

john on openhab is me!!!!!!!! :P


1702 posts

Uber Geek


  # 1656080 22-Oct-2016 08:49
Send private message

haha - wondered if it was you!

6732 posts

Uber Geek

Lifetime subscriber

  # 1656086 22-Oct-2016 09:02
Send private message

The calculate_easter_sunday looks about as complicated as the one we have at work (in T-SQL) tongue-out

1702 posts

Uber Geek


  # 1656087 22-Oct-2016 09:05
Send private message

Yep i have no idea what it is doing but it works!

Create new topic

Twitter and LinkedIn »

Follow us to receive Twitter updates when new discussions are posted in our forums:

Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:

Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:

News »

Arlo unveils its first video doorbell
Posted 21-Oct-2019 08:27

New Zealand students shortlisted for James Dyson Award
Posted 21-Oct-2019 08:18

Norton LifeLock Launches Norton 360
Posted 21-Oct-2019 08:11

Microsoft New Zealand Partner Awards results
Posted 18-Oct-2019 10:18

Logitech introduces new Made for Google keyboard and mouse devices
Posted 16-Oct-2019 13:36

MATTR launches to accelerate decentralised identity
Posted 16-Oct-2019 10:28

Vodafone X-Squad powers up for customers
Posted 16-Oct-2019 08:15

D Link ANZ launches EXO Smart Mesh Wi Fi Routers with McAfee protection
Posted 15-Oct-2019 11:31

Major Japanese retailer partners with smart New Zealand technology IMAGR
Posted 14-Oct-2019 10:29

Ola pioneers one-time passcode feature to fight rideshare fraud
Posted 14-Oct-2019 10:24

Spark Sport new home of NZC matches from 2020
Posted 10-Oct-2019 09:59

Meet Nola, Noel Leeming's new digital employee
Posted 4-Oct-2019 08:07

Registrations for Sprout Accelerator open for 2020 season
Posted 4-Oct-2019 08:02

Teletrac Navman welcomes AI tech leader Jens Meggers as new President
Posted 4-Oct-2019 07:41

Vodafone makes voice of 4G (VoLTE) official
Posted 4-Oct-2019 07:36

Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.

Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron

Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.