Dashticz - Module - Garbage collector

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: robgeerts, htilburgs

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

Re: Dashticz - Module - Garbage collector

Post by robgeerts » Sunday 30 July 2017 22:18

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
Creator of Dashticz
Do you appreciate my work and want to buy me a beer?
Send:
- XVG to D8fwNbyV6YxJk1aSiXftWTtdaPipsKn2Fa
- ANY ERC20-TOKEN to 0x9b8ee84329d77765a28bca188218c6c793875a8a

or donate via PayPal: https://www.paypal.me/robgeerts

Mozart
Posts: 82
Joined: Monday 19 January 2015 15:35
Target OS: Raspberry Pi
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Dashticz - Module - Garbage collector

Post by Mozart » 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?
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

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

Re: Dashticz - Module - Garbage collector

Post by robgeerts » Monday 31 July 2017 9:54

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' }
Creator of Dashticz
Do you appreciate my work and want to buy me a beer?
Send:
- XVG to D8fwNbyV6YxJk1aSiXftWTtdaPipsKn2Fa
- ANY ERC20-TOKEN to 0x9b8ee84329d77765a28bca188218c6c793875a8a

or donate via PayPal: https://www.paypal.me/robgeerts

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

Re: Dashticz - Module - Garbage collector

Post by robgeerts » Monday 31 July 2017 10:31

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' }
Creator of Dashticz
Do you appreciate my work and want to buy me a beer?
Send:
- XVG to D8fwNbyV6YxJk1aSiXftWTtdaPipsKn2Fa
- ANY ERC20-TOKEN to 0x9b8ee84329d77765a28bca188218c6c793875a8a

or donate via PayPal: https://www.paypal.me/robgeerts

wmmudde
Posts: 22
Joined: Monday 31 July 2017 14:33
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Dashticz - Module - Garbage collector

Post by wmmudde » Monday 31 July 2017 14:35

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: 1383
Joined: Sunday 22 January 2017 22:46
Target OS: Raspberry Pi
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - Module - Garbage collector

Post by EdwinK » Monday 31 July 2017 15:00

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) | RFxcom | Dashticz V2

pkrabben
Posts: 55
Joined: Sunday 09 April 2017 15:55
Target OS: Raspberry Pi
Domoticz version: 3.5877
Location: Almere
Contact:

Re: Dashticz - Module - Garbage collector

Post by pkrabben » Monday 31 July 2017 15:05

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?

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

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

Post by robgeerts » Wednesday 02 August 2017 12:18

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']
Creator of Dashticz
Do you appreciate my work and want to buy me a beer?
Send:
- XVG to D8fwNbyV6YxJk1aSiXftWTtdaPipsKn2Fa
- ANY ERC20-TOKEN to 0x9b8ee84329d77765a28bca188218c6c793875a8a

or donate via PayPal: https://www.paypal.me/robgeerts

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

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

Post by robgeerts » Wednesday 02 August 2017 14:17

Added garbage collector for Gemert-Bakel (NL)
Creator of Dashticz
Do you appreciate my work and want to buy me a beer?
Send:
- XVG to D8fwNbyV6YxJk1aSiXftWTtdaPipsKn2Fa
- ANY ERC20-TOKEN to 0x9b8ee84329d77765a28bca188218c6c793875a8a

or donate via PayPal: https://www.paypal.me/robgeerts

User avatar
EdwinK
Posts: 1383
Joined: Sunday 22 January 2017 22:46
Target OS: Raspberry Pi
Domoticz version: BETA
Location: Rhoon
Contact:

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

Post by EdwinK » Wednesday 02 August 2017 14:36

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) | RFxcom | Dashticz V2

kurniawan77
Posts: 79
Joined: Wednesday 21 January 2015 21:23
Target OS: Raspberry Pi
Domoticz version:
Location: Netherlands
Contact:

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

Post by kurniawan77 » Wednesday 02 August 2017 15:59


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

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

Post by robgeerts » Wednesday 02 August 2017 16:03

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.
Creator of Dashticz
Do you appreciate my work and want to buy me a beer?
Send:
- XVG to D8fwNbyV6YxJk1aSiXftWTtdaPipsKn2Fa
- ANY ERC20-TOKEN to 0x9b8ee84329d77765a28bca188218c6c793875a8a

or donate via PayPal: https://www.paypal.me/robgeerts

kurniawan77
Posts: 79
Joined: Wednesday 21 January 2015 21:23
Target OS: Raspberry Pi
Domoticz version:
Location: Netherlands
Contact:

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

Post by kurniawan77 » Wednesday 02 August 2017 16:21

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: 1383
Joined: Sunday 22 January 2017 22:46
Target OS: Raspberry Pi
Domoticz version: BETA
Location: Rhoon
Contact:

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

Post by EdwinK » Wednesday 02 August 2017 20:24

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) | RFxcom | Dashticz V2

User avatar
EdwinK
Posts: 1383
Joined: Sunday 22 January 2017 22:46
Target OS: Raspberry Pi
Domoticz version: BETA
Location: Rhoon
Contact:

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

Post by EdwinK » Wednesday 02 August 2017 20:31

Screen Shot 2017-08-02 at 20.30.05.png
Screen Shot 2017-08-02 at 20.30.05.png (34.37 KiB) Viewed 1074 times
Whatever I put in as 'width' it still remains small.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | RFxcom | Dashticz V2

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

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

Post by robgeerts » Wednesday 02 August 2017 20:46

Let me check
Creator of Dashticz
Do you appreciate my work and want to buy me a beer?
Send:
- XVG to D8fwNbyV6YxJk1aSiXftWTtdaPipsKn2Fa
- ANY ERC20-TOKEN to 0x9b8ee84329d77765a28bca188218c6c793875a8a

or donate via PayPal: https://www.paypal.me/robgeerts

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

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

Post by robgeerts » Wednesday 02 August 2017 20:49

Fixed in latest beta!
Creator of Dashticz
Do you appreciate my work and want to buy me a beer?
Send:
- XVG to D8fwNbyV6YxJk1aSiXftWTtdaPipsKn2Fa
- ANY ERC20-TOKEN to 0x9b8ee84329d77765a28bca188218c6c793875a8a

or donate via PayPal: https://www.paypal.me/robgeerts

User avatar
EdwinK
Posts: 1383
Joined: Sunday 22 January 2017 22:46
Target OS: Raspberry Pi
Domoticz version: BETA
Location: Rhoon
Contact:

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

Post by EdwinK » Wednesday 02 August 2017 20:50

Thanks :)
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | RFxcom | Dashticz V2

Trigun
Posts: 187
Joined: Wednesday 30 November 2016 12:58
Target OS: Raspberry Pi
Domoticz version: 4.9700
Contact:

Dashticz - [CHANGED IN BETA] Module - Garbage collector

Post by Trigun » Wednesday 02 August 2017 20:51

Hi rob, is there already a possibility to use the folowing postalcode: 7622HG?

Sorry, Living in the outskirts.
Sent from my iPhone using Tapatalk

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

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

Post by robgeerts » Wednesday 02 August 2017 20:59

"De door u opgegeven postcode valt niet in het werkgebied van Twente Milieu."
Creator of Dashticz
Do you appreciate my work and want to buy me a beer?
Send:
- XVG to D8fwNbyV6YxJk1aSiXftWTtdaPipsKn2Fa
- ANY ERC20-TOKEN to 0x9b8ee84329d77765a28bca188218c6c793875a8a

or donate via PayPal: https://www.paypal.me/robgeerts

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests