Yet another frontpage

Moderator: leecollings

Jasper79
Posts: 85
Joined: Sunday 26 July 2020 8:37
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: The Netherlands
Contact:

Re: Yet another frontpage

Post 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?
PatrickSt91
Posts: 27
Joined: Sunday 31 May 2020 10:01
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Yet another frontpage

Post 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
Last edited by PatrickSt91 on Tuesday 18 August 2020 9:22, edited 1 time in total.
bimse
Posts: 21
Joined: Sunday 05 February 2017 12:09
Target OS: Raspberry Pi / ODroid
Domoticz version: Model 3
Contact:

Re: Yet another frontpage

Post by bimse »

Does not work as intended, now it says "403 Forbidden"
Hope you find a solution
Translated with google
PatrickSt91
Posts: 27
Joined: Sunday 31 May 2020 10:01
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Yet another frontpage

Post 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.
GilbertvH
Posts: 18
Joined: Tuesday 23 June 2020 11:01
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Yet another frontpage

Post by GilbertvH »

Are you planning to implement more garbage companies? Our city doesn't use afvalwijzer but 'deafvalapp'
Jasper79
Posts: 85
Joined: Sunday 26 July 2020 8:37
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: The Netherlands
Contact:

Re: Yet another frontpage

Post 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
PatrickSt91
Posts: 27
Joined: Sunday 31 May 2020 10:01
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Yet another frontpage

Post 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
GilbertvH
Posts: 18
Joined: Tuesday 23 June 2020 11:01
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Yet another frontpage

Post 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
PatrickSt91
Posts: 27
Joined: Sunday 31 May 2020 10:01
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Yet another frontpage

Post 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
GilbertvH
Posts: 18
Joined: Tuesday 23 June 2020 11:01
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Yet another frontpage

Post 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.
PatrickSt91
Posts: 27
Joined: Sunday 31 May 2020 10:01
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Yet another frontpage

Post 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';
GilbertvH
Posts: 18
Joined: Tuesday 23 June 2020 11:01
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Yet another frontpage

Post 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
Opera Snapshot_2020-08-25_134454_192.168.178.24.png (17.61 KiB) Viewed 1568 times
PatrickSt91
Posts: 27
Joined: Sunday 31 May 2020 10:01
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Yet another frontpage

Post 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 :)
Attachments
index.7z
Correct index version
(2.42 KiB) Downloaded 53 times
JuanUil
Posts: 497
Joined: Friday 22 May 2015 12:21
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11083
Location: Asten NB Nederland
Contact:

Re: Yet another frontpage

Post 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
Your mind is like a parachute,
It only works when it is opened!

RPI4 several Fibaro, KaKu, Neocoolcam switches, Z-Wave, Zigbee2Mqtt, Ikea bulbs and remote, Zigbee temp nodes
PatrickSt91
Posts: 27
Joined: Sunday 31 May 2020 10:01
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Yet another frontpage

Post 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.
GilbertvH
Posts: 18
Joined: Tuesday 23 June 2020 11:01
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Yet another frontpage

Post 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.
PatrickSt91
Posts: 27
Joined: Sunday 31 May 2020 10:01
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Yet another frontpage

Post 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&param=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
JuanUil
Posts: 497
Joined: Friday 22 May 2015 12:21
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11083
Location: Asten NB Nederland
Contact:

Re: Yet another frontpage

Post 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
Your mind is like a parachute,
It only works when it is opened!

RPI4 several Fibaro, KaKu, Neocoolcam switches, Z-Wave, Zigbee2Mqtt, Ikea bulbs and remote, Zigbee temp nodes
JuanUil
Posts: 497
Joined: Friday 22 May 2015 12:21
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11083
Location: Asten NB Nederland
Contact:

Re: Yet another frontpage

Post by JuanUil »

anyone any idea?
Your mind is like a parachute,
It only works when it is opened!

RPI4 several Fibaro, KaKu, Neocoolcam switches, Z-Wave, Zigbee2Mqtt, Ikea bulbs and remote, Zigbee temp nodes
Jasper79
Posts: 85
Joined: Sunday 26 July 2020 8:37
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: The Netherlands
Contact:

Re: Yet another frontpage

Post by Jasper79 »

Is the directory Frontpage or frontpage?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests