Page 10 of 48
Re: Dashticz - Module - Garbage collector
Posted: Sunday 30 July 2017 22:18
by robgeerts
You dont have to share it permanently..
In the calendar settings you can get a private-address... (this is a unique address wich u can use, but this way it is not discoverable by other users).
See screenshot below (the second option u have to use)
Re: Dashticz - Module - Garbage collector
Posted: Monday 31 July 2017 8:22
by Mozart
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?
Re: Dashticz - Module - Garbage collector
Posted: Monday 31 July 2017 9:54
by robgeerts
Will look into this.
Meanwhile, I've added Arnhem to latest beta:
Code: Select all
trashcan.afvalwijzerarnhem = { key:'afvalwijzerarnhem', maxitems: 5, trashapp: 'afvalwijzerarnhem', width:5,zipcode:'6832HP', housenumber:'1' }
Re: Dashticz - Module - Garbage collector
Posted: Monday 31 July 2017 10:31
by robgeerts
benbammens wrote:robgeerts wrote:Try something like:
(Add your own ical url)
Code: Select all
Var trashcan = {}
trashcan.ical = { width:6, maxitems: 10, trashapp:'ical', icalurl: 'https://calendar.google.com/calendar/basic.ics' }
Does not work I'm afraid. I can generate an ical url from my google calendar but since it is not a shared calendar dashticz can not see it. And I can not share it so it seems since it is an external calendar...
This is the solution that works:
Code: Select all
var trashcan = {}
trashcan.ical = { width:6, maxitems: 10, trashapp:'ical', icalurl: 'http://www.limburg.net/ics/afvalkalender/71011/9744/119/0' }
Re: Dashticz - Module - Garbage collector
Posted: Monday 31 July 2017 14:35
by wmmudde
pkrabben wrote:Hi All
The recycle manager is working only I can't get the block wider then 4.
I tried
Code: Select all
blocks['trashcan.recyclemanager'] = {}
blocks['trashcan.recyclemanager']['width'] = 12;
but for some reason it stays width 4 do you have any clue?
pkrabben, hoe heb jij deze werkend gekregen in Almere?
Hij zegt bij mij continu "undefined"
welke gebruik jij?
Re: Dashticz - Module - Garbage collector
Posted: Monday 31 July 2017 15:00
by EdwinK
I believe you set the width in the block it self, not in a 'var'
See this example:
Code: Select all
trashcan.afvalwijzerarnhem = { key:'afvalwijzerarnhem', maxitems: 5, trashapp: 'afvalwijzerarnhem', width:5,zipcode:'6832HP', housenumber:'1' }
Change the width to anything you want (between 4 and 12)
Re: Dashticz - Module - Garbage collector
Posted: Monday 31 July 2017 15:05
by pkrabben
ik heb je een pm gestuurd
wmmudde wrote:pkrabben wrote:Hi All
The recycle manager is working only I can't get the block wider then 4.
I tried
Code: Select all
blocks['trashcan.recyclemanager'] = {}
blocks['trashcan.recyclemanager']['width'] = 12;
but for some reason it stays width 4 do you have any clue?
pkrabben, hoe heb jij deze werkend gekregen in Almere?
Hij zegt bij mij continu "undefined"
welke gebruik jij?
Re: Dashticz - [CHANGED IN BETA] Module - Garbage collector
Posted: Wednesday 02 August 2017 12:18
by robgeerts
WARNING:
In latest Beta, setting the block is done via the Settings-popup!
In this version, var trashcan = {} is not used anymore.
And define them in a columns like:
Code: Select all
columns[1] = {}
columns[1]['width'] = 2;
columns[1]['blocks'] = ['garbage']
Re: Dashticz - [CHANGED IN BETA] Module - Garbage collector
Posted: Wednesday 02 August 2017 14:17
by robgeerts
Added garbage collector for Gemert-Bakel (NL)
Re: Dashticz - [CHANGED IN BETA] Module - Garbage collector
Posted: Wednesday 02 August 2017 14:36
by EdwinK
robgeerts wrote:WARNING:
In latest Beta, setting the block is done via the Settings-popup!
In this version, var trashcan = {} is not used anymore.
Now just a black screen.
edit: placed the var trashcan = {} thingy back and Dashticz works again, without the trash info. 'Undefined'.
Re: Dashticz - [CHANGED IN BETA] Module - Garbage collector
Posted: Wednesday 02 August 2017 15:59
by kurniawan77
Re: Dashticz - [CHANGED IN BETA] Module - Garbage collector
Posted: Wednesday 02 August 2017 16:03
by robgeerts
Do you have an example zipcode for me?
EdKo66 wrote:robgeerts wrote:WARNING:
In latest Beta, setting the block is done via the Settings-popup!
In this version, var trashcan = {} is not used anymore.
Now just a black screen.
edit: placed the var trashcan = {} thingy back and Dashticz works again, without the trash info. 'Undefined'.
I forgot to mention, in the blocks, you dont add things like: trashcan.cure but just 'garbage' with the single quotes.
Re: Dashticz - [CHANGED IN BETA] Module - Garbage collector
Posted: Wednesday 02 August 2017 16:21
by kurniawan77
robgeerts wrote:
Do you have an example zipcode for me?
EdKo66 wrote:robgeerts wrote:WARNING:
In latest Beta, setting the block is done via the Settings-popup!
In this version, var trashcan = {} is not used anymore.
Now just a black screen.
edit: placed the var trashcan = {} thingy back and Dashticz works again, without the trash info. 'Undefined'.
I forgot to mention, in the blocks, you dont add things like: trashcan.cure but just 'garbage' with the single quotes.
Sure...
8431TG
Sent from my Nexus 6P using Tapatalk
Re: Dashticz - [CHANGED IN BETA] Module - Garbage collector
Posted: Wednesday 02 August 2017 20:24
by EdwinK
robgeerts wrote:edko66 wrote:
edit: placed the var trashcan = {} thingy back and Dashticz works again, without the trash info. 'Undefined'.
I forgot to mention, in the blocks, you dont add things like: trashcan.cure but just 'garbage' with the single quotes.
That was indeed the problem.
Re: Dashticz - [CHANGED IN BETA] Module - Garbage collector
Posted: Wednesday 02 August 2017 20:31
by EdwinK
- Screen Shot 2017-08-02 at 20.30.05.png (34.37 KiB) Viewed 2324 times
Whatever I put in as 'width' it still remains small.
Re: Dashticz - [CHANGED IN BETA] Module - Garbage collector
Posted: Wednesday 02 August 2017 20:46
by robgeerts
Let me check
Re: Dashticz - [CHANGED IN BETA] Module - Garbage collector
Posted: Wednesday 02 August 2017 20:49
by robgeerts
Fixed in latest beta!
Re: Dashticz - [CHANGED IN BETA] Module - Garbage collector
Posted: Wednesday 02 August 2017 20:50
by EdwinK
Thanks
Dashticz - [CHANGED IN BETA] Module - Garbage collector
Posted: Wednesday 02 August 2017 20:51
by Trigun
Hi rob, is there already a possibility to use the folowing postalcode: 7622HG?
Sorry, Living in the outskirts.
Sent from my iPhone using Tapatalk
Re: Dashticz - [CHANGED IN BETA] Module - Garbage collector
Posted: Wednesday 02 August 2017 20:59
by robgeerts
"De door u opgegeven postcode valt niet in het werkgebied van Twente Milieu."