-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
284 changed files
with
13,750 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// This file extends the AdapterConfig type from "@types/iobroker" | ||
// using the actual properties present in io-package.json | ||
// in order to provide typings for adapter.config properties | ||
|
||
import { native } from '../../io-package.json'; | ||
|
||
type _AdapterConfig = typeof native; | ||
|
||
// Augment the globally declared type ioBroker.AdapterConfig | ||
declare global { | ||
namespace ioBroker { | ||
interface AdapterConfig extends _AdapterConfig { | ||
// Do not enter anything here! | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,348 @@ | ||
export const dayOfWeeksFull: Record<ioBroker.Languages, string[]> = { | ||
en: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], | ||
de: ['Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag'], | ||
ru: ['Воскресенье', 'Понедельник', 'Вторник', 'Среда', 'Четверг', 'Пятница', 'Суббота'], | ||
pt: ['Domingo', 'Segunda-feira', 'Terça-feira', 'Quarta-feira', 'Quinta-feira', 'Sexta-feira', 'Sábado'], | ||
nl: ['Zondag', 'Maandag', 'Dinsdag', 'Woensdag', 'Donderdag', 'Vrijdag', 'Zaterdag'], | ||
fr: ['Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi'], | ||
it: ['Domenica', 'Lunedì', 'Martedì', 'Mercoledì', 'Giovedì', 'Venerdì', 'Sabato'], | ||
es: ['Domingo', 'Lunes', 'Martes', 'Miércoles', 'Jueves', 'Viernes', 'Sábado'], | ||
pl: ['Niedziela', 'Poniedziałek', 'Wtorek', 'Środa', 'Czwartek', 'Piątek', 'Sobota'], | ||
uk: ['неділя', 'понеділок', 'вівторок', 'Середа', 'четвер', "П'ятниця", 'Субота'], | ||
'zh-cn': ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'], | ||
}; | ||
export const dayOfWeeksShort: Record<ioBroker.Languages, string[]> = { | ||
en: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'], | ||
de: ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'], | ||
ru: ['Вс', 'Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб'], | ||
pt: ['Do', 'Se', 'Te', 'Qu', 'Qu', 'Se', 'Sá'], | ||
nl: ['Zo', 'Ma', 'Di', 'Wo', 'Do', 'Vr', 'Za'], | ||
fr: ['Di', 'Lu', 'Ma', 'Me', 'Je', 'Ve', 'Sa'], | ||
it: ['Do', 'Lu', 'Ma', 'Me', 'Gi', 'Ve', 'Sa'], | ||
es: ['Do', 'Lu', 'Ma', 'Mi', 'Ju', 'Vi', 'Sá'], | ||
pl: ['Ni', 'Po', 'Wt', 'Śr', 'Cz', 'Pi', 'So'], | ||
uk: ['Нд', 'Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб'], | ||
'zh-cn': ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'], | ||
}; | ||
|
||
export const monthFull: Record<ioBroker.Languages, string[]> = { | ||
en: [ | ||
'January', | ||
'February', | ||
'March', | ||
'April', | ||
'May', | ||
'June', | ||
'July', | ||
'August', | ||
'September', | ||
'October', | ||
'November', | ||
'December', | ||
], | ||
de: [ | ||
'Januar', | ||
'Februar', | ||
'März', | ||
'April', | ||
'Mai', | ||
'Juni', | ||
'Juli', | ||
'August', | ||
'September', | ||
'Oktober', | ||
'November', | ||
'Dezember', | ||
], | ||
ru: [ | ||
'Январь', | ||
'Февраль', | ||
'Март', | ||
'Апрель', | ||
'Май', | ||
'Июнь', | ||
'Июль', | ||
'Август', | ||
'Сентябрь', | ||
'Октябрь', | ||
'Ноябрь', | ||
'Декабрь', | ||
], | ||
pt: [ | ||
'Janeiro', | ||
'Fevereiro', | ||
'Março', | ||
'Abril', | ||
'Maio', | ||
'Junho', | ||
'Julho', | ||
'Agosto', | ||
'Setembro', | ||
'Outubro', | ||
'Novembro', | ||
'Dezembro', | ||
], | ||
nl: [ | ||
'Januari', | ||
'Februari', | ||
'Maart', | ||
'April', | ||
'Mei', | ||
'Juni', | ||
'Juli', | ||
'Augustus', | ||
'September', | ||
'Oktober', | ||
'November', | ||
'December', | ||
], | ||
fr: [ | ||
'Janvier', | ||
'Février', | ||
'Mars', | ||
'Avril', | ||
'Mai', | ||
'Juin', | ||
'Juillet', | ||
'Août', | ||
'Septembre', | ||
'Octobre', | ||
'Novembre', | ||
'Décembre', | ||
], | ||
it: [ | ||
'Gennaio', | ||
'Febbraio', | ||
'Marzo', | ||
'Aprile', | ||
'Maggio', | ||
'Giugno', | ||
'Luglio', | ||
'Agosto', | ||
'Settembre', | ||
'Ottobre', | ||
'Novembre', | ||
'Dicembre', | ||
], | ||
es: [ | ||
'Enero', | ||
'Febrero', | ||
'Marzo', | ||
'Abril', | ||
'Mayo', | ||
'Junio', | ||
'Julio', | ||
'Agosto', | ||
'Septiembre', | ||
'Octubre', | ||
'Noviembre', | ||
'Diciembre', | ||
], | ||
pl: [ | ||
'Styczeń', | ||
'Luty', | ||
'Marzec', | ||
'Kwiecień', | ||
'Maj', | ||
'Czerwiec', | ||
'Lipiec', | ||
'Sierpień', | ||
'Wrzesień', | ||
'Październik', | ||
'Listopad', | ||
'Grudzień', | ||
], | ||
uk: [ | ||
'Січень', | ||
'Лютий', | ||
'Березень', | ||
'Квітень', | ||
'Травень', | ||
'Червень', | ||
'Липень', | ||
'Серпень', | ||
'Вересень', | ||
'Жовтень', | ||
'Листопад', | ||
'Грудень', | ||
], | ||
'zh-cn': ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'], | ||
}; | ||
|
||
export const monthFullGen: Record<ioBroker.Languages, string[]> = { | ||
en: [ | ||
'January', | ||
'February', | ||
'March', | ||
'April', | ||
'May', | ||
'June', | ||
'July', | ||
'August', | ||
'September', | ||
'October', | ||
'November', | ||
'December', | ||
], | ||
de: [ | ||
'Januar', | ||
'Februar', | ||
'März', | ||
'April', | ||
'Mai', | ||
'Juni', | ||
'Juli', | ||
'August', | ||
'September', | ||
'Oktober', | ||
'November', | ||
'Dezember', | ||
], | ||
ru: [ | ||
'Января', | ||
'Февраля', | ||
'Марта', | ||
'Апреля', | ||
'Мая', | ||
'Июня', | ||
'Июля', | ||
'Августа', | ||
'Сентября', | ||
'Октября', | ||
'Ноября', | ||
'Декабря', | ||
], | ||
pt: [ | ||
'Janeiro', | ||
'Fevereiro', | ||
'Março', | ||
'Abril', | ||
'Maio', | ||
'Junho', | ||
'Julho', | ||
'Agosto', | ||
'Setembro', | ||
'Outubro', | ||
'Novembro', | ||
'Dezembro', | ||
], | ||
nl: [ | ||
'Januari', | ||
'Februari', | ||
'Maart', | ||
'April', | ||
'Mei', | ||
'Juni', | ||
'Juli', | ||
'Augustus', | ||
'September', | ||
'Oktober', | ||
'November', | ||
'December', | ||
], | ||
fr: [ | ||
'Janvier', | ||
'Février', | ||
'Mars', | ||
'Avril', | ||
'Mai', | ||
'Juin', | ||
'Juillet', | ||
'Août', | ||
'Septembre', | ||
'Octobre', | ||
'Novembre', | ||
'Décembre', | ||
], | ||
it: [ | ||
'Gennaio', | ||
'Febbraio', | ||
'Marzo', | ||
'Aprile', | ||
'Maggio', | ||
'Giugno', | ||
'Luglio', | ||
'Agosto', | ||
'Settembre', | ||
'Ottobre', | ||
'Novembre', | ||
'Dicembre', | ||
], | ||
es: [ | ||
'Enero', | ||
'Febrero', | ||
'Marzo', | ||
'Abril', | ||
'Mayo', | ||
'Junio', | ||
'Julio', | ||
'Agosto', | ||
'Septiembre', | ||
'Octubre', | ||
'Noviembre', | ||
'Diciembre', | ||
], | ||
pl: [ | ||
'Styczeń', | ||
'Luty', | ||
'Marzec', | ||
'Kwiecień', | ||
'Maj', | ||
'Czerwiec', | ||
'Lipiec', | ||
'Sierpień', | ||
'Wrzesień', | ||
'Październik', | ||
'Listopad', | ||
'Grudzień', | ||
], | ||
uk: [ | ||
'Січень', | ||
'Лютий', | ||
'Березень', | ||
'Квітень', | ||
'Травень', | ||
'Червень', | ||
'Липень', | ||
'Серпень', | ||
'Вересень', | ||
'Жовтень', | ||
'Листопад', | ||
'Грудень', | ||
], | ||
'zh-cn': ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'], | ||
}; | ||
|
||
export const monthShort: Record<ioBroker.Languages, string[]> = { | ||
en: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'June', 'July', 'Aug', 'Sept', 'Oct', 'Nov', 'Dec'], | ||
de: ['Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'], | ||
ru: ['Янв', 'Фев', 'Мар', 'Апр', 'Май', 'Июнь', 'Июль', 'Авг', 'Сен', 'Окт', 'Ноя', 'Дек'], | ||
pt: ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'], | ||
nl: ['Jan', 'Feb', 'Maa', 'Apr', 'Mei', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'], | ||
fr: ['Jan', 'Fév', 'Mar', 'Avr', 'Mai', 'Jui', 'Jui', 'Aoû', 'Sep', 'Oct', 'Nov', 'Déc'], | ||
it: ['Gen', 'Feb', 'Mar', 'Apr', 'Mag', 'Giu', 'Lug', 'Ago', 'Set', 'Ott', 'Nov', 'Dic'], | ||
es: ['Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul', 'Ago', 'Sep', 'Oct', 'Nov', 'Dic'], | ||
pl: ['Sty', 'Lut', 'Mar', 'Kwi', 'Maj', 'Cze', 'Lip', 'Sie', 'Wrz', 'Paź', 'Lis', 'Gru'], | ||
uk: ['Січ', 'Лют', 'Бер', 'Кві', 'Тра', 'Чер', 'Лип', 'Сер', 'Вер', 'Жов', 'Лис', 'Гру'], | ||
'zh-cn': ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'], | ||
}; | ||
|
||
export type AstroEvent = 'sunrise' | 'sunset' | 'sunriseEnd' | 'sunsetStart' | 'dawn' | 'dusk' | 'nauticalDawn' | 'nauticalDusk' | 'nadir' | 'nightEnd' | 'night' | 'goldenHourEnd' | 'goldenHour' | 'solarNoon'; | ||
|
||
export const astroList: AstroEvent[] = [ | ||
'sunrise', | ||
'sunset', | ||
'sunriseEnd', | ||
'sunsetStart', | ||
'dawn', | ||
'dusk', | ||
'nauticalDawn', | ||
'nauticalDusk', | ||
'nadir', | ||
'nightEnd', | ||
'night', | ||
'goldenHourEnd', | ||
'goldenHour', | ||
'solarNoon', | ||
]; | ||
export const astroListLow = astroList.map(str => str.toLowerCase()); |
Oops, something went wrong.