Page 2 of 11

Re: IMPORTANT REQUEST!!!

Posted: Thursday 18 October 2018 14:59
by robgeerts
Ok, i had to remove the scripts from my server.
In the attachment a zip with the files.
You can just upload it to a server with PHP and change the url in Dashticz.

Look through the scripts, I NEVER SAVED ANY OF YOUR DATA.
I DONT CARE ABOUT YOUR DATA!

It was done because the parsing of some external webservices made the dashboard slower.
Also, some webservice for the garbage-calendars for example, have different arrays of data they return, I wanted it to be returned in one way so the script in Dashticz could be the same for every garbage-collector.

Anyway, use it if you want and dont use if you dont want.
I did this as a hobby project and indeed, charged nothing for it.

Re: IMPORTANT REQUEST!!!

Posted: Thursday 18 October 2018 17:21
by EastXIII
So could I set up a server on the Pi which hosts Domoticz/Dashticz to? I’m not familiar with this.

I do really appreciate the effort everybody, especially Rob, have put in Dashticz and Garbage & OV.

For me Garbage and OV are important so I would like to be up and running soon... Tips are very much appreciated!

Re: IMPORTANT REQUEST!!!

Posted: Thursday 18 October 2018 18:18
by EdwinK
robgeerts wrote: Thursday 18 October 2018 14:59 Ok, i had to remove the scripts from my server.
In the attachment a zip with the files.
You can just upload it to a server with PHP and change the url in Dashticz.
Change it CUSTOM.js, or one of the other files? Could you tell us a bit more. I like this dashboard, and want to keep running it but can't figure where to change the url

Re: IMPORTANT REQUEST!!!

Posted: Thursday 18 October 2018 18:27
by EdwinK
robgeerts wrote: Thursday 18 October 2018 14:59

I did this as a hobby project and indeed, charged nothing for it.
Thanks again for this project. I like it, and hope it will stays developed for a long time.

Re: IMPORTANT REQUEST!!!

Posted: Thursday 18 October 2018 21:15
by Lokonli
Thanks for all the work Rob!

I think it should be possible to translate the functionality to js and merge it into Dashticz itself.
There are 4 modules: afval, ical, tv and ov.
I will create 4 issues on github so we can split up the work and follow the implementation progress.

Re: IMPORTANT REQUEST!!!

Posted: Thursday 18 October 2018 21:26
by gielie
Is this the reason why my garbage and iCal not working anymore?

Re: IMPORTANT REQUEST!!!

Posted: Thursday 18 October 2018 21:45
by robgeerts
gielie wrote: Thursday 18 October 2018 21:26 Is this the reason why my garbage and iCal not working anymore?
Yes, sorry about that but my server was crashing constantly due to all the requests.
It is better to ost the files in the zip yourself...

Re: IMPORTANT REQUEST!!!

Posted: Thursday 18 October 2018 21:47
by EastXIII
robgeerts wrote:
gielie wrote: Thursday 18 October 2018 21:26 Is this the reason why my garbage and iCal not working anymore?
Yes, sorry about that but my server was crashing constantly due to all the requests.
It is better to ost the files in the zip yourself...
How do I do this?

Re: IMPORTANT REQUEST!!!

Posted: Friday 19 October 2018 10:52
by gielie
robgeerts wrote: Thursday 18 October 2018 21:45
gielie wrote: Thursday 18 October 2018 21:26 Is this the reason why my garbage and iCal not working anymore?
Yes, sorry about that but my server was crashing constantly due to all the requests.
It is better to ost the files in the zip yourself...
Hi Rob,

Not a problem and many thanks for all the hard work.
Is it possible to create an how to for this?
Or should we wait untill it is reprogrammed to a js function?

Re: IMPORTANT REQUEST!!!

Posted: Friday 19 October 2018 11:12
by EdwinK
Lokonli wrote: Thursday 18 October 2018 21:15 Thanks for all the work Rob!

I think it should be possible to translate the functionality to js and merge it into Dashticz itself.
There are 4 modules: afval, ical, tv and ov.
I will create 4 issues on github so we can split up the work and follow the implementation progress.
i would give you a 'thumbs up' (and to the other developers here too), if this could be done ;) unfortunately, we can't give 'thumbs' or 'likes' here.
th.png
th.png (35.37 KiB) Viewed 1569 times

Re: IMPORTANT REQUEST!!!

Posted: Friday 19 October 2018 11:45
by Derik
i got this cookie ss hit here.. when i try to download..

Re: IMPORTANT REQUEST!!!

Posted: Friday 19 October 2018 11:53
by lightmanster
HI Rob

Thanks for the scripts and all the time we could use your server.
Youve said "You can just upload it to a server with PHP and change the url in Dashticz."

I have put the scripts at a server, but need more info what url to change in dashticz

Could you give us some info
THx

Re: IMPORTANT REQUEST!!!

Posted: Friday 19 October 2018 12:57
by moses123
There is no need to change any url.

If you host dashticz yourself with apache or lighttp, you only have to change this in your settings file:

Code: Select all

config['calendar_parse_localy']=true;
If you use the beta branch, the files form the zip are already there.
And you have to enable php on your server.

Regards,
Moses123

Re: IMPORTANT REQUEST!!!

Posted: Friday 19 October 2018 13:39
by lightmanster
HI

If you want to host it outside. change :

/home/pi/domoticz/dashticz_v2/js

calendar.js around line 60

if (settings['calendar_parse_localy']){
curUrl = './vendor/dashticz/ical/?time=' + cache + '&url=' + curUrl;
} else {
curUrl = 'https://dashticz.nl/ical/?time=' + cache + '&url=' + curUrl;
}


change curUrl = 'https://dashticz.nl/ical/?time=' + cache + '&url=' + curUrl;

In your own url.

also add:
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>

to your webserver config if you get Access-Control_allow-origin error

Kind regards
LM

Re: IMPORTANT REQUEST!!!

Posted: Friday 19 October 2018 13:45
by Derik
dear all..
In domoticz there is a webserver running think?
Can whe use thatone?
Or?

Re: IMPORTANT REQUEST!!!

Posted: Friday 19 October 2018 14:25
by gielie
I tried both options from above;
config['calendar_parse_localy']=true and checked if the filers are in the right place, yes.
and the second one with the file on a external server (synology)

but both options are not working for me, on both machines apache is running.

Is it an option to change this is the next update?

Re: IMPORTANT REQUEST!!!

Posted: Friday 19 October 2018 14:57
by moses123
The domoticzs server did not work for me.

Just installed lighttp on my raspi, additionaly to domoticz. Configured lighttp to run php (use google). Copied dashticz to the www directory of lighttp.
Configured lighttp to serve on port 8090.
Now i have domoticz on 8080 and dashticz on 8090.

Moses123

Re: IMPORTANT REQUEST!!!

Posted: Friday 19 October 2018 15:17
by Derik
moses123 wrote: Friday 19 October 2018 14:57 The domoticzs server did not work for me.

Just installed lighttp on my raspi, additionaly to domoticz. Configured lighttp to run php (use google). Copied dashticz to the www directory of lighttp.
Configured lighttp to serve on port 8090.
Now i have domoticz on 8080 and dashticz on 8090.

Moses123
Do you have a simple how to? With cli ?
And do you have longfonds and the other options also running?
Can i run this also on other RP1? like a slave with Domoticz...

Re: IMPORTANT REQUEST!!!

Posted: Friday 19 October 2018 15:18
by EdddieN
robgeerts wrote: Thursday 18 October 2018 21:45
gielie wrote: Thursday 18 October 2018 21:26 Is this the reason why my garbage and iCal not working anymore?
Yes, sorry about that but my server was crashing constantly due to all the requests.
It is better to ost the files in the zip yourself...
Maybe a bit late to the party... I have some spare power, not huge though...
Like the other, I rather run things locally but I'm also happy to help the community if required, even if it is during the transition only. PM me if you want me to help as I'm not subscribed to this thread.

Re: IMPORTANT REQUEST!!!

Posted: Friday 19 October 2018 23:33
by EdwinK
gielie wrote: Friday 19 October 2018 14:25 I tried both options from above;
config['calendar_parse_localy']=true and checked if the filers are in the right place, yes.
and the second one with the file on a external server (synology)
Tried both options as well on my Synology
but both options are not working for me, on both machines apache is running.

Is it an option to change this is the next update?
I hope so too. I really want to keep this dashboard running and use the powers of my NAS, but I really hope there will be an easier way to fix this.