iobroker.ical 1.14.0 → 1.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -32,6 +32,10 @@ Sentry reporting, starting with js-controller 3.0, means that this adapter can u
32
32
  Placeholder for the next version (at the beginning of the line):
33
33
  ### **WORK IN PROGRESS**
34
34
  -->
35
+ ### 1.14.1 (2024-01-29)
36
+ * (klein0r) Create dummy file in files tab
37
+ * (klein0r) Fixed recurring events
38
+
35
39
  ### 1.14.0 (2024-01-07)
36
40
  * (klein0r) Allow to set custom http user agent
37
41
  * (klein0r) Added option to use files tab for calendar files
@@ -47,12 +51,6 @@ Sentry reporting, starting with js-controller 3.0, means that this adapter can u
47
51
  * (jens-maus) updated node-ical to latest 0.17.0
48
52
  * (jens-maus) updated dependencies
49
53
 
50
- ### 1.13.3 (2023-06-20)
51
- * (jens-maus) updated node-ical to latest 0.16.1
52
- * (klein0r) Use color picker in adapter settings
53
- * (klein0r) Dropped Admin 4 UI
54
- * (klein0r) Added Ukrainian language
55
-
56
54
  ## License
57
55
 
58
56
  The MIT License (MIT)
package/io-package.json CHANGED
@@ -1,8 +1,21 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "ical",
4
- "version": "1.14.0",
4
+ "version": "1.14.1",
5
5
  "news": {
6
+ "1.14.1": {
7
+ "en": "Create dummy file in files tab\nFixed recurring events",
8
+ "de": "Erstellen Sie Dummy-Datei in Dateien Tab\nFeste wiederkehrende Ereignisse",
9
+ "ru": "Создать файл dummy в вкладке\nИсправленные повторяющиеся события",
10
+ "pt": "Criar arquivo fictício na guia de arquivos\nCorrigido eventos recorrentes",
11
+ "nl": "Pummelbestand aanmaken in tabblad bestanden\nVaste terugkerende gebeurtenissen",
12
+ "fr": "Créer un fichier fictif dans l'onglet fichiers\nÉvénements récurrents fixes",
13
+ "it": "Crea file fittizio nella scheda file\nEventi ricorrenti fissi",
14
+ "es": "Crear archivo dummy en la pestaña archivos\nActos recurrentes fijos",
15
+ "pl": "Utwórz plik atrapy w zakładce pliki\nNaprawiono powtarzające się zdarzenia",
16
+ "uk": "Створіть файл dummy у вкладці файлів\nВиправлено повторювані події",
17
+ "zh-cn": "在文件标签中创建模拟文件\n固定经常性活动"
18
+ },
6
19
  "1.14.0": {
7
20
  "en": "Allow to set custom http user agent\nAdded option to use files tab for calendar files",
8
21
  "de": "Erlauben Sie, benutzerdefinierte http-Benutzer-Agent\nOption hinzugefügt, um Dateien Tab für Kalenderdateien zu verwenden",
@@ -80,19 +93,6 @@
80
93
  "pl": "naprawić dziwne wiadomości logowe poprzez zdegradowanie RRule'a ponownie",
81
94
  "uk": "виправити дивні повідомлення журналу, знову знизивши RRule",
82
95
  "zh-cn": "f 照常逻辑信息,再降解后再降解。"
83
- },
84
- "1.13.1": {
85
- "en": "Changed request library",
86
- "de": "Bibliothek der geänderten Anfrage",
87
- "ru": "Измененная библиотека запросов",
88
- "pt": "Biblioteca de solicitação alterada",
89
- "nl": "Verandering van verzoek bibliotheek",
90
- "fr": "Changed request library",
91
- "it": "Libreria richiesta modificata",
92
- "es": "Biblioteca de solicitud modificada",
93
- "pl": "Zmiennikowa biblioteka",
94
- "uk": "Змінена бібліотека запитів",
95
- "zh-cn": "更改要求图书馆"
96
96
  }
97
97
  },
98
98
  "title": "iCal Calendar",
package/main.js CHANGED
@@ -1,29 +1,17 @@
1
- /**
2
- * ioBroker.iCal
3
- * Copyright 2015-2020, bluefox <dogafox@gmail.com>
4
- *
5
- * Based on ccu.io vader722 adapter.
6
- * https://github.com/hobbyquaker/ccu.io/tree/master/adapter/ical
7
- *
8
- */
9
-
10
- /* jshint -W097 */
11
- /* jshint strict:false */
12
- /* jshint esversion: 6 */
13
- /* jslint node: true */
14
1
  'use strict';
15
2
 
16
- // Get common adapter utils
3
+ const ical = require('node-ical');
4
+ const crypto = require('node:crypto');
5
+ const fs = require('node:fs');
6
+ const path = require('node:path');
7
+ const https = require('node:https');
8
+
17
9
  const utils = require('@iobroker/adapter-core');
10
+ const adapterName = require('./package.json').name.split('.').pop();
11
+
18
12
  const RRule = require('rrule').RRule;
19
- const ical = require('node-ical');
20
13
  const ce = require('cloneextend');
21
- const crypto = require('crypto');
22
- const fs = require('fs');
23
- const path = require('path');
24
- const adapterName = require('./package.json').name.split('.').pop();
25
14
  const axios = require('axios');
26
- const https = require('https');
27
15
 
28
16
  let adapter;
29
17
  let stopped = false;
@@ -1604,6 +1592,14 @@ function main() {
1604
1592
  adapter.config.language = adapter.config.language || 'en';
1605
1593
  adapter.config.daysPast = parseInt(adapter.config.daysPast) || 0;
1606
1594
 
1595
+ const helpFilePath = '/UPLOAD_FILES_HERE.txt';
1596
+ adapter.fileExistsAsync(adapter.namespace, helpFilePath)
1597
+ .then(fileExists => {
1598
+ if (!fileExists) {
1599
+ adapter.writeFileAsync(adapter.namespace, helpFilePath, 'Place your *.ics files in this directory');
1600
+ }
1601
+ });
1602
+
1607
1603
  syncUserEvents(readAll);
1608
1604
  }
1609
1605
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.ical",
3
- "version": "1.14.0",
3
+ "version": "1.14.1",
4
4
  "description": "Allows read information from google calender and from iCal.",
5
5
  "author": {
6
6
  "name": "bluefox",
@@ -40,11 +40,11 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@iobroker/adapter-core": "^3.0.4",
43
- "axios": "1.6.5",
43
+ "axios": "1.6.7",
44
44
  "cloneextend": "^0.0.3",
45
45
  "json-schema": "^0.4.0",
46
46
  "node-ical": "^0.17.1",
47
- "rrule": "2.7.1"
47
+ "rrule": "2.8.1"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@alcalzone/release-script": "^3.7.0",
@@ -56,11 +56,11 @@
56
56
  "@types/chai": "^4.3.11",
57
57
  "@types/chai-as-promised": "^7.1.8",
58
58
  "@types/mocha": "^10.0.6",
59
- "@types/node": "^20.10.6",
59
+ "@types/node": "^20.11.10",
60
60
  "@types/proxyquire": "^1.3.31",
61
- "@types/sinon": "^17.0.2",
61
+ "@types/sinon": "^17.0.3",
62
62
  "@types/sinon-chai": "^3.2.12",
63
- "chai": "^4.3.10",
63
+ "chai": "^4.4.1",
64
64
  "chai-as-promised": "^7.1.1",
65
65
  "chai-string": "^1.5.0",
66
66
  "eslint": "^8.56.0",