Update website and doc repo links to use archived 3.4.x docs (#2502)
This is required to keep add-on logos working for 3.4.x, because with the introduction of SVG logo support and the conversion of some logos, 3.4.x would not be able to display SVG logos. For the docs, it is also really helpful to link to the docs matching the version, because due to the number of breaking changes for openHAB 4.0 there are larger difference in parts of the docs. Linking the wrong could cause confusion. --------- Signed-off-by: Florian Hotze <florianh_dev@icloud.com>3.4.x
parent
3d1348096f
commit
dd49b62a33
|
@ -5,7 +5,7 @@
|
|||
* - It is known that "webaudio" isn't working on OH3 at the moment: https://github.com/openhab/openhab-webui/issues/743
|
||||
* - Even though "enhancedjavasound" is provided as a sink, currently it is not clear what the intention is
|
||||
*
|
||||
* See more background info on openHAB multimedia here: https://www.openhab.org/docs/configuration/multimedia.html
|
||||
* See more background info on openHAB multimedia here: https://v34.openhab.org/docs/configuration/multimedia.html
|
||||
*/
|
||||
|
||||
import Blockly from 'blockly'
|
||||
|
@ -45,7 +45,7 @@ export default function (f7, sinks, voices) {
|
|||
this.setNextStatement(true, null)
|
||||
this.setColour(0)
|
||||
this.setTooltip('Plays a sound file from the sounds folder to the given sink.')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-voice-and-multimedia.html#play-audio')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-voice-and-multimedia.html#play-audio')
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -82,7 +82,7 @@ export default function (f7, sinks, voices) {
|
|||
this.setNextStatement(true, null)
|
||||
this.setColour(0)
|
||||
this.setTooltip('Plays a sound file from the sounds folder to the given sink at a given volume. \n Note: rather set volume first via thing volume channel, then play sound without volume parameter as it may be more reliable.')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-voice-and-multimedia.html#play-audio-with-volume')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-voice-and-multimedia.html#play-audio-with-volume')
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -118,7 +118,7 @@ export default function (f7, sinks, voices) {
|
|||
this.setNextStatement(true, null)
|
||||
this.setColour(0)
|
||||
this.setTooltip('plays an audio stream from an url to the given sink(s)')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-voice-and-multimedia.html#play-stream')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-voice-and-multimedia.html#play-stream')
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -148,7 +148,7 @@ export default function (f7, sinks, voices) {
|
|||
this.setNextStatement(true, null)
|
||||
this.setColour(0)
|
||||
this.setTooltip('stops the audio stream at the given sink')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-voice-and-multimedia.html#stop-stream')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-voice-and-multimedia.html#stop-stream')
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -183,7 +183,7 @@ export default function (f7, sinks, voices) {
|
|||
this.setNextStatement(true, null)
|
||||
this.setColour(0)
|
||||
this.setTooltip('Speak text at the given device via text-to-speech')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-voice-and-multimedia.html#say')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-voice-and-multimedia.html#say')
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ export default function (f7) {
|
|||
this.setOutput(true, 'String')
|
||||
this.setColour('%{BKY_COLOUR_HUE}')
|
||||
this.setTooltip('converts a colour\'s hex rgb representation to openHAB\'s hue-saturation-brightness string')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-standard-ext.html#create-hsb-color-from-rgb-color-openhabblocks-color.js')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-standard-ext.html#create-hsb-color-from-rgb-color-openhabblocks-color.js')
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ export default function (f7) {
|
|||
this.setOutput(true, 'DayOffset')
|
||||
this.setColour(70)
|
||||
this.setTooltip('today\'s date for Ephemeris check block')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-date-handling.html#today')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-date-handling.html#today')
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -42,7 +42,7 @@ export default function (f7) {
|
|||
this.setOutput(true, 'DayOffset')
|
||||
this.setColour(70)
|
||||
this.setTooltip('today with a positive or negative day offset for Ephemeris check block')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-date-handling.html#today-x-days')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-date-handling.html#today-x-days')
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -67,7 +67,7 @@ export default function (f7) {
|
|||
this.setOutput(true, 'ZonedDateTime')
|
||||
this.setColour(70)
|
||||
this.setTooltip('Obtains the current date-time from the system clock in the default time-zone.\nReturns: ZonedDateTime')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-date-handling.html#get-datetime-now')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-date-handling.html#get-datetime-now')
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -101,7 +101,7 @@ export default function (f7) {
|
|||
this.setOutput(true, 'ZonedDateTime')
|
||||
this.setColour(70)
|
||||
this.setTooltip('Obtains the current date-time from the system clock in the default time-zone with a simple positive or negative offset.\nReturns: ZonedDateTime')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-date-handling.html#get-date-now-with-offset')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-date-handling.html#get-date-now-with-offset')
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -129,7 +129,7 @@ export default function (f7) {
|
|||
this.setOutput(true, 'ZonedDateTime')
|
||||
this.setColour(70)
|
||||
this.setTooltip('Creates a ZonedDateTime based on the given input for date and time with nanos set to 0 and the system\'s time-zone. The values need to be valid.\nReturns: ZonedDateTime')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-date-handling.html#datetime-with-date-and-time-values')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-date-handling.html#datetime-with-date-and-time-values')
|
||||
},
|
||||
updateShape_: function () {
|
||||
let year = this.appendValueInput('year')
|
||||
|
@ -184,7 +184,7 @@ export default function (f7) {
|
|||
this.setOutput(true, 'ZonedDateTime')
|
||||
this.setColour(70)
|
||||
this.setTooltip('A ZonedDateTime with time set to zero')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-date-handling.html#date-picker')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-date-handling.html#date-picker')
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -227,7 +227,7 @@ export default function (f7) {
|
|||
'returns ZonedDateTime"\n'
|
||||
|
||||
this.setTooltip(tooltip)
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-date-handling.html#get-date')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-date-handling.html#get-date')
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -255,7 +255,7 @@ export default function (f7) {
|
|||
this.setOutput(true, 'ZonedDateTime')
|
||||
this.setColour(70)
|
||||
this.setTooltip('ZonedDateTime from a datetime item')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-date-handling.html#datetime-from-item')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-date-handling.html#datetime-from-item')
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -290,7 +290,7 @@ export default function (f7) {
|
|||
this.setOutput(true, 'zdtTemporalUnit')
|
||||
this.setColour(120)
|
||||
this.setTooltip('click arrow to scroll through year, month, day, hour, minute, second, milli, nano, day of year')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-date-handling.html#create-datetime-based-on-a-specific-date-copy-of')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-date-handling.html#create-datetime-based-on-a-specific-date-copy-of')
|
||||
},
|
||||
onClick (nextField) {
|
||||
let block = this.getSourceBlock()
|
||||
|
@ -359,7 +359,7 @@ export default function (f7) {
|
|||
this.setOutput(true, 'zdtTemporalUnit')
|
||||
this.setColour(120)
|
||||
this.setTooltip('click arrow to scroll through year, month, day, hour, minute, second, milli, nano, day of year')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-date-handling.html#create-datetime-based-on-a-specific-date-copy-of')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-date-handling.html#create-datetime-based-on-a-specific-date-copy-of')
|
||||
},
|
||||
onClick (nextField) {
|
||||
let block = this.getSourceBlock()
|
||||
|
@ -429,7 +429,7 @@ export default function (f7) {
|
|||
|
||||
this.setMutator(new Blockly.Mutator(['oh_zdt_amend_item']))
|
||||
this.setTooltip('Use a ZonedDateTime as a basis and amend it via particular temporal blocks')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-date-handling.html#create-datetime-based-on-a-specific-date-copy-of')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-date-handling.html#create-datetime-based-on-a-specific-date-copy-of')
|
||||
},
|
||||
mutationToDom: function () {
|
||||
let container = Blockly.utils.xml.createElement('mutation')
|
||||
|
@ -611,7 +611,7 @@ export default function (f7) {
|
|||
this.setOutput(true, 'String')
|
||||
this.setColour(160)
|
||||
this.setTooltip('converts an ZonedDateTime into a date string')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-date-handling.html#get-string-representation-of-date')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-date-handling.html#get-string-representation-of-date')
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -660,7 +660,7 @@ export default function (f7) {
|
|||
this.setInputsInline(true)
|
||||
this.setColour('%{BKY_LOGIC_HUE}')
|
||||
this.setTooltip('Compares two ZonedDateTimes with each other')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-date-handling.html#date-comparison')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-date-handling.html#date-comparison')
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -704,7 +704,7 @@ export default function (f7) {
|
|||
this.setInputsInline(true)
|
||||
this.setColour('%{BKY_LOGIC_HUE}')
|
||||
this.setTooltip('Compares two ZonedDateTimes with each other')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-date-handling.html#date-comparison-between')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-date-handling.html#date-comparison-between')
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -741,7 +741,7 @@ export default function (f7) {
|
|||
this.setOutput(true, 'Number')
|
||||
this.setColour(230)
|
||||
this.setTooltip('Returns the selected field as Number.')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-date-handling.html#get-part-of-datetime')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-date-handling.html#get-part-of-datetime')
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -790,7 +790,7 @@ export default function (f7) {
|
|||
this.setOutput(true, 'Number')
|
||||
this.setColour(230)
|
||||
this.setTooltip('Returns the selected field as Number.')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-date-handling.html#get-difference-between-datetimes')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-date-handling.html#get-difference-between-datetimes')
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ export default function (f7) {
|
|||
this.updateShape_()
|
||||
this.setOutput(true, 'Dictionary')
|
||||
this.setMutator(new Blockly.Mutator(['dicts_create_with_item']))
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-standard-ext.html#dictionary-for-managing-key-value-pairs')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-standard-ext.html#dictionary-for-managing-key-value-pairs')
|
||||
this.setTooltip('Create a key/value dictionary')
|
||||
},
|
||||
/**
|
||||
|
@ -188,7 +188,7 @@ export default function (f7) {
|
|||
.setCheck('String')
|
||||
this.setInputsInline(true)
|
||||
this.setOutput(true, 'String')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-standard-ext.html#get-value-of-key-from-dictionary')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-standard-ext.html#get-value-of-key-from-dictionary')
|
||||
this.setTooltip('Retrieve a specified attribute from the context that could be set from a calling rule or script')
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* Ephemeris provides calendar related information
|
||||
* @author stefan.hoehn
|
||||
*
|
||||
* See more background info on openHAB ephemeris here: https://www.openhab.org/docs/configuration/actions.html#ephemeris
|
||||
* See more background info on openHAB ephemeris here: https://v34.openhab.org/docs/configuration/actions.html#ephemeris
|
||||
* See usage discussion here: https://community.openhab.org/t/wip-ephemeris-documentation/84536
|
||||
*/
|
||||
import Blockly from 'blockly'
|
||||
|
@ -28,7 +28,7 @@ export default function (f7) {
|
|||
this.setInputsInline(true)
|
||||
this.setTooltip('checks if the given day is a holiday, weekend or weekday')
|
||||
this.setOutput(true, null)
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-ephemeris.html#holiday-weekend-or-weekday-check')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-ephemeris.html#holiday-weekend-or-weekday-check')
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -71,7 +71,7 @@ export default function (f7) {
|
|||
this.setInputsInline(true)
|
||||
this.setTooltip('name of the holiday for the given day')
|
||||
this.setOutput(true, null)
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-ephemeris.html#get-the-holiday-name-for-a-particular-date')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-ephemeris.html#get-the-holiday-name-for-a-particular-date')
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -99,7 +99,7 @@ export default function (f7) {
|
|||
this.setInputsInline(true)
|
||||
this.setTooltip('days from today until the given bank holiday name')
|
||||
this.setOutput(true, null)
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-ephemeris.html#get-the-number-of-days-until-a-specific-holiday')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-ephemeris.html#get-the-number-of-days-until-a-specific-holiday')
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ export default function (f7) {
|
|||
this.setNextStatement(true, null)
|
||||
this.setColour(0)
|
||||
this.setTooltip('Send a command to an item')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-items-things.html#send-command')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-items-things.html#send-command')
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ export default function (f7) {
|
|||
this.setColour(160)
|
||||
this.setInputsInline(true)
|
||||
this.setTooltip('Pick an item from the Model')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-items-things.html#item')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-items-things.html#item')
|
||||
this.setOutput(true, null)
|
||||
}
|
||||
}
|
||||
|
@ -37,7 +37,7 @@ export default function (f7) {
|
|||
this.setOutput(true, 'Array')
|
||||
this.setColour(0)
|
||||
this.setTooltip('Retrieve the members of a group')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-items-things.html#get-members-of-group')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-items-things.html#get-members-of-group')
|
||||
this.setOutput(true, null)
|
||||
}
|
||||
}
|
||||
|
@ -58,7 +58,7 @@ export default function (f7) {
|
|||
this.setOutput(true, 'Array')
|
||||
this.setColour(0)
|
||||
this.setTooltip('Retrieve the items that have all the given tags')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-items-things.html#get-items-with-tag')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-items-things.html#get-items-with-tag')
|
||||
this.setOutput(true, null)
|
||||
}
|
||||
}
|
||||
|
@ -86,7 +86,7 @@ export default function (f7) {
|
|||
this.setOutput(true, 'oh_itemtype')
|
||||
this.setColour(0)
|
||||
this.setTooltip('Get an item from the item registry')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-items-things.html#get-item')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-items-things.html#get-item')
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -106,7 +106,7 @@ export default function (f7) {
|
|||
this.setOutput(true, 'String')
|
||||
this.setColour(0)
|
||||
this.setTooltip('Get an item state from the item registry')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-items-things.html#get-state-of-item')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-items-things.html#get-state-of-item')
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -144,7 +144,7 @@ export default function (f7) {
|
|||
this.setOutput(true, 'String')
|
||||
this.setColour(0)
|
||||
this.setTooltip('Retrieve a specific attribute from the item. Note that groups and tags return a list and should be used with the loops-block \'for each item ... in list\'. ')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-items-things.html#get-particular-attributes-of-an-item')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-items-things.html#get-particular-attributes-of-an-item')
|
||||
},
|
||||
/**
|
||||
* Modify this block to have the correct output type based on the attribute.
|
||||
|
|
|
@ -20,7 +20,7 @@ export default function (f7) {
|
|||
this.setOutput(true, 'Array')
|
||||
this.setColour('%{BKY_LISTS_HUE}')
|
||||
this.setTooltip('concatenate two arrays returning a new array')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-standard-ext.html#concatenate-list')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-standard-ext.html#concatenate-list')
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ export default function (f7) {
|
|||
this.setNextStatement(true, null)
|
||||
this.setColour(0)
|
||||
this.setTooltip('Print a message on the console')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-logging.html#print-statement')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-logging.html#print-statement')
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -32,7 +32,7 @@ export default function (f7) {
|
|||
this.setNextStatement(true, null)
|
||||
this.setColour(0)
|
||||
this.setTooltip('Write a message in the openHAB log')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-logging.html#log-statement')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-logging.html#log-statement')
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ export default function defineOHBlocks_Notifications (f7) {
|
|||
this.setInputsInline(false)
|
||||
this.setColour(0)
|
||||
this.setTooltip('Send a notification message to a specific openhab user')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-notifications.html#send-notification-to-specific-cloud-email-user')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-notifications.html#send-notification-to-specific-cloud-email-user')
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -43,7 +43,7 @@ export default function defineOHBlocks_Notifications (f7) {
|
|||
this.setInputsInline(false)
|
||||
this.setColour(0)
|
||||
this.setTooltip('send a notification to all clients. Provide icon name without prefix')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-notifications.html#send-notification-to-all-devices-and-users')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-notifications.html#send-notification-to-all-devices-and-users')
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -71,7 +71,7 @@ export default function defineOHBlocks_Notifications (f7) {
|
|||
this.setInputsInline(false)
|
||||
this.setColour(0)
|
||||
this.setTooltip('Sends a notification to the log only not to any device')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-notifications.html#send-notification-to-log-only')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-notifications.html#send-notification-to-log-only')
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ export default function defineOHBlocks_Persistence (f7) {
|
|||
}
|
||||
return TIP[methodName]
|
||||
})
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-persistence.html#get-statistical-value-of-an-item')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-persistence.html#get-statistical-value-of-an-item')
|
||||
},
|
||||
handleTypeSelection: function (methodName) {
|
||||
if (this.methodName !== methodName) {
|
||||
|
@ -148,7 +148,7 @@ export default function defineOHBlocks_Persistence (f7) {
|
|||
return TIP[methodName]
|
||||
})
|
||||
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-persistence.html#check-item-change-update-since-a-point-in-time')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-persistence.html#check-item-change-update-since-a-point-in-time')
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -180,7 +180,7 @@ export default function defineOHBlocks_Persistence (f7) {
|
|||
this.setOutput(true, 'ZonedDateTime')
|
||||
this.setColour(0)
|
||||
this.setTooltip('Get the last update time of the provided item')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-persistence.html#provide-last-updated-date-of-an-item')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-persistence.html#provide-last-updated-date-of-an-item')
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ export default function defineOHBlocks_Scripts (f7, scripts) {
|
|||
this.setNextStatement(true, null)
|
||||
this.setColour(0)
|
||||
this.setTooltip('Calls a script file which must be located in the $OPENHAB_CONF/scripts folder')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-run-and-process.html#call-script-file')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-run-and-process.html#call-script-file')
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -57,7 +57,7 @@ export default function defineOHBlocks_Scripts (f7, scripts) {
|
|||
this.setNextStatement(true, null)
|
||||
this.setColour(0)
|
||||
this.setTooltip('Run a rule or script with a certain UID, and optional parameters')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-run-and-process.html#run-rule-or-script-created-in-ui')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-run-and-process.html#run-rule-or-script-created-in-ui')
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -127,7 +127,7 @@ export default function defineOHBlocks_Scripts (f7, scripts) {
|
|||
})
|
||||
this.setHelpUrl(function () {
|
||||
const type = thisBlock.getFieldValue('type')
|
||||
return 'https://www.openhab.org/docs/configuration/blockly/rules-blockly-run-and-process.html#transform-values-via-map-regex-or-jsonpath-and-others' + type.toLowerCase() + '/'
|
||||
return 'https://v34.openhab.org/docs/configuration/blockly/rules-blockly-run-and-process.html#transform-values-via-map-regex-or-jsonpath-and-others' + type.toLowerCase() + '/'
|
||||
})
|
||||
}
|
||||
}
|
||||
|
@ -181,7 +181,7 @@ export default function defineOHBlocks_Scripts (f7, scripts) {
|
|||
}
|
||||
return TIP[contextData]
|
||||
})
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-run-and-process.html#retrieve-rule-context-information')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-run-and-process.html#retrieve-rule-context-information')
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -203,7 +203,7 @@ export default function defineOHBlocks_Scripts (f7, scripts) {
|
|||
this.setInputsInline(false)
|
||||
this.setOutput(true, 'any')
|
||||
this.setColour(0)
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-run-and-process.html#retrieve-context-attribute-from-rule')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-run-and-process.html#retrieve-context-attribute-from-rule')
|
||||
this.setTooltip('Retrieve a specified attribute from the context that could be set from a calling rule or script')
|
||||
}
|
||||
}
|
||||
|
@ -232,7 +232,7 @@ export default function defineOHBlocks_Scripts (f7, scripts) {
|
|||
this.setPreviousStatement(true, null)
|
||||
this.setNextStatement(true, null)
|
||||
this.setColour(0)
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-run-and-process.html#inline-script')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-run-and-process.html#inline-script')
|
||||
this.setTooltip('Allows inlining arbitrary script code which has to be syntactically correct')
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ export default function (f7) {
|
|||
this.setOutput(true, 'String')
|
||||
this.setColour('%{BKY_TEXTS_HUE}')
|
||||
this.setTooltip('Returns a carriage return line feed (\\r\\n).')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-standard-ext.html#crlf')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-standard-ext.html#crlf')
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -47,7 +47,7 @@ export default function (f7) {
|
|||
this.setOutput(true, 'String')
|
||||
this.setColour('%{BKY_TEXTS_HUE}')
|
||||
this.setTooltip('returns a new string with one, some, or all matches of a pattern replaced by a replacement. The pattern can be a string or a RegEx. If it is a string, all occurences are replaced.')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-standard-ext.html#text-replace')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-standard-ext.html#text-replace')
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ export default function defineOHBlocks (f7) {
|
|||
this.setColour(160)
|
||||
this.setInputsInline(true)
|
||||
this.setTooltip('Pick a thing from the Thing List')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-items-things.html#thing')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-items-things.html#thing')
|
||||
this.setOutput(true, null)
|
||||
}
|
||||
}
|
||||
|
@ -35,7 +35,7 @@ export default function defineOHBlocks (f7) {
|
|||
this.setOutput(true, 'String')
|
||||
this.setColour(0)
|
||||
this.setTooltip('Gets status information of the given thing, e.g. if the thing is online')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-items-things.html#get-thing-status')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-items-things.html#get-thing-status')
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ export default function defineOHBlocks_Timers (f7) {
|
|||
this.setPreviousStatement(true, null)
|
||||
this.setNextStatement(true, null)
|
||||
this.setColour(0)
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-timers-and-delays.html#wait-for')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-timers-and-delays.html#wait-for')
|
||||
this.setTooltip('Waits for the specified milliseconds')
|
||||
}
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ export default function defineOHBlocks_Timers (f7) {
|
|||
this.setPreviousStatement(true, null)
|
||||
this.setNextStatement(true, null)
|
||||
this.setTooltip('Create a named timer')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-timers-and-delays.html#after-period-of-time-do-with-timer')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-timers-and-delays.html#after-period-of-time-do-with-timer')
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -110,7 +110,7 @@ export default function defineOHBlocks_Timers (f7) {
|
|||
this.setNextStatement(true, null)
|
||||
this.setColour(0)
|
||||
this.setTooltip('Simple Timer creation with control over rule retriggering action')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-timers-and-delays.html#after-period-of-time-do-with-timer-with-options-on-retriggering-rule')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-timers-and-delays.html#after-period-of-time-do-with-timer-with-options-on-retriggering-rule')
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -169,7 +169,7 @@ export default function defineOHBlocks_Timers (f7) {
|
|||
this.setOutput(true, 'Boolean')
|
||||
this.setColour(0)
|
||||
this.setTooltip('returns true if the timer will be executed as scheduled, i.e. it has not been cancelled or completed')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-timers-and-delays.html#timer-is-active')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-timers-and-delays.html#timer-is-active')
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -202,7 +202,7 @@ export default function defineOHBlocks_Timers (f7) {
|
|||
this.setOutput(true, 'Boolean')
|
||||
this.setColour(0)
|
||||
this.setTooltip('returns true if the code is currently executing (i.e. the timer activated the code but it is not done running)')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-timers-and-delays.html#timer-is-running')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-timers-and-delays.html#timer-is-running')
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -234,7 +234,7 @@ export default function defineOHBlocks_Timers (f7) {
|
|||
this.setOutput(true, 'Boolean')
|
||||
this.setColour(0)
|
||||
this.setTooltip('returns true if the code has run and completed.')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-timers-and-delays.html#timer-has-terminated')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-timers-and-delays.html#timer-has-terminated')
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -264,7 +264,7 @@ export default function defineOHBlocks_Timers (f7) {
|
|||
this.setNextStatement(true, null)
|
||||
this.setColour(0)
|
||||
this.setTooltip('Cancels a named timer')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-timers-and-delays.html#cancel-timer')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-timers-and-delays.html#cancel-timer')
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -304,7 +304,7 @@ export default function defineOHBlocks_Timers (f7) {
|
|||
this.setNextStatement(true, null)
|
||||
this.setColour(0)
|
||||
this.setTooltip('reschedules the timer to execute at the new time. If the Timer has terminated this method does nothing.')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-timers-and-delays.html#reschedule-timer')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-timers-and-delays.html#reschedule-timer')
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ export default function defineOHBlocks_Variables (f7) {
|
|||
this.setNextStatement(true, null)
|
||||
this.setColour(0)
|
||||
this.setTooltip('stores a value with a variable name that can be retrieved on subsequent runs of this rule/script')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-value-storage.html#store-value')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-value-storage.html#store-value')
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -42,7 +42,7 @@ export default function defineOHBlocks_Variables (f7) {
|
|||
this.setOutput(true, null)
|
||||
this.setColour(0)
|
||||
this.setTooltip('retrieves the value that was previously stored for that particular script/rule')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-value-storage.html#get-stored-value')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-value-storage.html#get-stored-value')
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -61,7 +61,7 @@ export default function defineOHBlocks_Variables (f7) {
|
|||
this.setOutput(true, null)
|
||||
this.setColour(0)
|
||||
this.setTooltip('returns whether the given value is undefined')
|
||||
this.setHelpUrl('https://www.openhab.org/docs/configuration/blockly/rules-blockly-value-storage.html#check-if-value-is-undefined')
|
||||
this.setHelpUrl('https://v34.openhab.org/docs/configuration/blockly/rules-blockly-value-storage.html#check-if-value-is-undefined')
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* Dropdown field populated with audio sinks found in the system.
|
||||
* CURRENTLY UNUSED
|
||||
*
|
||||
* See more background info on openHAB multimedia here: https://www.openhab.org/docs/configuration/multimedia.html
|
||||
* See more background info on openHAB multimedia here: https://v34.openhab.org/docs/configuration/multimedia.html
|
||||
*/
|
||||
|
||||
import Blockly from 'blockly'
|
||||
|
|
|
@ -28,7 +28,7 @@ export const OhMapPageDefinition = () => new WidgetDefinition('oh-map-page', 'Ma
|
|||
export const OhMapMarkerDefinition = () => new WidgetDefinition('oh-map-marker', 'Map Marker', 'An icon on a map', 'map_pin')
|
||||
.paramGroup(pg('marker', 'Marker', 'General marker settings'), [
|
||||
LabelParam(),
|
||||
pt('icon', 'Icon', 'Use <code>oh:iconName</code> (<a class="external text-color-blue" target="_blank" href="https://www.openhab.org/link/icons">openHAB icon</a>)')
|
||||
pt('icon', 'Icon', 'Use <code>oh:iconName</code> (<a class="external text-color-blue" target="_blank" href="https://v34.openhab.org/link/icons">openHAB icon</a>)')
|
||||
])
|
||||
.paramGroup(pg('position', 'Position', 'Position'), [
|
||||
ItemParam(),
|
||||
|
|
|
@ -32,7 +32,7 @@ export const OhPlanMarkerDefinition = () => new WidgetDefinition('oh-plan-marker
|
|||
pi('item', 'Item', 'The item whose state to display on this marker')
|
||||
])
|
||||
.paramGroup(pg('icon', 'Icon', 'You can customize the styles further with CSS attributes in the <code>iconStyle</code> parameter (in YAML only)'), [
|
||||
pt('icon', 'Icon', 'Use <code>oh:iconName</code> (<a class="external text-color-blue" target="_blank" href="https://www.openhab.org/link/icons">openHAB icon</a>), <code>f7:iconName</code> (<a class="external text-color-blue" target="_blank" href="https://framework7.io/icons/">Framework7 icon</a>), <code>material:iconName</code> (<a class="external text-color-blue" target="_blank" href="https://jossef.github.io/material-design-icons-iconfont/">Material icon</a>) or <code>iconify:iconSet:iconName</code> (<a class="external text-color-blue" target="_blank" href="https://icon-sets.iconify.design">Iconify icon</a>, requires being online if not in cache)'),
|
||||
pt('icon', 'Icon', 'Use <code>oh:iconName</code> (<a class="external text-color-blue" target="_blank" href="https://v34.openhab.org/link/icons">openHAB icon</a>), <code>f7:iconName</code> (<a class="external text-color-blue" target="_blank" href="https://framework7.io/icons/">Framework7 icon</a>), <code>material:iconName</code> (<a class="external text-color-blue" target="_blank" href="https://jossef.github.io/material-design-icons-iconfont/">Material icon</a>) or <code>iconify:iconSet:iconName</code> (<a class="external text-color-blue" target="_blank" href="https://icon-sets.iconify.design">Iconify icon</a>, requires being online if not in cache)'),
|
||||
pb('iconUseState', 'Icon depends on state', 'Use the state of the item to get a dynamic icon (for openHAB icons only)'),
|
||||
pn('iconSize', 'Icon Size', 'Size of the icon in pixels (40 by default)'),
|
||||
pn('iconWidth', 'Icon Width', 'Width of the icon in pixels (for openHAB icons only, 40 by default)').a(),
|
||||
|
|
|
@ -25,7 +25,7 @@ export const OhLabelCardDefinition = () => new WidgetDefinition('oh-label-card',
|
|||
pt('background', 'Background style', 'Background style (in CSS "background" attribute format)'),
|
||||
pt('fontSize', 'Font Size', 'Font size (e.g. "34px")'),
|
||||
pt('fontWeight', 'Font Weight', 'Font weight (e.g. "normal" or "bold")'),
|
||||
pt('icon', 'Icon', 'Use <code>oh:iconName</code> (<a class="external text-color-blue" target="_blank" href="https://www.openhab.org/link/icons">openHAB icon</a>), <code>f7:iconName</code> (<a class="external text-color-blue" target="_blank" href="https://framework7.io/icons/">Framework7 icon</a>), <code>material:iconName</code> (<a class="external text-color-blue" target="_blank" href="https://jossef.github.io/material-design-icons-iconfont/">Material icon</a>) or <code>iconify:iconSet:iconName</code> (<a class="external text-color-blue" target="_blank" href="https://icon-sets.iconify.design">Iconify icon</a>, requires being online if not in cache)'),
|
||||
pt('icon', 'Icon', 'Use <code>oh:iconName</code> (<a class="external text-color-blue" target="_blank" href="https://v34.openhab.org/link/icons">openHAB icon</a>), <code>f7:iconName</code> (<a class="external text-color-blue" target="_blank" href="https://framework7.io/icons/">Framework7 icon</a>), <code>material:iconName</code> (<a class="external text-color-blue" target="_blank" href="https://jossef.github.io/material-design-icons-iconfont/">Material icon</a>) or <code>iconify:iconSet:iconName</code> (<a class="external text-color-blue" target="_blank" href="https://icon-sets.iconify.design">Iconify icon</a>, requires being online if not in cache)'),
|
||||
pt('iconColor', 'Icon Color', 'Not applicable to openHAB icons').a(),
|
||||
pn('iconSize', 'Icon Size', 'Size of the icon in px').a(),
|
||||
pb('iconUseState', 'Icon depends on state', 'Use the state of the item to get a dynamic icon (for openHAB icons only)').a(),
|
||||
|
|
|
@ -11,7 +11,7 @@ export const CellParameters = () => [
|
|||
pt('title', 'Title', 'Title of the cell'),
|
||||
pt('subtitle', 'Subtitle', 'Subtitle of the cell'),
|
||||
pt('footer', 'Footer', 'Footer of the cell'),
|
||||
pt('icon', 'Icon', 'Use <code>oh:iconName</code> (<a class="external text-color-blue" target="_blank" href="https://www.openhab.org/link/icons">openHAB icon</a>), <code>f7:iconName</code> (<a class="external text-color-blue" target="_blank" href="https://framework7.io/icons/">Framework7 icon</a>), <code>material:iconName</code> (<a class="external text-color-blue" target="_blank" href="https://jossef.github.io/material-design-icons-iconfont/">Material icon</a>) or <code>iconify:iconSet:iconName</code> (<a class="external text-color-blue" target="_blank" href="https://icon-sets.iconify.design">Iconify icon</a>, requires being online if not in cache)'),
|
||||
pt('icon', 'Icon', 'Use <code>oh:iconName</code> (<a class="external text-color-blue" target="_blank" href="https://v34.openhab.org/link/icons">openHAB icon</a>), <code>f7:iconName</code> (<a class="external text-color-blue" target="_blank" href="https://framework7.io/icons/">Framework7 icon</a>), <code>material:iconName</code> (<a class="external text-color-blue" target="_blank" href="https://jossef.github.io/material-design-icons-iconfont/">Material icon</a>) or <code>iconify:iconSet:iconName</code> (<a class="external text-color-blue" target="_blank" href="https://icon-sets.iconify.design">Iconify icon</a>, requires being online if not in cache)'),
|
||||
pt('color', 'Highlight Color', 'Color to use when highlighted'),
|
||||
pt('on', '"On" expression', 'Expression to determine when the card should be highlighted. If blank, determine automatically from the primary bound item if applicable.').a()
|
||||
]
|
||||
|
|
|
@ -9,7 +9,7 @@ export const ListItemParameters = () => [
|
|||
pt('title', 'Title', 'Title of the item'),
|
||||
pt('subtitle', 'Subtitle', 'Subtitle of the item'),
|
||||
pt('after', 'After', 'Text to display on the opposite side of the item (set either this or a badge)').a(),
|
||||
pt('icon', 'Icon', 'Use <code>oh:iconName</code> (<a class="external text-color-blue" target="_blank" href="https://www.openhab.org/link/icons">openHAB icon</a>), <code>f7:iconName</code> (<a class="external text-color-blue" target="_blank" href="https://framework7.io/icons/">Framework7 icon</a>), <code>material:iconName</code> (<a class="external text-color-blue" target="_blank" href="https://jossef.github.io/material-design-icons-iconfont/">Material icon</a>) or <code>iconify:iconSet:iconName</code> (<a class="external text-color-blue" target="_blank" href="https://icon-sets.iconify.design">Iconify icon</a>, requires being online if not in cache)'),
|
||||
pt('icon', 'Icon', 'Use <code>oh:iconName</code> (<a class="external text-color-blue" target="_blank" href="https://v34.openhab.org/link/icons">openHAB icon</a>), <code>f7:iconName</code> (<a class="external text-color-blue" target="_blank" href="https://framework7.io/icons/">Framework7 icon</a>), <code>material:iconName</code> (<a class="external text-color-blue" target="_blank" href="https://jossef.github.io/material-design-icons-iconfont/">Material icon</a>) or <code>iconify:iconSet:iconName</code> (<a class="external text-color-blue" target="_blank" href="https://icon-sets.iconify.design">Iconify icon</a>, requires being online if not in cache)'),
|
||||
pt('iconColor', 'Icon Color', 'Not applicable to openHAB icons').a(),
|
||||
pb('iconUseState', 'Icon depends on state', 'Use the state of the item to get a dynamic icon (for openHAB icons only)').a()
|
||||
]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { pb, pi, pt } from '../helpers.js'
|
||||
|
||||
export default () => [
|
||||
pb('icon', 'Icon', '<code>oh:iconName</code> or <code>iconName</code> (<a class="external text-color-blue" target="_blank" href="https://www.openhab.org/link/icons">openHAB icon</a>), <code>f7:iconName</code> (<a class="external text-color-blue" target="_blank" href="https://framework7.io/icons">Framework7 icon</a>), <code>material:iconName</code> (<a class="external text-color-blue" target="_blank" href="https://jossef.github.io/material-design-icons-iconfont/">Material icon</a>) or <code>iconify:iconSet:iconName</code> (<a class="external text-color-blue" target="_blank" href="https://icon-sets.iconify.design">Iconify icon</a>, requires being online if not in cache)'),
|
||||
pb('icon', 'Icon', '<code>oh:iconName</code> or <code>iconName</code> (<a class="external text-color-blue" target="_blank" href="https://v34.openhab.org/link/icons">openHAB icon</a>), <code>f7:iconName</code> (<a class="external text-color-blue" target="_blank" href="https://framework7.io/icons">Framework7 icon</a>), <code>material:iconName</code> (<a class="external text-color-blue" target="_blank" href="https://jossef.github.io/material-design-icons-iconfont/">Material icon</a>) or <code>iconify:iconSet:iconName</code> (<a class="external text-color-blue" target="_blank" href="https://icon-sets.iconify.design">Iconify icon</a>, requires being online if not in cache)'),
|
||||
pi('width', 'Width', 'Width of the icon in pixels'),
|
||||
pi('height', 'Height', 'Height of the icon in pixels'),
|
||||
pt('color', 'Color', 'Color of the icon (for F7/Material icons, a <a class="external text-color-blue" target="_blank" href="https://v5.framework7.io/docs/color-themes.html#colors">Framework7 color theme</a>, for Iconify icons, a CSS color). Not applicable to OH icons.'),
|
||||
|
|
|
@ -273,12 +273,12 @@
|
|||
"addItem": {
|
||||
"!doc": "Creates a new Item within openHAB (see JS Scripting docs/Standard Library/Items).",
|
||||
"!type": "fn(itemConfig: ItemConfig) -> Item",
|
||||
"!url": "https://openhab.org/addons/automation/jsscripting/#itemconfig"
|
||||
"!url": "https://v34.openhab.org/addons/automation/jsscripting/#itemconfig"
|
||||
},
|
||||
"replaceItem": {
|
||||
"!doc": "Replaces (upserts) an item. If an Item does not exist with this name, a new Item will be created with the supplied configuration (see JS Scripting docs/Standard Library/Items).",
|
||||
"!type": "fn(itemConfig: ItemConfig) -> Item",
|
||||
"!url": "https://openhab.org/addons/automation/jsscripting/#itemconfig"
|
||||
"!url": "https://v34.openhab.org/addons/automation/jsscripting/#itemconfig"
|
||||
},
|
||||
"removeItem": {
|
||||
"!doc": "Removes an Item from openHAB. The Item is removed immediately and cannot be recovered.",
|
||||
|
|
|
@ -143,8 +143,7 @@ export default {
|
|||
},
|
||||
imageUrl () {
|
||||
if (this.addon.imageLink) return this.addon.imageLink.replace(/^\/\//, 'https://')
|
||||
let docsBranch = 'final'
|
||||
if (this.$store.state.runtimeInfo.buildString === 'Release Build') docsBranch = 'final-stable'
|
||||
let docsBranch = 'final-3.4.x'
|
||||
return `https://raw.githubusercontent.com/openhab/openhab-docs/${docsBranch}/images/addons/${this.addon.id.substring(this.addon.id.indexOf('-') + 1)}.png`
|
||||
}
|
||||
},
|
||||
|
|
|
@ -123,7 +123,7 @@ export default {
|
|||
id: 'documentationLink',
|
||||
title: 'Documentation',
|
||||
afterIcon: 'question_circle_fill',
|
||||
linkUrl: `https://${this.$store.state.runtimeInfo.buildString === 'Release Build' ? 'www' : 'next'}.openhab.org/addons/${this.addon.type.replace('misc', 'integrations').replace('binding', 'bindings').replace('transformation', 'transformations')}/${this.addon.id.split('-')[1]}` // this.addon.link
|
||||
linkUrl: `https://v34.openhab.org/addons/${this.addon.type.replace('misc', 'integrations').replace('binding', 'bindings').replace('transformation', 'transformations')}/${this.addon.id.split('-')[1]}` // this.addon.link
|
||||
})
|
||||
|
||||
let repository
|
||||
|
|
|
@ -74,8 +74,7 @@ export default {
|
|||
computed: {
|
||||
imageUrl () {
|
||||
if (this.addon.imageLink) return this.addon.imageLink.replace(/^\/\//, 'https://')
|
||||
let docsBranch = 'final'
|
||||
if (this.$store.state.runtimeInfo.buildString === 'Release Build') docsBranch = 'final-stable'
|
||||
let docsBranch = 'final-3.4.x'
|
||||
return `https://raw.githubusercontent.com/openhab/openhab-docs/${docsBranch}/images/addons/${this.addon.id.substring(this.addon.id.indexOf('-') + 1)}.png`
|
||||
}
|
||||
},
|
||||
|
|
|
@ -88,7 +88,7 @@ export default {
|
|||
multiple: !!this.metadata.value && this.metadata.value.indexOf(',') > 0,
|
||||
classSelectKey: this.$f7.utils.id(),
|
||||
docUrl:
|
||||
`https://${this.$store.state.runtimeInfo.buildString === 'Release Build' ? 'www' : 'next'}.openhab.org` +
|
||||
'https://v34.openhab.org' +
|
||||
'/link/alexa',
|
||||
ready: false
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
<config-sheet :parameterGroups="[]" :parameters="parameters" :configuration="metadata.config" />
|
||||
</div>
|
||||
<p class="padding">
|
||||
<f7-link color="blue" external target="_blank" href="https://www.openhab.org/link/google-assistant">
|
||||
<f7-link color="blue" external target="_blank" href="https://v34.openhab.org/link/google-assistant">
|
||||
Google Assistant Integration Documentation
|
||||
</f7-link>
|
||||
</p>
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
</f7-block-footer>
|
||||
</f7-block>
|
||||
<p class="padding">
|
||||
<f7-link color="blue" external target="_blank" href="https://www.openhab.org/link/homekit">
|
||||
<f7-link color="blue" external target="_blank" href="https://v34.openhab.org/link/homekit">
|
||||
HomeKit integration documentation
|
||||
</f7-link>
|
||||
</p>
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
<h2 v-if="$store.state.runtimeInfo" class="block-title-medium">
|
||||
openHAB {{ $store.state.runtimeInfo.version }}<br><small>{{ $store.state.runtimeInfo.buildString }}</small>
|
||||
</h2>
|
||||
<p><f7-link external target="_blank" href="https://www.openhab.org/" v-t="'about.homePage'" /></p>
|
||||
<p><f7-link external target="_blank" href="https://www.openhab.org/docs/" v-t="'about.documentation'" /></p>
|
||||
<p><f7-link external target="_blank" href="https://v34.openhab.org/" v-t="'about.homePage'" /></p>
|
||||
<p><f7-link external target="_blank" href="https://v34.openhab.org/docs/" v-t="'about.documentation'" /></p>
|
||||
<p><f7-link external target="_blank" href="https://community.openhab.org/" v-t="'about.communityForum'" /></p>
|
||||
</f7-block>
|
||||
</f7-col>
|
||||
|
|
|
@ -274,7 +274,7 @@ export default {
|
|||
config: {
|
||||
template:
|
||||
'/* Incomplete example skeleton, check out\n' +
|
||||
' https://openhab.org/link/blocklib-tutorial\n' +
|
||||
' https://v34.openhab.org/link/blocklib-tutorial\n' +
|
||||
' to learn how to build block libraries */\n'
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,9 +16,9 @@
|
|||
<div class="empty-overview" v-else-if="!inChatSession">
|
||||
<empty-state-placeholder icon="house" title="overview.title" text="overview.text" />
|
||||
<f7-row class="display-flex justify-content-center">
|
||||
<f7-button large fill color="blue" external href="https://openhab.org/link/docs" target="_blank" v-t="'home.overview.button.documentation'" />
|
||||
<f7-button large fill color="blue" external href="https://v34.openhab.org/link/docs" target="_blank" v-t="'home.overview.button.documentation'" />
|
||||
<span style="width: 8px" />
|
||||
<f7-button large color="blue" external href="https://openhab.org/link/tutorial" target="_blank" v-t="'home.overview.button.tutorial'" />
|
||||
<f7-button large color="blue" external href="https://v34.openhab.org/link/tutorial" target="_blank" v-t="'home.overview.button.tutorial'" />
|
||||
</f7-row>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -215,8 +215,7 @@ export default {
|
|||
imageUrl () {
|
||||
if (!this.addon) return null
|
||||
if (this.addon.imageLink) return this.addon.imageLink.replace(/^\/\//, 'https://')
|
||||
let docsBranch = 'final'
|
||||
if (this.$store.state.runtimeInfo.buildString === 'Release Build') docsBranch = 'final-stable'
|
||||
let docsBranch = 'final-3.4.x'
|
||||
return `https://raw.githubusercontent.com/openhab/openhab-docs/${docsBranch}/images/addons/${this.addon.id.substring(this.addon.id.indexOf('-') + 1)}.png`
|
||||
},
|
||||
addonDescription () {
|
||||
|
@ -234,7 +233,7 @@ export default {
|
|||
if (!this.addon) return ''
|
||||
if (this.serviceId && this.serviceId !== 'karaf' && this.addon.link) return this.addon.link
|
||||
if (this.addon.id.indexOf('-') > 0) {
|
||||
let url = `https://${this.$store.state.runtimeInfo.buildString === 'Release Build' ? 'www' : 'next'}.openhab.org` +
|
||||
let url = 'https://v34.openhab.org' +
|
||||
`/addons/${this.addon.type.replace('misc', 'integrations').replace('binding', 'bindings').replace('transformation', 'transformations')}` +
|
||||
`/${this.addon.id.split('-')[1]}`
|
||||
return url
|
||||
|
@ -288,13 +287,12 @@ export default {
|
|||
processDescription () {
|
||||
if (!this.addon.description && this.addon.author === 'openHAB') {
|
||||
// assuming the add-on is an official one (distribution), try to fetch the documentation from GitHub
|
||||
let docsBranch = 'final'
|
||||
if (this.$store.state.runtimeInfo.buildString === 'Release Build') docsBranch = 'final-stable'
|
||||
let docsBranch = 'final-3.4.x'
|
||||
let addonTypeFolder = '_addons_' + this.addon.type
|
||||
if (this.addon.type === 'misc') addonTypeFolder = '_addons_io'
|
||||
if (this.addon.type !== 'automation') addonTypeFolder += 's'
|
||||
let addonId = this.addon.id.split('-')[1]
|
||||
let docUrl = (this.$store.state.runtimeInfo.buildString === 'Release Build') ? 'https://www.openhab.org' : 'https://next.openhab.org'
|
||||
let docUrl = (this.$store.state.runtimeInfo.buildString === 'Release Build') ? 'https://v34.openhab.org' : 'https://next.openhab.org'
|
||||
docUrl += `/addons/${this.addon.type}/${addonId}`
|
||||
let docSrcUrl = `https://raw.githubusercontent.com/openhab/openhab-docs/${docsBranch}/${addonTypeFolder}/${addonId}`
|
||||
|
||||
|
|
|
@ -231,7 +231,7 @@
|
|||
|
||||
<category name="Lists" colour="%{BKY_LISTS_HUE}">
|
||||
<button
|
||||
helpUrl="https://www.openhab.org/docs/configuration/blockly/rules-blockly-standard-ext.html#lists"
|
||||
helpUrl="https://v34.openhab.org/docs/configuration/blockly/rules-blockly-standard-ext.html#lists"
|
||||
text="Help"
|
||||
callbackKey="ohBlocklyHelp" />
|
||||
<block type="lists_create_with">
|
||||
|
@ -297,7 +297,7 @@
|
|||
|
||||
<category name="Color" colour="%{BKY_COLOUR_HUE}">
|
||||
<button
|
||||
helpUrl="https://www.openhab.org/docs/configuration/blockly/rules-blockly-standard-ext.html#colors"
|
||||
helpUrl="https://v34.openhab.org/docs/configuration/blockly/rules-blockly-standard-ext.html#colors"
|
||||
text="Help"
|
||||
callbackKey="ohBlocklyHelp" />
|
||||
<block type="colour_picker" />
|
||||
|
@ -348,7 +348,7 @@
|
|||
<category name="openHAB" colour="0" :expanded="$f7.device.desktop">
|
||||
<category name="Items & Things">
|
||||
<button
|
||||
helpUrl="https://www.openhab.org/docs/configuration/blockly/rules-blockly-items-things.html"
|
||||
helpUrl="https://v34.openhab.org/docs/configuration/blockly/rules-blockly-items-things.html"
|
||||
text="Help"
|
||||
callbackKey="ohBlocklyHelp" />
|
||||
<block type="oh_getitem_state">
|
||||
|
@ -402,7 +402,7 @@
|
|||
|
||||
<category name="Timers & Delays">
|
||||
<button
|
||||
helpUrl="https://www.openhab.org/docs/configuration/blockly/rules-blockly-timers-and-delays.html"
|
||||
helpUrl="https://v34.openhab.org/docs/configuration/blockly/rules-blockly-timers-and-delays.html"
|
||||
text="Help"
|
||||
callbackKey="ohBlocklyHelp" />
|
||||
<block type="oh_sleep" />
|
||||
|
@ -475,7 +475,7 @@
|
|||
|
||||
<category name="Voice & Multimedia">
|
||||
<button
|
||||
helpUrl="https://www.openhab.org/docs/configuration/blockly/rules-blockly-voice-and-multimedia.html"
|
||||
helpUrl="https://v34.openhab.org/docs/configuration/blockly/rules-blockly-voice-and-multimedia.html"
|
||||
text="Help"
|
||||
callbackKey="ohBlocklyHelp" />
|
||||
<block type="oh_playmedia_sink">
|
||||
|
@ -535,7 +535,7 @@
|
|||
</category>
|
||||
<category name="Dates & Times">
|
||||
<button
|
||||
helpUrl="https://www.openhab.org/docs/configuration/blockly/rules-blockly-date-handling.html"
|
||||
helpUrl="https://v34.openhab.org/docs/configuration/blockly/rules-blockly-date-handling.html"
|
||||
text="Help"
|
||||
callbackKey="ohBlocklyHelp" />
|
||||
<block type="oh_zdt_now" />
|
||||
|
@ -656,7 +656,7 @@
|
|||
|
||||
<category name="Ephemeris">
|
||||
<button
|
||||
helpUrl="https://www.openhab.org/docs/configuration/blockly/rules-blockly-ephemeris.html"
|
||||
helpUrl="https://v34.openhab.org/docs/configuration/blockly/rules-blockly-ephemeris.html"
|
||||
text="Help"
|
||||
callbackKey="ohBlocklyHelp" />
|
||||
<block type="oh_ephemeris_check">
|
||||
|
@ -680,7 +680,7 @@
|
|||
|
||||
<category name="Notifications">
|
||||
<button
|
||||
helpUrl="https://www.openhab.org/docs/configuration/blockly/rules-blockly-notifications.html"
|
||||
helpUrl="https://v34.openhab.org/docs/configuration/blockly/rules-blockly-notifications.html"
|
||||
text="Help"
|
||||
callbackKey="ohBlocklyHelp" />
|
||||
<block type="oh_sendNotification">
|
||||
|
@ -726,7 +726,7 @@
|
|||
|
||||
<category name="Persistence">
|
||||
<button
|
||||
helpUrl="https://www.openhab.org/docs/configuration/blockly/rules-blockly-persistence.html"
|
||||
helpUrl="https://v34.openhab.org/docs/configuration/blockly/rules-blockly-persistence.html"
|
||||
text="Help"
|
||||
callbackKey="ohBlocklyHelp" />
|
||||
<block type="oh_zdt_plusminus">
|
||||
|
@ -797,7 +797,7 @@
|
|||
|
||||
<category name="Value Storage">
|
||||
<button
|
||||
helpUrl="https://www.openhab.org/docs/configuration/blockly/rules-blockly-value-storage.html"
|
||||
helpUrl="https://v34.openhab.org/docs/configuration/blockly/rules-blockly-value-storage.html"
|
||||
text="Help"
|
||||
callbackKey="ohBlocklyHelp" />
|
||||
<block type="oh_store_value">
|
||||
|
@ -830,7 +830,7 @@
|
|||
|
||||
<category name="Run & Process">
|
||||
<button
|
||||
helpUrl="https://www.openhab.org/docs/configuration/blockly/rules-blockly-run-and-process.html"
|
||||
helpUrl="https://v34.openhab.org/docs/configuration/blockly/rules-blockly-run-and-process.html"
|
||||
text="Help"
|
||||
callbackKey="ohBlocklyHelp" />
|
||||
<block type="oh_callscriptfile">
|
||||
|
@ -880,7 +880,7 @@
|
|||
|
||||
<category name="Logging & Output">
|
||||
<button
|
||||
helpUrl="https://www.openhab.org/docs/configuration/blockly/rules-blockly-logging.html"
|
||||
helpUrl="https://v34.openhab.org/docs/configuration/blockly/rules-blockly-logging.html"
|
||||
text="Help"
|
||||
callbackKey="ohBlocklyHelp" />
|
||||
<block type="oh_log">
|
||||
|
|
|
@ -80,7 +80,7 @@
|
|||
<f7-block-title>Profile</f7-block-title>
|
||||
<f7-block-footer class="padding-left padding-right">
|
||||
Profiles define how Channels and Items work together. Install transformation add-ons to get additional profiles.
|
||||
<f7-link external color="blue" target="_blank" href="https://www.openhab.org/link/profiles">
|
||||
<f7-link external color="blue" target="_blank" href="https://v34.openhab.org/link/profiles">
|
||||
Learn more about profiles.
|
||||
</f7-link>
|
||||
</f7-block-footer>
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
<f7-block-title>Profile</f7-block-title>
|
||||
<f7-block-footer class="padding-left padding-right">
|
||||
Profiles define how Channels and Items work together. Install transformation add-ons to get additional profiles.
|
||||
<f7-link external color="blue" target="_blank" href="https://www.openhab.org/link/profiles">
|
||||
<f7-link external color="blue" target="_blank" href="https://v34.openhab.org/link/profiles">
|
||||
Learn more about profiles.
|
||||
</f7-link>
|
||||
<f7-block v-if="!ready" class="text-align-center">
|
||||
|
|
|
@ -118,7 +118,7 @@
|
|||
</f7-block>
|
||||
<f7-block strong>
|
||||
{{ $t('setupwizard.addons.header1') }}<br>{{ $t('setupwizard.addons.header2') }}<br><br>
|
||||
<a class="text-color-blue external" target="_blank" href="https://www.openhab.org/addons/" v-t="'setupwizard.addons.browseAddonsOnWebsite'" />
|
||||
<a class="text-color-blue external" target="_blank" href="https://v34.openhab.org/addons/" v-t="'setupwizard.addons.browseAddonsOnWebsite'" />
|
||||
</f7-block>
|
||||
<f7-block class="padding">
|
||||
<f7-row>
|
||||
|
|
Loading…
Reference in New Issue