Page 15 of 26

Re: Dashticz - Module - Garbage collector

Posted: Monday 04 September 2017 19:48
by geertvercamer
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.

Re: Dashticz - Module - Garbage collector

Posted: Tuesday 05 September 2017 21:05
by robgeerts
Indeed, sorry, tried anotherway (it posts its data to a specific url) but they dont accept that...

Re: Dashticz - Module - Garbage collector

Posted: Sunday 17 September 2017 11:59
by jjnj
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

Re: Dashticz - Module - Garbage collector

Posted: Wednesday 20 September 2017 10:56
by marxkemp
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.

Re: Dashticz - Module - Garbage collector

Posted: Sunday 01 October 2017 12:52
by robgeerts
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?

Re: Dashticz - Module - Garbage collector

Posted: Sunday 01 October 2017 12:53
by robgeerts
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) ?

Re: Dashticz - Module - Garbage collector

Posted: Thursday 05 October 2017 18:52
by Derik
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?

Re: Dashticz - Module - Garbage collector

Posted: Thursday 05 October 2017 19:01
by Derik
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?

Re: Dashticz - Module - Garbage collector

Posted: Friday 06 October 2017 12:28
by robgeerts
You mis a lot of config[] ?
Or do you mean the trash isnt working but the rest is?

Re: Dashticz - Module - Garbage collector

Posted: Friday 06 October 2017 12:30
by Derik
The rest is oké
This is my part of garbage.

Re: Dashticz - Module - Garbage collector

Posted: Friday 06 October 2017 17:50
by Derik
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?

Re: Dashticz - Module - Garbage collector

Posted: Sunday 15 October 2017 21:42
by Musje
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.

Re: Dashticz - Module - Garbage collector

Posted: Wednesday 18 October 2017 19:48
by curious
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

Re: Dashticz - Module - Garbage collector

Posted: Sunday 22 October 2017 12:03
by curious
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'

Re: Dashticz - Module - Garbage collector

Posted: Tuesday 24 October 2017 12:54
by htilburgs
@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?

Re: Dashticz - Module - Garbage collector

Posted: Thursday 26 October 2017 15:53
by robgeerts
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..

Re: Dashticz - Module - Garbage collector

Posted: Thursday 26 October 2017 15:54
by robgeerts
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..

Re: Dashticz - Module - Garbage collector

Posted: Thursday 26 October 2017 21:25
by curious
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.

Re: Dashticz - Module - Garbage collector

Posted: Thursday 26 October 2017 22:08
by robgeerts
Could you PM me the url to your ics-file?
(Dont worry, I dont care about the actual events ;)

Re: Dashticz - Module - Garbage collector

Posted: Monday 30 October 2017 14:06
by Gerald
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 :)