This library is a collection of all Ephemeris Actions Examples from the Documentation Page
If one use this library, follow the examples from the documentation and follow the syntax order.
Blocks
The screenshots are in the same order as the documentation and show the possible inputs.
Changelog
Version 0.1
- initial release
Resources
uid: ephemeris all
tags: []
props:
parameters: []
parameterGroups: []
component: BlockLibrary
config:
name: Ephemeris all
slots:
blocks:
- component: BlockType
config:
args0:
- name: variety
options:
- - getBankHolidayName
- getBankHolidayName
- - getNextBankHoliday
- getNextBankHoliday
- - isBankHoliday
- isBankHoliday
- - isWeekend
- isWeekend
type: field_dropdown
colour: 0
helpUrl: ""
inputsInline: true
message0: "%1"
output: ""
type: Ephemeris zero input
slots:
code:
- component: BlockCodeTemplate
config:
template: "{{utility:Ephemeris}}.{{field:variety}}()"
- component: BlockType
config:
args0:
- name: eph
type: input_value
check: ephemeris
colour: 0
helpUrl: ""
inputsInline: true
message0: get holidayDescription %1
output: ""
tooltip: ""
type: holidayDescription
slots:
code:
- component: BlockCodeTemplate
config:
template: "{{utility:Ephemeris}}.getHolidayDescription({{input:eph}})"
- component: BlockType
config:
args0:
- name: variety
options:
- - getBankHolidayName
- getBankHolidayName
- - getDaysUntil
- getDaysUntil
- - getNextBankHoliday
- getNextBankHoliday
- - isBankHoliday
- isBankHoliday
- - isInDayset
- isInDayset
- - isWeekend
- isWeekend
type: field_dropdown
- name: multi
type: input_value
colour: 0
helpUrl: ""
inputsInline: true
message0: "%1 offset, datetime, text or file%2"
output: ""
tooltip: for input sequence one must follow the documentation ephemeris actions examples
type: Ephemeris one input
slots:
code:
- component: BlockCodeTemplate
config:
template: "{{utility:Ephemeris}}.{{field:variety}}({{input:multi}})"
- component: BlockType
config:
args0:
- name: variety
options:
- - getBankHolidayName
- getBankHolidayName
- - getDaysUntil
- getDaysUntil
- - getNextBankHoliday
- getNextBankHoliday
- - isBankHoliday
- isBankHoliday
- - isInDayset
- isInDayset
type: field_dropdown
- name: multi
type: input_value
- name: multi2
type: input_value
colour: 0
helpUrl: ""
inputsInline: true
message0: "%1 offset, datetime or text %2 datetime, text or file %3"
output: ""
tooltip: for input sequence one must follow the documentation ephemeris actions examples
type: Ephemeris two input
slots:
code:
- component: BlockCodeTemplate
config:
template: "{{utility:Ephemeris}}.{{field:variety}}({{input:multi}},{{input:multi2}})"
- component: BlockType
config:
args0:
- name: datetime
type: input_value
- name: name
type: input_value
- name: file
type: input_value
colour: 0
helpUrl: ""
inputsInline: true
message0: get days until, from %1 holiday name %2 file %3
output: ""
tooltip: for input sequence one must follow the documentation ephemeris actions examples
type: getDaysUntil
slots:
code:
- component: BlockCodeTemplate
config:
template: "{{utility:Ephemeris}}.getDaysUntil({{input:datetime}},{{input:name}},{{input:file}})"
toolbox:
- component: PresetInput
config:
fields:
TEXT: path_to_file
name: file
shadow: true
type: text
- component: PresetInput
config:
fields:
TEXT: Holiday_Name
name: name
shadow: true
type: text
- component: PresetInput
config:
name: datetime
shadow: true
type: oh_zdt
utilities:
- component: UtilityJavaType
config:
javaClass: org.openhab.core.model.script.actions.Ephemeris
name: Ephemeris