dashticz: Important Request

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

User avatar
Thuis
Posts: 273
Joined: Tuesday 11 September 2018 11:36
Target OS: Linux
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: IMPORTANT REQUEST!!!

Post by Thuis »

this is line 44 of the SG_iCal_Parser.php
$c = curl_init();

correct ?
I Love Domoticz ! And the community around it :-)
User avatar
Thuis
Posts: 273
Joined: Tuesday 11 September 2018 11:36
Target OS: Linux
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: IMPORTANT REQUEST!!!

Post by Thuis »

well i tried several things like adding php_curl.dll in my php.ini file, copying dll files from php folder to apache24\bin folder. But i never get a curl in the phpinfo.php. Only the name of the module maker, which is Sterling Hughes by the way....

For now, i just leave it at this, i have to do some work. Tomorrow i will be switching and swapping files on the windows machine again ,to see if i can get it to work somehow :-p
I Love Domoticz ! And the community around it :-)
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: IMPORTANT REQUEST!!!

Post by poudenes »

Tried everything:

Updated the part in calendar.js

Code: Select all

        if (settings['calendar_parse_localy']){                                                                                                                                                                             
                curUrl = './vendor/dashticz/ical/?time=' + cache + '&url=' + curUrl;                                                                                                                                        
        } else {                                                                                                                                                                                                            
                curUrl = 'https://MY WEBSITE/dashticz/ical/?time=' + cache + '&url=' + curUrl;                                                                                                                 
        } 
and add this in my CONFIG.js

Code: Select all

config['calendar_parse_localy']=false;
But no calendar is shown.
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: IMPORTANT REQUEST!!!

Post by HansieNL »

Updated to beta 2.4.2 and installed: sudo apt-get install php7.0-curl
Calendar and TV Channels working great. Now I have only to get Garbage working.
Blah blah blah
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: IMPORTANT REQUEST!!!

Post by EdwinK »

Still can't get it to work. Server is running on Synology with php7 and Curl enabled. Keep getting connection refused errors
Failed to load resource: net::ERR_CONNECTION_REFUSED
:8080/scripts/ical/?time=1540223287867&url=https://calendar.google.com/calendar/ic ... asic.ics:1 Failed to load resource: net::ERR_CONNECTION_REFUSED
:8080/scripts/afval/?service=mijnafvalwijzer&sub=undefined&zipcode=3161LH&nr=27&t=:1 Failed to load resource: net::ERR_CONNECTION_REFUSED
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: IMPORTANT REQUEST!!!

Post by poudenes »

HansieNL wrote: Monday 22 October 2018 17:42 Updated to beta 2.4.2 and installed: sudo apt-get install php7.0-curl
Calendar and TV Channels working great. Now I have only to get Garbage working.
php7.0-curl was already running. Everything except Calendar is working
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: IMPORTANT REQUEST!!!

Post by HansieNL »

[FIXED] @poudenes : You got your garbage running?
If I try http://json.mijnafvalwijzer.nl/?method= ... oevoeging= in the browser I get a json response. Mmm...
Last edited by HansieNL on Monday 22 October 2018 19:09, edited 1 time in total.
Blah blah blah
peerkersezuuker
Posts: 70
Joined: Monday 14 December 2015 22:16
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Mierlo
Contact:

Re: IMPORTANT REQUEST!!!

Post by peerkersezuuker »

To get the garbage running don't forget to edit function getGeneralData(service,address, date, random, subservice){ in the garbage.js.

Replace the dashticz.nl with you own domain
User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: IMPORTANT REQUEST!!!

Post by HansieNL »

[FIXED] @peerkersezuuker : I did change the domainsaddress and port to my own webserver. But no luck till now.
If I try http://192.168.2.14:3000/dashticz/vendo ... L&nr=41&t= in the browser I get all the data I need, but not in the Garbage block :(
Last edited by HansieNL on Monday 22 October 2018 19:08, edited 1 time in total.
Blah blah blah
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: IMPORTANT REQUEST!!!

Post by EdwinK »

Got thrash working. I had added portnumber, but I forgot I don't use a specific port for web on my synology

On to the next

Calendar also working :)
Last edited by EdwinK on Monday 22 October 2018 18:59, edited 1 time in total.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
peerkersezuuker
Posts: 70
Joined: Monday 14 December 2015 22:16
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Mierlo
Contact:

Re: IMPORTANT REQUEST!!!

Post by peerkersezuuker »

@HansieNL,
And when you enable the inspector from your browser and open your dashticz board, do yo see any errors in the console pane regarding your url ?
User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: IMPORTANT REQUEST!!!

Post by HansieNL »

peerkersezuuker wrote: Monday 22 October 2018 18:59 @HansieNL,
And when you enable the inspector from your browser and open your dashticz board, do yo see any errors in the console pane regarding your url ?
Missed function getGeneralData(service,address, date, random, subservice){ in the garbage.js. :oops: :oops:
Thanks for the help. Everything is up and running as it was before :D :D :D
Blah blah blah
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: IMPORTANT REQUEST!!!

Post by EdwinK »

I just need tvguide and public transportation working. Then I'm real happy.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: IMPORTANT REQUEST!!!

Post by poudenes »

I get a ERROR 403 - Forbidden.

77.250.102.136 - - [22/Oct/2018:19:30:38 +0200] "GET /dashticz/ical/?time=1540229438248&url=https://p28-calendars.icloud.com/publis ... YjJQOufb3g HTTP/1.1" 403 2348 "http://192.168.100.18:8081/dashbeta/index2.html" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"

find this URL in log file and tried open it in browser. Then get a error 403. (Yes paste the full URL :) )

can someone tell me what this problem can be?
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
jake
Posts: 744
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: IMPORTANT REQUEST!!!

Post by jake »

all you lucky ones. I don't get the curl module enabled. I ended up with PHP 5.6, 7.0 and 7.2
When I run the phpinfo.php file, it always gives me the php info of 5.6, but I don't see the module loaded/enabled

How should I proceed, delete 2 of 3 PHP versions?
And why do some use a specific port number, I simply added the afval folder in the same folder as the ical folder in /vendor/dashticz/ and pointed towards that in the garbage.js file. Is that the right way to do it?
User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: IMPORTANT REQUEST!!!

Post by HansieNL »

jake wrote: Monday 22 October 2018 20:03 all you lucky ones. I don't get the curl module enabled. I ended up with PHP 5.6, 7.0 and 7.2
When I run the phpinfo.php file, it always gives me the php info of 5.6, but I don't see the module loaded/enabled

How should I proceed, delete 2 of 3 PHP versions?
And why do some use a specific port number, I simply added the afval folder in the same folder as the ical folder in /vendor/dashticz/ and pointed towards that in the garbage.js file. Is that the right way to do it?
Are you running your own webserver? I run my own webserver and is set to a different port.
I'm running nginx with php. You can find a good description how to do that on raspberrypi.org https://www.raspberrypi.org/documentati ... r/nginx.md Maybe that solves your problem with the php version.
Blah blah blah
pvm
Posts: 550
Joined: Tuesday 17 June 2014 22:14
Target OS: NAS (Synology & others)
Domoticz version: 4.10538
Location: NL
Contact:

Re: IMPORTANT REQUEST!!!

Post by pvm »

Is it possible to configure ip address (and /or path) from config file?
Synology NAS, slave PI3, ZWave (Fibaro), Xiaomi zigbee devices, BTLE plant sensor, DzVents, Dashticz on tablet, Logitech Media Server
jake
Posts: 744
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: IMPORTANT REQUEST!!!

Post by jake »


HansieNL wrote: Are you running your own webserver? I run my own webserver and is set to a different port.
I have Dashticz installed in /var/www/html and can access it from my tablet. Am I right to say that I therefore have an (apache) webserver running?
Phpinfo.php shows me the php information as well. When I look in the 'loaded modules', I don't see curl in the list.
Spoiler: show
core mod_so mod_watchdog http_core mod_log_config mod_logio mod_version mod_unixd mod_access_compat mod_alias mod_auth_basic mod_authn_core mod_authn_file mod_authz_core mod_authz_host mod_authz_user mod_autoindex mod_deflate mod_dir mod_env mod_filter mod_mime prefork mod_negotiation mod_php5 mod_reqtimeout mod_setenvif mod_status
moses123
Posts: 18
Joined: Thursday 06 September 2018 11:50
Target OS: Raspberry Pi / ODroid
Domoticz version: latest b
Contact:

Re: IMPORTANT REQUEST!!!

Post by moses123 »

jake wrote: Tuesday 23 October 2018 9:23
HansieNL wrote: Are you running your own webserver? I run my own webserver and is set to a different port.
I have Dashticz installed in /var/www/html and can access it from my tablet. Am I right to say that I therefore have an (apache) webserver running?
Phpinfo.php shows me the php information as well. When I look in the 'loaded modules', I don't see curl in the list.
Spoiler: show
core mod_so mod_watchdog http_core mod_log_config mod_logio mod_version mod_unixd mod_access_compat mod_alias mod_auth_basic mod_authn_core mod_authn_file mod_authz_core mod_authz_host mod_authz_user mod_autoindex mod_deflate mod_dir mod_env mod_filter mod_mime prefork mod_negotiation mod_php5 mod_reqtimeout mod_setenvif mod_status
Install curl for php and change the parameter in the settings, thats all, no changed of anything in the code.
It is imported to use the latest beta.

Moses123
jake
Posts: 744
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: IMPORTANT REQUEST!!!

Post by jake »


moses123 wrote: Install curl for php and change the parameter in the settings, thats all, no changed of anything in the code.
It is imported to use the latest beta.

Moses123
I installed curl for php, but somehow it doesn't load. I don't think that having 3 versions on my system helps. Would I be better off to remove 2? If so, should I keep 5.6 or 7.2?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest