Dashticz - Module - Garbage collector

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: htilburgs, robgeerts

geertvercamer
Posts: 9
Joined: Friday 12 May 2017 20:03
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by geertvercamer » Monday 04 September 2017 19:48

Hi,

here in Belgium we have an optional (= pay extra) service for the collection of waste from the garden (grass, leaves, ...). Would it be possible to define an extra 'garbage'? I could use a calendar, but a green 'klikko' would be nice.
Thanks.
Example: https://wedevise.nl/dashticz/ical/demo/ ... /basic.ics

Thanks.

User avatar
robgeerts
Posts: 1140
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: Son, NL
Contact:

Re: Dashticz - Module - Garbage collector

Post by robgeerts » Tuesday 05 September 2017 21:05

Indeed, sorry, tried anotherway (it posts its data to a specific url) but they dont accept that...
Creator of Dashticz, Do you appreciate my work and want to buy me a beer? You can send Bitcoins to 17Qy4bsLM9J238fCZt5kaRc2bD5S1Aw6og or donate via PayPal: https://www.paypal.me/robgeerts

jjnj
Posts: 232
Joined: Thursday 31 July 2014 13:51
Target OS: Windows
Domoticz version:
Location: NL
Contact:

Re: Dashticz - Module - Garbage collector

Post by jjnj » Sunday 17 September 2017 11:59

I'm still having issues with the module saying "Loading''
My config:

Code: Select all

config['garbage_company'] = 'afvalwijzer';
config['garbage_zipcode'] = '170Xxx';
config['garbage_street'] = 0;
config['garbage_housenumber'] = '1';
I'm now running the latest beta

marxkemp
Posts: 10
Joined: Sunday 17 January 2016 14:22
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by marxkemp » Wednesday 20 September 2017 10:56

Mozart wrote:
Monday 31 July 2017 8:22
I found out how to get the JSON output from http://www.rova.nl. I use the following to get the info:

Code: Select all

curl -v --cookie "RovaLc_inwoners={\"Id\":160266,\"ZipCode\":\"7731ZT\",\"HouseNumber\":\"84\",\"HouseAddition\":null,\"Municipality\":\"Ommen\",\"Province\":null,\"Firstname\":null,\"Lastname\":null,\"UserAgent\":\"\",\"School\":null,\"Street\":null,\"Country\":null,\"Portal\":null,\"AreaLevel\":5,\"City\":\"Ommen\",\"Ip\":null}" https://www.rova.nl/api/TrashCalendar/GetCalendarItems?portal=inwoners
The output looks like this:

Code: Select all

*   Trying 141.138.194.225...
* Connected to www.rova.nl (141.138.194.225) port 443 (#0)
* found 173 certificates in /etc/ssl/certs/ca-certificates.crt
* found 696 certificates in /etc/ssl/certs
* ALPN, offering http/1.1
* SSL connection using TLS1.2 / ECDHE_RSA_AES_256_CBC_SHA384
*        server certificate verification OK
*        server certificate status verification SKIPPED
*        common name: www.rova.nl (matched)
*        server certificate expiration date OK
*        server certificate activation date OK
*        certificate public key: RSA
*        certificate version: #3
*        subject: CN=www.rova.nl
*        start date: Tue, 23 May 2017 06:01:00 GMT
*        expire date: Mon, 21 Aug 2017 06:01:00 GMT
*        issuer: C=US,O=Let's Encrypt,CN=Let's Encrypt Authority X3
*        compression: NULL
* ALPN, server did not agree to a protocol
> GET /api/TrashCalendar/GetCalendarItems?portal=inwoners HTTP/1.1
> Host: www.rova.nl
> User-Agent: curl/7.47.0
> Accept: */*
> Cookie: RovaLc_inwoners={"Id":160266,"ZipCode":"7731ZT","HouseNumber":"84","HouseAddition":null,"Municipality":"Ommen","Province":null,"Firstname":null,"Lastname":null,"UserAgent":"","School":null,"Street":null,"Country":null,"Portal":null,"AreaLevel":5,"City":"Ommen","Ip":null}
>
< HTTP/1.1 200 OK
< Cache-Control: no-cache
< Pragma: no-cache
< Content-Type: application/json; charset=utf-8
< Expires: -1
< Server: Microsoft-IIS/8.5
< X-AspNet-Version: 4.0.30319
< X-Powered-By: ASP.NET
< Date: Mon, 31 Jul 2017 06:20:40 GMT
< Content-Length: 279
<
* Connection #0 to host www.rova.nl left intact
[{"GarbageTypeCode":"GFT","GarbageType":"GFT","Date":"2017-08-04T00:00:00","Regular":true},{"GarbageTypeCode":"GFT","GarbageType":"GFT","Date":"2017-08-18T00:00:00","Regular":true},{"GarbageTypeCode":"PLASTICPLUS","GarbageType":"PMD","Date":"2017-08-25T00:00:00","Regular":true}]
Can you integrate this into the code?
Could this be added? Couldn't find a reply on this post.

User avatar
robgeerts
Posts: 1140
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: Son, NL
Contact:

Re: Dashticz - Module - Garbage collector

Post by robgeerts » Sunday 01 October 2017 12:52

jjnj wrote:
Sunday 17 September 2017 11:59
I'm still having issues with the module saying "Loading''
My config:

Code: Select all

config['garbage_company'] = 'afvalwijzer';
config['garbage_zipcode'] = '170Xxx';
config['garbage_street'] = 0;
config['garbage_housenumber'] = '1';
I'm now running the latest beta
Whats your full zipcode?
Creator of Dashticz, Do you appreciate my work and want to buy me a beer? You can send Bitcoins to 17Qy4bsLM9J238fCZt5kaRc2bD5S1Aw6og or donate via PayPal: https://www.paypal.me/robgeerts

User avatar
robgeerts
Posts: 1140
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: Son, NL
Contact:

Re: Dashticz - Module - Garbage collector

Post by robgeerts » Sunday 01 October 2017 12:53

Mozart wrote:
Monday 31 July 2017 8:22
I found out how to get the JSON output from http://www.rova.nl. I use the following to get the info:

Code: Select all

curl -v --cookie "RovaLc_inwoners={\"Id\":160266,\"ZipCode\":\"7731ZT\",\"HouseNumber\":\"84\",\"HouseAddition\":null,\"Municipality\":\"Ommen\",\"Province\":null,\"Firstname\":null,\"Lastname\":null,\"UserAgent\":\"\",\"School\":null,\"Street\":null,\"Country\":null,\"Portal\":null,\"AreaLevel\":5,\"City\":\"Ommen\",\"Ip\":null}" https://www.rova.nl/api/TrashCalendar/GetCalendarItems?portal=inwoners
The output looks like this:

Code: Select all

*   Trying 141.138.194.225...
* Connected to www.rova.nl (141.138.194.225) port 443 (#0)
* found 173 certificates in /etc/ssl/certs/ca-certificates.crt
* found 696 certificates in /etc/ssl/certs
* ALPN, offering http/1.1
* SSL connection using TLS1.2 / ECDHE_RSA_AES_256_CBC_SHA384
*        server certificate verification OK
*        server certificate status verification SKIPPED
*        common name: www.rova.nl (matched)
*        server certificate expiration date OK
*        server certificate activation date OK
*        certificate public key: RSA
*        certificate version: #3
*        subject: CN=www.rova.nl
*        start date: Tue, 23 May 2017 06:01:00 GMT
*        expire date: Mon, 21 Aug 2017 06:01:00 GMT
*        issuer: C=US,O=Let's Encrypt,CN=Let's Encrypt Authority X3
*        compression: NULL
* ALPN, server did not agree to a protocol
> GET /api/TrashCalendar/GetCalendarItems?portal=inwoners HTTP/1.1
> Host: www.rova.nl
> User-Agent: curl/7.47.0
> Accept: */*
> Cookie: RovaLc_inwoners={"Id":160266,"ZipCode":"7731ZT","HouseNumber":"84","HouseAddition":null,"Municipality":"Ommen","Province":null,"Firstname":null,"Lastname":null,"UserAgent":"","School":null,"Street":null,"Country":null,"Portal":null,"AreaLevel":5,"City":"Ommen","Ip":null}
>
< HTTP/1.1 200 OK
< Cache-Control: no-cache
< Pragma: no-cache
< Content-Type: application/json; charset=utf-8
< Expires: -1
< Server: Microsoft-IIS/8.5
< X-AspNet-Version: 4.0.30319
< X-Powered-By: ASP.NET
< Date: Mon, 31 Jul 2017 06:20:40 GMT
< Content-Length: 279
<
* Connection #0 to host www.rova.nl left intact
[{"GarbageTypeCode":"GFT","GarbageType":"GFT","Date":"2017-08-04T00:00:00","Regular":true},{"GarbageTypeCode":"GFT","GarbageType":"GFT","Date":"2017-08-18T00:00:00","Regular":true},{"GarbageTypeCode":"PLASTICPLUS","GarbageType":"PMD","Date":"2017-08-25T00:00:00","Regular":true}]
Can you integrate this into the code?
Ok, but how did you get the id (160266) ?
Creator of Dashticz, Do you appreciate my work and want to buy me a beer? You can send Bitcoins to 17Qy4bsLM9J238fCZt5kaRc2bD5S1Aw6og or donate via PayPal: https://www.paypal.me/robgeerts

User avatar
Derik
Posts: 1890
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Dashticz - Module - Garbage collector

Post by Derik » Thursday 05 October 2017 18:52

m,mm Did use for a long time no dashticz..
Now i give it a [ new ] try...
Grrrr connot get it to work...
I use:

Code: Select all

					
config['garbage_company'] 		= 'Mijn Afval Wijzer';
config['garbage_icalurl'] 		= 0;
config['garbage_zipcode']		= '6466AW';
config['garbage_street'] 		= 'startweg';
config['garbage_housenumber'] 		= '12';
config['garbage_maxitems'] 		= '6';
config['garbage_width'] 		= '6';
config['garbage_hideicon'] 		= 0;

var trashnames = {}
trashnames['Restafval'] 		= 'Grijze';
trashnames['Grofvuil'] 			= 'Groot';
trashnames['Papier'] 			= 'Papier';
trashnames['Gft'] 			= 'GFT-Folie';
trashnames['Tuinafval'] 		= 'Takken';
 
var trashcolors = {}
trashcolors['Restafval'] 		= 'White';
trashcolors['Grofvuil'] 		= 'Grey'
trashcolors['Papier'] 			= 'Blue'
trashcolors['Gft'] 			= 'Red';
trashcolors['Tuinafval'] 		= 'Green';


Is this code correct?
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups

User avatar
Derik
Posts: 1890
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Dashticz - Module - Garbage collector

Post by Derik » Thursday 05 October 2017 19:01

m,mm Did use for a long time no dashticz..
Now i give it a [ new ] try...
Grrrr connot get it to work...
I use:

Code: Select all

					
config['garbage_company'] 		= 'Mijn Afval Wijzer';
config['garbage_icalurl'] 		= 0;
config['garbage_zipcode']		= '6466AW';
config['garbage_street'] 		= 'startweg';
config['garbage_housenumber'] 		= '12';
config['garbage_maxitems'] 		= '6';
config['garbage_width'] 		= '6';
config['garbage_hideicon'] 		= 0;

var trashnames = {}
trashnames['Restafval'] 		= 'Grijze';
trashnames['Grofvuil'] 			= 'Groot';
trashnames['Papier'] 			= 'Papier';
trashnames['Gft'] 			= 'GFT-Folie';
trashnames['Tuinafval'] 		= 'Takken';
 
var trashcolors = {}
trashcolors['Restafval'] 		= 'White';
trashcolors['Grofvuil'] 		= 'Grey'
trashcolors['Papier'] 			= 'Blue'
trashcolors['Gft'] 			= 'Red';
trashcolors['Tuinafval'] 		= 'Green';


Is this code correct?
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups

User avatar
robgeerts
Posts: 1140
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: Son, NL
Contact:

Re: Dashticz - Module - Garbage collector

Post by robgeerts » Friday 06 October 2017 12:28

You mis a lot of config[] ?
Or do you mean the trash isnt working but the rest is?
Creator of Dashticz, Do you appreciate my work and want to buy me a beer? You can send Bitcoins to 17Qy4bsLM9J238fCZt5kaRc2bD5S1Aw6og or donate via PayPal: https://www.paypal.me/robgeerts

User avatar
Derik
Posts: 1890
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Dashticz - Module - Garbage collector

Post by Derik » Friday 06 October 2017 12:30

The rest is oké
This is my part of garbage.
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups

User avatar
Derik
Posts: 1890
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Dashticz - Module - Garbage collector

Post by Derik » Friday 06 October 2017 17:50

mmm
Found it:

Code: Select all

config['garbage_company'] 		= 'Mijn Afval Wijzer';
Must be:

Code: Select all

config['garbage_company'] 		= 'mijnafvalwijzer';
Perhaps change this in the wiki?
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups

Musje
Posts: 1
Joined: Saturday 07 October 2017 21:39
Target OS: Raspberry Pi
Domoticz version: Beta
Contact:

Re: Dashticz - Module - Garbage collector

Post by Musje » Sunday 15 October 2017 21:42

robgeerts wrote:
Sunday 01 October 2017 12:53
Mozart wrote:
Monday 31 July 2017 8:22
I found out how to get the JSON output from http://www.rova.nl. I use the following to get the info:

Code: Select all

curl -v --cookie "RovaLc_inwoners={\"Id\":160266,\"ZipCode\":\"7731ZT\",\"HouseNumber\":\"84\",\"HouseAddition\":null,\"Municipality\":\"Ommen\",\"Province\":null,\"Firstname\":null,\"Lastname\":null,\"UserAgent\":\"\",\"School\":null,\"Street\":null,\"Country\":null,\"Portal\":null,\"AreaLevel\":5,\"City\":\"Ommen\",\"Ip\":null}" https://www.rova.nl/api/TrashCalendar/GetCalendarItems?portal=inwoners
The output looks like this:

Code: Select all

*   Trying 141.138.194.225...
* Connected to www.rova.nl (141.138.194.225) port 443 (#0)
* found 173 certificates in /etc/ssl/certs/ca-certificates.crt
* found 696 certificates in /etc/ssl/certs
* ALPN, offering http/1.1
* SSL connection using TLS1.2 / ECDHE_RSA_AES_256_CBC_SHA384
*        server certificate verification OK
*        server certificate status verification SKIPPED
*        common name: www.rova.nl (matched)
*        server certificate expiration date OK
*        server certificate activation date OK
*        certificate public key: RSA
*        certificate version: #3
*        subject: CN=www.rova.nl
*        start date: Tue, 23 May 2017 06:01:00 GMT
*        expire date: Mon, 21 Aug 2017 06:01:00 GMT
*        issuer: C=US,O=Let's Encrypt,CN=Let's Encrypt Authority X3
*        compression: NULL
* ALPN, server did not agree to a protocol
> GET /api/TrashCalendar/GetCalendarItems?portal=inwoners HTTP/1.1
> Host: www.rova.nl
> User-Agent: curl/7.47.0
> Accept: */*
> Cookie: RovaLc_inwoners={"Id":160266,"ZipCode":"7731ZT","HouseNumber":"84","HouseAddition":null,"Municipality":"Ommen","Province":null,"Firstname":null,"Lastname":null,"UserAgent":"","School":null,"Street":null,"Country":null,"Portal":null,"AreaLevel":5,"City":"Ommen","Ip":null}
>
< HTTP/1.1 200 OK
< Cache-Control: no-cache
< Pragma: no-cache
< Content-Type: application/json; charset=utf-8
< Expires: -1
< Server: Microsoft-IIS/8.5
< X-AspNet-Version: 4.0.30319
< X-Powered-By: ASP.NET
< Date: Mon, 31 Jul 2017 06:20:40 GMT
< Content-Length: 279
<
* Connection #0 to host www.rova.nl left intact
[{"GarbageTypeCode":"GFT","GarbageType":"GFT","Date":"2017-08-04T00:00:00","Regular":true},{"GarbageTypeCode":"GFT","GarbageType":"GFT","Date":"2017-08-18T00:00:00","Regular":true},{"GarbageTypeCode":"PLASTICPLUS","GarbageType":"PMD","Date":"2017-08-25T00:00:00","Regular":true}]
Can you integrate this into the code?
Ok, but how did you get the id (160266) ?
Hi Rob,

Don't know if it's helpfull ;)
I think the ID(160266) is a number from the ROVA-pas. This is a card that belongs to the adres/house and can be used for the underground containers.
i've got one myself too.

curious
Posts: 109
Joined: Saturday 02 April 2016 19:38
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by curious » Wednesday 18 October 2017 19:48

Is it possible to add information from https://www.zuidhorn.nl/inwoners/afvalkalender_3712/

Like this module very much

Edit : found that the data can be retrieved from https://afvalkalender.zuidhorn.nl/nc/af ... 70824.html too

curious
Posts: 109
Joined: Saturday 02 April 2016 19:38
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by curious » Sunday 22 October 2017 12:03

I was able to load an ics-file but when I try to use it, I still get the 'loading' message

I put the file in a public part of my google drive and I tried to use link to my own domain.
Does it have to be connected to a calendar-program ?

I use this ical _url : 'https://drive.google.com/drive/folders/ ... 04SC-4.ics'

User avatar
htilburgs
Posts: 404
Joined: Tuesday 03 November 2015 12:01
Target OS: Raspberry Pi
Domoticz version: Stable
Location: Netherland
Contact:

Re: Dashticz - Module - Garbage collector

Post by htilburgs » Tuesday 24 October 2017 12:54

@Rob, currently I'm testing with a Surface RT with Internet Explorer 11 and the latest (beta) version of Dashticz.
Everything works fine, except for the Garbage Module. In 99% of cases I get the messge "Loading...." and nothing else.

I don't think it has anything to do with Safari, Google or IE, because on other systems I've got the same issue.
How can I find out what is going on?

My settings:

Code: Select all

config['garbage_company'] = 'cure';
 
 // Garbage - Advanced Settings
var _DO_NOT_USE_COLORED_TRASHCAN 	= true;
var trashcan = {}
var trashnames = {}
trashnames['Pmd bennekel blaarthem'] = 'PMD';
trashnames['Papier en karton'] = 'PAPIER';
trashnames['Gft'] = 'GFT'

columns[3] = {}
columns[3]['blocks'] = ['clock', buttons.moon, 211, 208, 'sunrise','currentweather_big','blocktitle_8',178, 'garbage']
columns[3]['width'] = 2; 
I've tried to look for a way to test it manualy, but can't seem to find the correct url in garbage.js.
https://cors-anywhere.herokuapp.com/htt ... usenumber/ gives an application error (replace postalcode-housenumber with the correct information).

EDIT:
When I change garbage.js (line 170 and 171) from:

Code: Select all

		$.getJSON('https://cors-anywhere.herokuapp.com/'+baseURL + '/rest/adressen/' + postcode + '-' + homenumber,function(data){
			$.getJSON('https://cors-anywhere.herokuapp.com/'+baseURL + '/rest/adressen/'+data[0].bagId+'/afvalstromen',function(data){
to:

Code: Select all

		$.getJSON(baseURL + '/rest/adressen/' + postcode + '-' + homenumber,function(data){
			$.getJSON(baseURL + '/rest/adressen/'+data[0].bagId+'/afvalstromen',function(data){
everything works fine. So it lookes like the problem is in the https://cors-anywhere.herokuapp.com.
Can you do anything with this information?
Hardware:
Raspberry Pi 2B - Aeon Labs Z-Stick GEN5 - Fibaro Dimmer 2 - Fibaro Roller Shutter 2 - Fibaro Smoke Sensor - Yeelight RGBW Led bulb - Yeelight Smart LED Light Strip - Neo Coolcam PIR Motion Sensor - Neo Coolcam PowerPlug

User avatar
robgeerts
Posts: 1140
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: Son, NL
Contact:

Re: Dashticz - Module - Garbage collector

Post by robgeerts » Thursday 26 October 2017 15:53

curious wrote:
Wednesday 18 October 2017 19:48
Is it possible to add information from https://www.zuidhorn.nl/inwoners/afvalkalender_3712/

Like this module very much

Edit : found that the data can be retrieved from https://afvalkalender.zuidhorn.nl/nc/af ... 70824.html too
Gives me an error?

curious wrote:
Sunday 22 October 2017 12:03
I was able to load an ics-file but when I try to use it, I still get the 'loading' message

I put the file in a public part of my google drive and I tried to use link to my own domain.
Does it have to be connected to a calendar-program ?

I use this ical _url : 'https://drive.google.com/drive/folders/ ... 04SC-4.ics'
You should put the ical on your own domain..
Creator of Dashticz, Do you appreciate my work and want to buy me a beer? You can send Bitcoins to 17Qy4bsLM9J238fCZt5kaRc2bD5S1Aw6og or donate via PayPal: https://www.paypal.me/robgeerts

User avatar
robgeerts
Posts: 1140
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: Son, NL
Contact:

Re: Dashticz - Module - Garbage collector

Post by robgeerts » Thursday 26 October 2017 15:54

htilburgs wrote:
Tuesday 24 October 2017 12:54
@Rob, currently I'm testing with a Surface RT with Internet Explorer 11 and the latest (beta) version of Dashticz.
Everything works fine, except for the Garbage Module. In 99% of cases I get the messge "Loading...." and nothing else.

I don't think it has anything to do with Safari, Google or IE, because on other systems I've got the same issue.
How can I find out what is going on?

My settings:

Code: Select all

config['garbage_company'] = 'cure';
 
 // Garbage - Advanced Settings
var _DO_NOT_USE_COLORED_TRASHCAN 	= true;
var trashcan = {}
var trashnames = {}
trashnames['Pmd bennekel blaarthem'] = 'PMD';
trashnames['Papier en karton'] = 'PAPIER';
trashnames['Gft'] = 'GFT'

columns[3] = {}
columns[3]['blocks'] = ['clock', buttons.moon, 211, 208, 'sunrise','currentweather_big','blocktitle_8',178, 'garbage']
columns[3]['width'] = 2; 
I've tried to look for a way to test it manualy, but can't seem to find the correct url in garbage.js.
https://cors-anywhere.herokuapp.com/htt ... usenumber/ gives an application error (replace postalcode-housenumber with the correct information).

EDIT:
When I change garbage.js (line 170 and 171) from:

Code: Select all

		$.getJSON('https://cors-anywhere.herokuapp.com/'+baseURL + '/rest/adressen/' + postcode + '-' + homenumber,function(data){
			$.getJSON('https://cors-anywhere.herokuapp.com/'+baseURL + '/rest/adressen/'+data[0].bagId+'/afvalstromen',function(data){
to:

Code: Select all

		$.getJSON(baseURL + '/rest/adressen/' + postcode + '-' + homenumber,function(data){
			$.getJSON(baseURL + '/rest/adressen/'+data[0].bagId+'/afvalstromen',function(data){
everything works fine. So it lookes like the problem is in the https://cors-anywhere.herokuapp.com.
Can you do anything with this information?
Weird, If I remove the cors-anywhere, I get an error at my Dashticz, so for me, removing is not an option..
Creator of Dashticz, Do you appreciate my work and want to buy me a beer? You can send Bitcoins to 17Qy4bsLM9J238fCZt5kaRc2bD5S1Aw6og or donate via PayPal: https://www.paypal.me/robgeerts

curious
Posts: 109
Joined: Saturday 02 April 2016 19:38
Target OS: -
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by curious » Thursday 26 October 2017 21:25

When I make the ics-file accessible form my own domain, and I use the url in a webbrowser it wants to download the file.

In dashticz the "loading"-message stays.

User avatar
robgeerts
Posts: 1140
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: Son, NL
Contact:

Re: Dashticz - Module - Garbage collector

Post by robgeerts » Thursday 26 October 2017 22:08

Could you PM me the url to your ics-file?
(Dont worry, I dont care about the actual events ;)
Creator of Dashticz, Do you appreciate my work and want to buy me a beer? You can send Bitcoins to 17Qy4bsLM9J238fCZt5kaRc2bD5S1Aw6og or donate via PayPal: https://www.paypal.me/robgeerts

Gerald
Posts: 2
Joined: Monday 30 October 2017 13:59
Target OS: Linux
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by Gerald » Monday 30 October 2017 14:06

Musje wrote:
Sunday 15 October 2017 21:42
robgeerts wrote:
Sunday 01 October 2017 12:53
Mozart wrote:
Monday 31 July 2017 8:22
I found out how to get the JSON output from http://www.rova.nl. I use the following to get the info:

Code: Select all

curl -v --cookie "RovaLc_inwoners={\"Id\":160266,\"ZipCode\":\"7731ZT\",\"HouseNumber\":\"84\",\"HouseAddition\":null,\"Municipality\":\"Ommen\",\"Province\":null,\"Firstname\":null,\"Lastname\":null,\"UserAgent\":\"\",\"School\":null,\"Street\":null,\"Country\":null,\"Portal\":null,\"AreaLevel\":5,\"City\":\"Ommen\",\"Ip\":null}" https://www.rova.nl/api/TrashCalendar/GetCalendarItems?portal=inwoners
The output looks like this:

Code: Select all

*   Trying 141.138.194.225...
* Connected to www.rova.nl (141.138.194.225) port 443 (#0)
* found 173 certificates in /etc/ssl/certs/ca-certificates.crt
* found 696 certificates in /etc/ssl/certs
* ALPN, offering http/1.1
* SSL connection using TLS1.2 / ECDHE_RSA_AES_256_CBC_SHA384
*        server certificate verification OK
*        server certificate status verification SKIPPED
*        common name: www.rova.nl (matched)
*        server certificate expiration date OK
*        server certificate activation date OK
*        certificate public key: RSA
*        certificate version: #3
*        subject: CN=www.rova.nl
*        start date: Tue, 23 May 2017 06:01:00 GMT
*        expire date: Mon, 21 Aug 2017 06:01:00 GMT
*        issuer: C=US,O=Let's Encrypt,CN=Let's Encrypt Authority X3
*        compression: NULL
* ALPN, server did not agree to a protocol
> GET /api/TrashCalendar/GetCalendarItems?portal=inwoners HTTP/1.1
> Host: www.rova.nl
> User-Agent: curl/7.47.0
> Accept: */*
> Cookie: RovaLc_inwoners={"Id":160266,"ZipCode":"7731ZT","HouseNumber":"84","HouseAddition":null,"Municipality":"Ommen","Province":null,"Firstname":null,"Lastname":null,"UserAgent":"","School":null,"Street":null,"Country":null,"Portal":null,"AreaLevel":5,"City":"Ommen","Ip":null}
>
< HTTP/1.1 200 OK
< Cache-Control: no-cache
< Pragma: no-cache
< Content-Type: application/json; charset=utf-8
< Expires: -1
< Server: Microsoft-IIS/8.5
< X-AspNet-Version: 4.0.30319
< X-Powered-By: ASP.NET
< Date: Mon, 31 Jul 2017 06:20:40 GMT
< Content-Length: 279
<
* Connection #0 to host www.rova.nl left intact
[{"GarbageTypeCode":"GFT","GarbageType":"GFT","Date":"2017-08-04T00:00:00","Regular":true},{"GarbageTypeCode":"GFT","GarbageType":"GFT","Date":"2017-08-18T00:00:00","Regular":true},{"GarbageTypeCode":"PLASTICPLUS","GarbageType":"PMD","Date":"2017-08-25T00:00:00","Regular":true}]
Can you integrate this into the code?
Ok, but how did you get the id (160266) ?
Hi Rob,

Don't know if it's helpfull ;)
I think the ID(160266) is a number from the ROVA-pas. This is a card that belongs to the adres/house and can be used for the underground containers.
i've got one myself too.
Hi Rob,

Can you please integrate this? Or let me know how to use the output of the JSON command in Dashticz?
As Rova is the company who collects our wast as well, and it will make my life much easier if I can use this on my home control tablet :)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest