From 83b53165b01190dc7e9aca945c6063312af9557e Mon Sep 17 00:00:00 2001
From: superzilence <42315793+superzilence@users.noreply.github.com>
Date: Sun, 18 Jan 2026 16:18:31 +0100
Subject: [PATCH 1/2] Update wastecollectionProvider_4.js
Fix for cyclusnv new url
---
wastecollectionProvider_4.js | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/wastecollectionProvider_4.js b/wastecollectionProvider_4.js
index 8182d00..f41ed93 100644
--- a/wastecollectionProvider_4.js
+++ b/wastecollectionProvider_4.js
@@ -1,4 +1,4 @@
-//41.0.0"ICSId"
+//41.0.1"ICSId"
//provider cyclusnv.nl testdata:2421ag 233 0569200000021380
function readCalendar(wasteZipcode, wasteHouseNr, extraDates, enableCreateICS, wasteICSId, wasteStreet, wasteStreetName, wasteCity, wasteFullICSUrl) {
@@ -44,7 +44,8 @@
writeWasteDates(wasteDatesString, enableCreateICS);
}
}
- xmlhttp.open("GET", "https://afvalkalender.cyclusnv.nl/ical/" + wasteICSId, true);
+ // fixed endpoint
+ xmlhttp.open("GET", "https://cyclusnv.nl/ical/" + wasteICSId, true);
xmlhttp.send();
}
@@ -74,7 +75,7 @@
doc2.onreadystatechange=function() {
if (doc2.readyState === 4){
if (doc2.status === 0) {
- updateWasteIcon("no");
+ // updateWasteIcon("no"); // defined in QML, not in provider JS scope
}
}
}
@@ -91,7 +92,7 @@
outputICS = outputICS + "BEGIN:VEVENT\r\n";
outputICS = outputICS + "DTSTART;VALUE=DATE:" + tmpICS[i].substring(0,4) + tmpICS[i].substring(5,7) + tmpICS[i].substring(8,10) + "\r\n";
outputICS = outputICS + "SUMMARY:" + wasteTypeFriendlyName(tmpICS[i].substring(11,12)) + "\r\n";
- outputICS = outputICS + "BEGIN:VEVENT\r\n";
+ outputICS = outputICS + "END:VEVENT\r\n";
}
}
var doc3 = new XMLHttpRequest();
@@ -100,4 +101,3 @@
}
}
-
From d6cb2365124912d169001dca71b456870fdd825a Mon Sep 17 00:00:00 2001
From: superzilence <42315793+superzilence@users.noreply.github.com>
Date: Sun, 18 Jan 2026 16:44:03 +0100
Subject: [PATCH 2/2] Update wastecollectionProvider_4.js
---
wastecollectionProvider_4.js | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/wastecollectionProvider_4.js b/wastecollectionProvider_4.js
index f41ed93..385fc92 100644
--- a/wastecollectionProvider_4.js
+++ b/wastecollectionProvider_4.js
@@ -75,7 +75,7 @@
doc2.onreadystatechange=function() {
if (doc2.readyState === 4){
if (doc2.status === 0) {
- // updateWasteIcon("no"); // defined in QML, not in provider JS scope
+ updateWasteIcon("no");
}
}
}
@@ -92,7 +92,7 @@
outputICS = outputICS + "BEGIN:VEVENT\r\n";
outputICS = outputICS + "DTSTART;VALUE=DATE:" + tmpICS[i].substring(0,4) + tmpICS[i].substring(5,7) + tmpICS[i].substring(8,10) + "\r\n";
outputICS = outputICS + "SUMMARY:" + wasteTypeFriendlyName(tmpICS[i].substring(11,12)) + "\r\n";
- outputICS = outputICS + "END:VEVENT\r\n";
+ outputICS = outputICS + "BEGIN:VEVENT\r\n";
}
}
var doc3 = new XMLHttpRequest();
@@ -101,3 +101,4 @@
}
}
+