
dashticz: Important Request
Moderators: leecollings, htilburgs, robgeerts
-
- Posts: 10
- Joined: Wednesday 02 September 2015 14:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: The Netherlands
- Contact:
Re: IMPORTANT REQUEST!!!
Grrrr can't get access-control-allow-origin header working with nginx. Anyone who can help me with that one? 

-
- Posts: 2287
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: IMPORTANT REQUEST!!!
The fontawesome update some time ago results in different names for the icons to be used.poudenes wrote: ↑Thursday 25 October 2018 9:41See my post 2 up... For me it work now. Only the custom icons part is gone now. But rest is workinggielie wrote: ↑Thursday 25 October 2018 9:40Nope, i cant get it to work.
I started from scratch, installed dashticz in var/www/html (instead of domoticz/www) with all the necessary dependencies.
I also tried to host the files on my synology and redirected to that address but still no luck.
Can someone make a clear tutorial how to change this.
And one question, if i change the icall/garbage file wont this be a problem with the next git pull update?
The new name for fa-window-close is:
'far fa-window-close' for a regular icon.
or
'fas fa-window-close' for a solid icon.
On fontawesome.com you can find the correct names. Sometimes only fas or far is supported (not both). Sometimes there is a small change in the name as well.
-
- Posts: 667
- Joined: Wednesday 08 March 2017 9:42
- Target OS: Linux
- Domoticz version: 3.8993
- Location: Amsterdam
- Contact:
Re: IMPORTANT REQUEST!!!
I will check it. As far as I could see this morning some where same. But will look again. Thanks!Lokonli wrote:The fontawesome update some time ago results in different names for the icons to be used.poudenes wrote: ↑Thursday 25 October 2018 9:41See my post 2 up... For me it work now. Only the custom icons part is gone now. But rest is workinggielie wrote: ↑Thursday 25 October 2018 9:40 Nope, i cant get it to work.
I started from scratch, installed dashticz in var/www/html (instead of domoticz/www) with all the necessary dependencies.
I also tried to host the files on my synology and redirected to that address but still no luck.
Can someone make a clear tutorial how to change this.
And one question, if i change the icall/garbage file wont this be a problem with the next git pull update?
The new name for fa-window-close is:
'far fa-window-close' for a regular icon.
or
'fas fa-window-close' for a solid icon.
On fontawesome.com you can find the correct names. Sometimes only fas or far is supported (not both). Sometimes there is a small change in the name as well.
Verzonden vanaf mijn iPhone met Tapatalk Pro
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
-
- Posts: 29
- Joined: Monday 08 October 2018 13:56
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Contact:
Re: IMPORTANT REQUEST!!!
Same here. Man I need to learn a lot...edge wrote:Grrrr can't get access-control-allow-origin header working with nginx. Anyone who can help me with that one?
- gielie
- Posts: 290
- Joined: Tuesday 12 January 2016 11:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest β
- Location: The Netherlands (Alkmaar)
- Contact:
Re: IMPORTANT REQUEST!!!
That is only the apache/server part and i'm sure this is working fine because i run other web applications using apache.poudenes wrote: ↑Thursday 25 October 2018 9:41See my post 2 up... For me it work now. Only the custom icons part is gone now. But rest is workinggielie wrote: ↑Thursday 25 October 2018 9:40Nope, i cant get it to work.
I started from scratch, installed dashticz in var/www/html (instead of domoticz/www) with all the necessary dependencies.
I also tried to host the files on my synology and redirected to that address but still no luck.
Can someone make a clear tutorial how to change this.
And one question, if i change the icall/garbage file wont this be a problem with the next git pull update?
im sure It is the dashticz part that need a change which i cant get right.
- Aeon Labs USB Stick met Z-wave plus
- Aeotec MultiSensor 6
- FIBARO FGS223
- FIBARO FGWPE Wall Plug
- Neo CoolCam Power plug
- Popp Smoke Detector
- Toon
- Kodi Media Server
- Aeotec MultiSensor 6
- FIBARO FGS223
- FIBARO FGWPE Wall Plug
- Neo CoolCam Power plug
- Popp Smoke Detector
- Toon
- Kodi Media Server
-
- Posts: 12
- Joined: Sunday 07 June 2015 9:36
- Target OS: Linux
- Domoticz version: 3.6367
- Location: Utrecht
- Contact:
Re: IMPORTANT REQUEST!!!
Ok, I reverted the calendar.js and changed: config['calendar_parse_localy']=true; --> config['calendar_parse_localy']=1;Lokonli wrote: ↑Wednesday 24 October 2018 22:14The CONFIG.js setting should be:stuffer wrote: ↑Wednesday 24 October 2018 21:41@robgeerts
Almost
First I want to thank you for the project. A crate of beer is on his way when I get this working(or at the Jumbo 1,5 for the price for one )
What I did on my Ubuntu 16 machine for domoticz:
apt install apache2
apt-get install python-software-properties
add-apt-repository ppa:ondrej/php
apt-get update
apt-get install php7.2
apt-get install php7.2-curl
service apache2 restart
nano /home/pi/domoticz/www/dashboard/js/calendar.js
//\\changed://\\
if (settings['calendar_parse_localy']){
curUrl = './vendor/dashticz/ical/?time=' + cache + '&url=' + curUrl;
} else {
curUrl = 'https://dashticz.nl/ical/?time=' + cache + '&url=' + curUrl;
}
//\\to//\\
change curUrl = 'https://MYOWNDOMOTICZIP/ical/?time=' + cache + '&url=' + curUrl;
and add this in my CONFIG.js
config['calendar_parse_localy']=true;
With the result that the dutch tv section is working again. Only my 2 iCals are still not responding. (Google and RMN https://inzamelschema.rmn.nl/ical/0356200000014977)
What is the best way to look at this?
config['calendar_parse_localy']=1;
The change you made in calendar.js is not needed (and incorrect) so better to revert that one.
Still no luck. Where i can start to debug this? It feels that i am pretty close but I don't no where to start searching.
(and I hope to create an how to for other users)
-
- Posts: 2287
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: IMPORTANT REQUEST!!!
For the debugging: press F12 in Chrome, and look for errors in the console.stuffer wrote: ↑Thursday 25 October 2018 21:06 Ok, I reverted the calendar.js and changed: config['calendar_parse_localy']=true; --> config['calendar_parse_localy']=1;
Still no luck. Where i can start to debug this? It feels that i am pretty close but I don't no where to start searching.
(and I hope to create an how to for other users)
-
- Posts: 667
- Joined: Wednesday 08 March 2017 9:42
- Target OS: Linux
- Domoticz version: 3.8993
- Location: Amsterdam
- Contact:
Re: IMPORTANT REQUEST!!!
I didn't change anything inside the Dashticz code. Only addgielie wrote: ↑Thursday 25 October 2018 14:56That is only the apache/server part and i'm sure this is working fine because i run other web applications using apache.poudenes wrote: ↑Thursday 25 October 2018 9:41See my post 2 up... For me it work now. Only the custom icons part is gone now. But rest is workinggielie wrote: ↑Thursday 25 October 2018 9:40
Nope, i cant get it to work.
I started from scratch, installed dashticz in var/www/html (instead of domoticz/www) with all the necessary dependencies.
I also tried to host the files on my synology and redirected to that address but still no luck.
Can someone make a clear tutorial how to change this.
And one question, if i change the icall/garbage file wont this be a problem with the next git pull update?
im sure It is the dashticz part that need a change which i cant get right.
Code: Select all
config['calendar_parse_localy']=true;
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
- gielie
- Posts: 290
- Joined: Tuesday 12 January 2016 11:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest β
- Location: The Netherlands (Alkmaar)
- Contact:
Re: IMPORTANT REQUEST!!!
And that doesn’t make sense because it should be 1 or 0 instead of false/true.poudenes wrote: ↑Friday 26 October 2018 8:14I didn't change anything inside the Dashticz code. Only add
to CONFIG.jsCode: Select all
config['calendar_parse_localy']=true;
But again am sure my server side is working fine, it’s the dashticz part I can’t figure out why it’s not working.
Looking at all the answers and solutions here there is more then 1 so if someone could update the wiki so everybody can get it to work again cause if I don’t fix this my wife’s gonna pull of the tablet off the wall and make me place back the normals thermostat back.
- Aeon Labs USB Stick met Z-wave plus
- Aeotec MultiSensor 6
- FIBARO FGS223
- FIBARO FGWPE Wall Plug
- Neo CoolCam Power plug
- Popp Smoke Detector
- Toon
- Kodi Media Server
- Aeotec MultiSensor 6
- FIBARO FGS223
- FIBARO FGWPE Wall Plug
- Neo CoolCam Power plug
- Popp Smoke Detector
- Toon
- Kodi Media Server
-
- Posts: 667
- Joined: Wednesday 08 March 2017 9:42
- Target OS: Linux
- Domoticz version: 3.8993
- Location: Amsterdam
- Contact:
Re: IMPORTANT REQUEST!!!
Only problem i still have is the Weather icons. Load very very slow in latest Dasthicz version.
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
-
- Posts: 742
- Joined: Saturday 30 May 2015 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Contact:
Re: IMPORTANT REQUEST!!!
Yes, I experience the same. It would be nice if the weather part did not have to reload every time. How much does weather change in forecast? Not too much.poudenes wrote:Only problem i still have is the Weather icons. Load very very slow in latest Dasthicz version.
I wonder actually what the default 5 minute reload is good for? Will the calendar not update without that? In that case it would be awesome if only that block is reloaded.
- gielie
- Posts: 290
- Joined: Tuesday 12 January 2016 11:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest β
- Location: The Netherlands (Alkmaar)
- Contact:
Re: IMPORTANT REQUEST!!!
Same problem, very very slow, not workable
- Aeon Labs USB Stick met Z-wave plus
- Aeotec MultiSensor 6
- FIBARO FGS223
- FIBARO FGWPE Wall Plug
- Neo CoolCam Power plug
- Popp Smoke Detector
- Toon
- Kodi Media Server
- Aeotec MultiSensor 6
- FIBARO FGS223
- FIBARO FGWPE Wall Plug
- Neo CoolCam Power plug
- Popp Smoke Detector
- Toon
- Kodi Media Server
-
- Posts: 2287
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: IMPORTANT REQUEST!!!
I cannot reproduce the problem. Which weather provider are you using? WU or OWM? In case of WU, try with OWM. WU is using cors-anywhere.herokuapp.com, which might introduce some delay.
You cannot use WU and OWM simultaneously.
In CONFIG.js add:
Code: Select all
config['owm_api'] = 'your OpenWeatherMap key';
config['owm_city'] = 'Mainaschaff';
config['owm_name'] = '';
config['owm_country'] = 'de';
- EdwinK
- Posts: 1820
- Joined: Sunday 22 January 2017 21:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Rhoon
- Contact:
Re: IMPORTANT REQUEST!!!
No problems with OWM.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
-
- Posts: 1602
- Joined: Friday 18 October 2013 23:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Arnhem/Nijmegen Nederland
- Contact:
Re: IMPORTANT REQUEST!!!
Is there perhaps someone that have a simple how to ...
To install all the nice stuf from rob on my RPi, r my Slave rpi..
I see servel solutions..
Only a simple one..
Thanks!!
To install all the nice stuf from rob on my RPi, r my Slave rpi..
I see servel solutions..
Only a simple one..

Thanks!!
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
-
- Posts: 742
- Joined: Saturday 30 May 2015 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Contact:
Re: IMPORTANT REQUEST!!!
This makes sense. When the icons won't load and I have the browser in debugging mode, I see the following error:Lokonli wrote: ↑Friday 26 October 2018 19:42 I cannot reproduce the problem. Which weather provider are you using? WU or OWM? In case of WU, try with OWM. WU is using cors-anywhere.herokuapp.com, which might introduce some delay.
You cannot use WU and OWM simultaneously.
In CONFIG.js add:then replace in your block 'weather' with 'weather_owm' and 'currentweather_big' with ' currentweather_big_owm'Code: Select all
config['owm_api'] = 'your OpenWeatherMap key'; config['owm_city'] = 'Mainaschaff'; config['owm_name'] = ''; config['owm_country'] = 'de';
Code: Select all
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource
at https://cors-anywhere.herokuapp.com/https://api.wunderground.com/api/1xxxxxxxxxxxxxxxxxd/forecast10day/q/NL/Dxxxxxxx.json.
(Reason: CORS header ‘Access-Control-Allow-Origin’ missing).[Learn More]
btw, a similar error shows up sometimes for the 'longfonds' block, it also has to do with the 'https://cors-anywhere.herokuapp.com'
-
- Posts: 742
- Joined: Saturday 30 May 2015 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Contact:
Re: IMPORTANT REQUEST!!!
Thanks for fixing. I was happy to see the dates with their respective colors back. However, when I looked at the type of garbage being picked up next (Restafval: maandag), I realized that it is not correct. This was last Monday and not next Monday. Next Monday it will be GFT instead. Number 2 and 3 on my list (I limited it to 3) are correct for next week Thursday, (Papier and Plastic).
29-10-18: Code is updated by Lokonli and HVC works now as expected!
I updated the Dashticz wiki page with the new situation for the Module - Garbage collector. Please check my changes. I also put some comments in the Module - Calendar. I wonder if we still yes/no need the config.js parameter: config['calendar_parse_localy']=true;
Please also check / modify / add that section as well.
Last edited by jake on Monday 29 October 2018 20:14, edited 2 times in total.
-
- Posts: 26
- Joined: Saturday 15 April 2017 12:28
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: The Netherlands
- Contact:
Re: IMPORTANT REQUEST!!!
Try this:
The easy way is to just add the extension in google chrome to allow access using CORS.
(https://chrome.google.com/webstore/deta ... ihlkkiljbi...)
Just enable this extension whenever you want allow access to no 'access-control-allow-origin'header request.
-
- Posts: 19
- Joined: Friday 20 October 2017 17:36
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: IMPORTANT REQUEST!!!
Are you still looking for webhosting? If so, what specs are you looking for? I might be able to help you out depending on your requirements.
-
- Posts: 2287
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: IMPORTANT REQUEST!!!
Thanks for updating the wiki! I've added a few garbage companies that are supported as well already.jake wrote: ↑Friday 26 October 2018 22:03Thanks for fixing. I was happy to see the dates with their respective colors back. However, when I looked at the type of garbage being picked up next (Restafval: maandag), I realized that it is not correct. This was last Monday and not next Monday. Next Monday it will be GFT instead. Number 2 and 3 on my list (I limited it to 3) are correct for next week Thursday, (Papier and Plastic).
I updated the Dashticz wiki page with the new situation for the Module - Garbage collector. Please check my changes. I also put some comments in the Module - Calendar. I wonder if we still yes/no need the config.js parameter: config['calendar_parse_localy']=true;
Please also check / modify / add that section as well.
The calendar_parse_localy setting is indeed not needed/not used anymore.
Who is online
Users browsing this forum: No registered users and 1 guest