Dashticz - Module - Garbage collector Topic is solved

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Garbage collector

Post 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)

Image
Mozart
Posts: 39
Joined: Monday 19 January 2015 14:35
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Dashticz - Module - Garbage collector

Post 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?
Raspberry 3
Aeon Labs Z-Wave Stick Series 2 - RFLink USB Gateway
Z-Wave switches
433 MHz Temperature + Humidity sensors
Philips Hue Lights
Mi-Light WiFi Bridge + RGBW Controllers
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Garbage collector

Post 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' }
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Garbage collector

Post 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' }
wmmudde
Posts: 22
Joined: Monday 31 July 2017 14:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post 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?
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - Module - Garbage collector

Post 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)
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
pkrabben
Posts: 55
Joined: Sunday 09 April 2017 15:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5877
Location: Almere
Contact:

Re: Dashticz - Module - Garbage collector

Post 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?
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - [CHANGED IN BETA] Module - Garbage collector

Post 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']
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - [CHANGED IN BETA] Module - Garbage collector

Post by robgeerts »

Added garbage collector for Gemert-Bakel (NL)
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - [CHANGED IN BETA] Module - Garbage collector

Post 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'.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
kurniawan77
Posts: 46
Joined: Wednesday 21 January 2015 20:23
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands
Contact:

Re: Dashticz - [CHANGED IN BETA] Module - Garbage collector

Post by kurniawan77 »

robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - [CHANGED IN BETA] Module - Garbage collector

Post by robgeerts »

kurniawan77 wrote:is it possible to inculde http://www.omrin.nl/bij-mij-thuis/servi ... alkalender too?
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.
kurniawan77
Posts: 46
Joined: Wednesday 21 January 2015 20:23
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands
Contact:

Re: Dashticz - [CHANGED IN BETA] Module - Garbage collector

Post by kurniawan77 »

robgeerts wrote:
kurniawan77 wrote:is it possible to inculde http://www.omrin.nl/bij-mij-thuis/servi ... alkalender too?
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
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - [CHANGED IN BETA] Module - Garbage collector

Post 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.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - [CHANGED IN BETA] Module - Garbage collector

Post by EdwinK »

Screen Shot 2017-08-02 at 20.30.05.png
Screen Shot 2017-08-02 at 20.30.05.png (34.37 KiB) Viewed 2321 times
Whatever I put in as 'width' it still remains small.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - [CHANGED IN BETA] Module - Garbage collector

Post by robgeerts »

Let me check
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - [CHANGED IN BETA] Module - Garbage collector

Post by robgeerts »

Fixed in latest beta!
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - [CHANGED IN BETA] Module - Garbage collector

Post by EdwinK »

Thanks :)
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
Trigun
Posts: 390
Joined: Wednesday 30 November 2016 11:58
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10717
Contact:

Dashticz - [CHANGED IN BETA] Module - Garbage collector

Post 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
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - [CHANGED IN BETA] Module - Garbage collector

Post by robgeerts »

"De door u opgegeven postcode valt niet in het werkgebied van Twente Milieu."
Post Reply

Who is online

Users browsing this forum: floris74 and 1 guest