Page 4 of 5
Re: Yet another frontpage
Posted: Friday 14 August 2020 14:12
by Jasper79
Clicking the link says its not safe, going on and the download triggers Chrome and again it says not safe. Might want to repack and share somewhere else?
Re: Yet another frontpage
Posted: Saturday 15 August 2020 8:43
by PatrickSt91
Jasper79 wrote: Friday 14 August 2020 14:12
Clicking the link says its not safe, going on and the download triggers Chrome and again it says not safe. Might want to repack and share somewhere else?
Thanks for the headsup, i've reuploaded it to a different site.
https://github.com/PatrickSt1991/Domoti ... master.zip
Re: Yet another frontpage
Posted: Saturday 15 August 2020 12:36
by bimse
Does not work as intended, now it says "403 Forbidden"
Hope you find a solution
Re: Yet another frontpage
Posted: Tuesday 18 August 2020 9:22
by PatrickSt91
bimse wrote: Saturday 15 August 2020 12:36
Does not work as intended, now it says "403 Forbidden"
Hope you find a solution
It's on github now, you should be able to download it without any problem now.
Re: Yet another frontpage
Posted: Tuesday 18 August 2020 10:12
by GilbertvH
Are you planning to implement more garbage companies? Our city doesn't use afvalwijzer but 'deafvalapp'
Re: Yet another frontpage
Posted: Tuesday 18 August 2020 11:39
by Jasper79
PatrickSt91 wrote: Tuesday 18 August 2020 9:22
bimse wrote: Saturday 15 August 2020 12:36
Does not work as intended, now it says "403 Forbidden"
Hope you find a solution
It's on github now, you should be able to download it without any problem now.
Thanks, I'm following this now. Previous link was the direct link to the zip file.
https://github.com/PatrickSt1991/Domoticz-Template
Re: Yet another frontpage
Posted: Wednesday 19 August 2020 15:10
by PatrickSt91
GilbertvH wrote: Tuesday 18 August 2020 10:12
Are you planning to implement more garbage companies? Our city doesn't use afvalwijzer but 'deafvalapp'
I wasn't planning on it, but I've added it never the less.
You should be able to see it now on the github page.
Please not i've only added the functionality, you should do a bit of styling yourself in the css
Kind regards,
Patrick
Re: Yet another frontpage
Posted: Thursday 20 August 2020 11:35
by GilbertvH
PatrickSt91 wrote: Wednesday 19 August 2020 15:10
GilbertvH wrote: Tuesday 18 August 2020 10:12
Are you planning to implement more garbage companies? Our city doesn't use afvalwijzer but 'deafvalapp'
I wasn't planning on it, but I've added it never the less.
You should be able to see it now on the github page.
Please not i've only added the functionality, you should do a bit of styling yourself in the css
Kind regards,
Patrick
Great! I'll check tonight!
Update: Date works but image still not available
Re: Yet another frontpage
Posted: Monday 24 August 2020 17:06
by PatrickSt91
GilbertvH wrote: Thursday 20 August 2020 11:35
Update: Date works but image still not available
Can you post a screenshot or check the code why it's not working?
There should be a image folder, maybe you postalcode has something different.
Cheers,
Patrick
Re: Yet another frontpage
Posted: Tuesday 25 August 2020 11:59
by GilbertvH
Link to image is referring to http://***/assets/images/Afvalwijzer/GFT_80.png. *** is of course my internal IP and web folder name.
When I open this in a new tab it shows a 404. When I manually change GFT_80.png to gft_80.png it works.
Re: Yet another frontpage
Posted: Tuesday 25 August 2020 12:09
by PatrickSt91
GilbertvH wrote: Tuesday 25 August 2020 11:59
Link to image is referring to http://***/assets/images/Afvalwijzer/GFT_80.png. *** is of course my internal IP and web folder name.
When I open this in a new tab it shows a 404. When I manually change GFT_80.png to gft_80.png it works.
Wait it's using the folder Afvalwijzer?
I thought you needed to use deafvalapp?
Have you changed the variable setting?
index.php -> line 2 -> $AfvalType = 'deafvalapp';
Re: Yet another frontpage
Posted: Tuesday 25 August 2020 13:38
by GilbertvH
PatrickSt91 wrote: Tuesday 25 August 2020 12:09
GilbertvH wrote: Tuesday 25 August 2020 11:59
Link to image is referring to http://***/assets/images/Afvalwijzer/GFT_80.png. *** is of course my internal IP and web folder name.
When I open this in a new tab it shows a 404. When I manually change GFT_80.png to gft_80.png it works.
Wait it's using the folder Afvalwijzer?
I thought you needed to use deafvalapp?
Have you changed the variable setting?
index.php -> line 2 -> $AfvalType = 'deafvalapp';
Changed that already. I also see this on line 78:
<th class="tg-0lax" rowspan="2"><img src="assets/images/Afvalwijzer/<?php echo $container_typ; ?>_80.png"></th>
That's still referring to this Afvalwijzer map

- Opera Snapshot_2020-08-25_134454_192.168.178.24.png (17.61 KiB) Viewed 1953 times
Re: Yet another frontpage
Posted: Wednesday 26 August 2020 8:30
by PatrickSt91
GilbertvH wrote: Tuesday 25 August 2020 13:38
Changed that already. I also see this on line 78:
<th class="tg-0lax" rowspan="2"><img src="assets/images/Afvalwijzer/<?php echo $container_typ; ?>_80.png"></th>
That's still referring to this Afvalwijzer map
Opera Snapshot_2020-08-25_134454_192.168.178.24.png
Ah I guess I uploaded a beta file then.
I've added a new index.php, please try that one...
My bad

Re: Yet another frontpage
Posted: Wednesday 26 August 2020 9:21
by JuanUil
Hi There nice frontpage!
For my garbage I need to use the opzet_api, in combination with
www.mijnblink.nl
Is it possible to integrate this one as wel?
Jan
Re: Yet another frontpage
Posted: Wednesday 26 August 2020 14:07
by PatrickSt91
JuanUil wrote: Wednesday 26 August 2020 9:21
Hi There nice frontpage!
For my garbage I need to use the opzet_api, in combination with
www.mijnblink.nl
Is it possible to integrate this one as wel?
Jan
I've send you a private message regarding your request.
Re: Yet another frontpage
Posted: Friday 04 September 2020 9:42
by GilbertvH
Could be my n00bness but when I change the idx for the bottom switches (in your case the PS4, Roomba etc.) to my Domoticz switches nothing happens on toggle. The link refers to my index.php file. In index.php I have the following code for powering off all lamps:
<div class="item col-6 col-md-4 col-lg-2 mb-3 mb-lg-0">
<a href="" onclick='ToggleSwitch("1");'>
<div class="item-inner">
<i class="flaticon-idea-1" <?php echo $active_style[0]; ?>></i>
<div class="flaticon-text">Lampen uit</div>
ToggleSwitch("1") is idx 1 in my Domoticz which is a scene.
Re: Yet another frontpage
Posted: Friday 04 September 2020 13:24
by PatrickSt91
Hi Gilbert,
The best way to use a scene is to adde the following to domoticz_switches.js
Code: Select all
function ToggleScene(idx){
$.ajax({ url: 'http://192.168.0.125:8080/json.htm?type=command¶m=switchscene&idx=' + idx + '&switchcmd=Toggle' });
}
for reference:
https://www.domoticz.com/wiki/Domoticz_ ... _on_or_off
or you can send another parameter with the ToggleSwitch and put in scene or light
but if you choose to go with the above then you should also change onclick='ToggleSwitch("1");' to onclick='ToogleScene("1");'
Domoticz uses different json url's for changing a light switch and changing a scene.
Cheers,
Patrick
Re: Yet another frontpage
Posted: Wednesday 09 September 2020 15:34
by JuanUil
Hi Patrck,
today tried to implement your frontpage with the implementation of blink you made for me.
I did it remotely because I am still on vacation.
When I enter
http://192.168.x.xx:8080/Frontpage/index.php
I get a failure 501 not implemented.
I have installed php 7.3 with no result.
Any idea?
Jan
Re: Yet another frontpage
Posted: Friday 11 September 2020 14:30
by JuanUil
anyone any idea?
Re: Yet another frontpage
Posted: Friday 11 September 2020 15:05
by Jasper79
Is the directory Frontpage or frontpage?