NEW frontpage.html - request comments
Moderator: leecollings
-
- Posts: 666
- Joined: Thursday 02 October 2014 6:36
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.2
- Location: Geleen
- Contact:
Re: NEW frontpage.html - request comments
@mvveelen, where did you get the wheather icons?
- mvveelen
- Posts: 687
- Joined: Friday 31 October 2014 10:22
- Target OS: NAS (Synology & others)
- Domoticz version: Beta
- Location: Hoorn, The Netherlands
- Contact:
Re: NEW frontpage.html - request comments
Here you go: http://www.fordesigner.com/maps/3160-0.htmjan_nl wrote:@mvveelen, where did you get the wheather icons?
I combined a few myself to get a night-look and a day-look

RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
-
- Posts: 27
- Joined: Thursday 15 January 2015 9:51
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: NEW frontpage.html - request comments
First of all, Thanks to @Thinkpad and @bizziebis for the code that I use.
I have been trying to display the time, sunrise and sunset on the page, but without succes yet.
I found some code that I probably need to get it to work, but my knowledge of JSON etc. isn't that great yet. Maybe someone can help me out with this.
What I found:
JSON url to get time values:
http://ipaddress/json.htm?type=command& ... SunRiseSet
Code from LightsController.js
I don't know if this is of any use, but maybe this will get me/us close to the solution. 
I have been trying to display the time, sunrise and sunset on the page, but without succes yet.

I found some code that I probably need to get it to work, but my knowledge of JSON etc. isn't that great yet. Maybe someone can help me out with this.
What I found:
JSON url to get time values:
http://ipaddress/json.htm?type=command& ... SunRiseSet
Code from LightsController.js
Code: Select all
var sunRise="";
var sunSet="";
$.ajax({
url: "json.htm?type=command¶m=getSunRiseSet",
async: false,
dataType: 'json',
success: function(data) {
if (typeof data.Sunrise != 'undefined') {
sunRise=data.Sunrise;
sunSet=data.Sunset;
}
}
});
var suntext='<div id="timesun" /><br>\n';
htmlcontent+=suntext;
htmlcontent+=$('#edittimers').html();
$('#lightcontent').html(GetBackbuttonHTMLTable('ShowLights')+htmlcontent);
$('#lightcontent').i18n();
$("#lightcontent #timerparamstable #rdate").hide();
$("#lightcontent #timerparamstable #rnorm").show();
$rootScope.RefreshTimeAndSun();

- mvveelen
- Posts: 687
- Joined: Friday 31 October 2014 10:22
- Target OS: NAS (Synology & others)
- Domoticz version: Beta
- Location: Hoorn, The Netherlands
- Contact:
Re: NEW frontpage.html - request comments
You're welcome
I've managed to switch the complete .css (file) when the sun sets or when the sun rises (based on a virtual switch). This gives me the possibility to work with shades of grey (for example) during the night instead of colors. I have 2 .css files (frontpage-day.css and frontpage-night.css) now.

I've managed to switch the complete .css (file) when the sun sets or when the sun rises (based on a virtual switch). This gives me the possibility to work with shades of grey (for example) during the night instead of colors. I have 2 .css files (frontpage-day.css and frontpage-night.css) now.
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
-
- Posts: 27
- Joined: Thursday 15 January 2015 9:51
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: NEW frontpage.html - request comments
@ mvveelen,
Ik denk dat je inmiddels voorzien bent, maar deze geanimeerde weer icoontjes kwam ik tegen. Ook best leuk vind ik.
http://codepen.io/motorlatitude/pen/CyqDf
Wat betreft mijn eigen probleempje, die hierboven beschreven staat, heb ik denk ik de oplossing gevonden.
Translation:
I think you already have what you were searching for, but I came across these animated weather icons. I think they are pretty nice
http://codepen.io/motorlatitude/pen/CyqDf
About my problem, described above, I think I found a solution.
Ik denk dat je inmiddels voorzien bent, maar deze geanimeerde weer icoontjes kwam ik tegen. Ook best leuk vind ik.

http://codepen.io/motorlatitude/pen/CyqDf
Wat betreft mijn eigen probleempje, die hierboven beschreven staat, heb ik denk ik de oplossing gevonden.
Translation:
I think you already have what you were searching for, but I came across these animated weather icons. I think they are pretty nice
http://codepen.io/motorlatitude/pen/CyqDf
About my problem, described above, I think I found a solution.
Last edited by Skorpion on Friday 16 January 2015 15:37, edited 1 time in total.
- mbliek
- Posts: 194
- Joined: Friday 12 July 2013 14:08
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: the Netherlands
- Contact:
Re: NEW frontpage.html - request comments
Rewrite your post English please. This is an English forum.Skorpion wrote:@ mvveelen,
Ik denk dat je inmiddels voorzien bent, maar deze geanimeerde weer icoontjes kwam ik tegen. Ook best leuk vind ik.
http://codepen.io/motorlatitude/pen/CyqDf
Wat betreft mijn eigen probleempje, die hierboven beschreven staat, heb ik denk ik de oplossing gevonden.
Op zoek naar een Domoticz Start Set?
- mvveelen
- Posts: 687
- Joined: Friday 31 October 2014 10:22
- Target OS: NAS (Synology & others)
- Domoticz version: Beta
- Location: Hoorn, The Netherlands
- Contact:
Re: NEW frontpage.html - request comments
Thanks for the tip, I've seen them before but couldn't find a download link for these icons.....
edit: oh, wait! These images are build through css
!
And why don't you share your solution with this community
?
edit: oh, wait! These images are build through css

And why don't you share your solution with this community

RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
-
- Posts: 27
- Joined: Thursday 15 January 2015 9:51
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: NEW frontpage.html - request comments
Sorry my bad.. I'm used to answer in Dutch when I see someone who is also Dutch haha. I translated my post.mbliek wrote:Rewrite your post English please. This is an English forum.Skorpion wrote:@ mvveelen,
Ik denk dat je inmiddels voorzien bent, maar deze geanimeerde weer icoontjes kwam ik tegen. Ook best leuk vind ik.
http://codepen.io/motorlatitude/pen/CyqDf
Wat betreft mijn eigen probleempje, die hierboven beschreven staat, heb ik denk ik de oplossing gevonden.
Yes they are, CSS 3 in fact so it is very easy to implement these icons.mvveelen wrote:Thanks for the tip, I've seen them before but couldn't find a download link for these icons.....
edit: oh, wait! These images are build through css!
And why don't you share your solution with this community?

I will post the solution here if I got it working.
-
- Posts: 27
- Joined: Thursday 15 January 2015 9:51
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: NEW frontpage.html - request comments
For the ones who would like to display more content on their pages, I created a second page for the "Domoticz Dashboard". If you wish, you can easily edit the code to add even more pages.
I split the contents of the .html in separate files => 2 html files for page 1 & 2, 1 css file for style and 1 javascript file for scripting. I also edited the original Domoticz logo for a new "Domoticz Dashboard" favicon and iOS logo if you decide to install the dashboard as a WebApp. The WebApp is meant to use in landscape format. I tested the WebApp on iPad & iPhone and it works like a charm.
I haven't been able to test on Android etc.
I hope you guys like this edit.
PS. Make sure you rename the DD favicon if you want to use this one. Otherwise the original favicon is replaced.

I split the contents of the .html in separate files => 2 html files for page 1 & 2, 1 css file for style and 1 javascript file for scripting. I also edited the original Domoticz logo for a new "Domoticz Dashboard" favicon and iOS logo if you decide to install the dashboard as a WebApp. The WebApp is meant to use in landscape format. I tested the WebApp on iPad & iPhone and it works like a charm.

I hope you guys like this edit.

PS. Make sure you rename the DD favicon if you want to use this one. Otherwise the original favicon is replaced.

- Attachments
-
- Domoticz Dashboard.zip
- Files Domoticz Dashboard
- (37.68 KiB) Downloaded 729 times
Last edited by Skorpion on Friday 16 January 2015 16:18, edited 1 time in total.
-
- Posts: 135
- Joined: Monday 27 January 2014 14:12
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Netherlands
- Contact:
Re: NEW frontpage.html - request comments
Great work you guys!
I also like the EVOHOME interface. I was wondering if someone can edit the html to look like this. Of course with webcam and buienradar support

I also like the EVOHOME interface. I was wondering if someone can edit the html to look like this. Of course with webcam and buienradar support


Last edited by Heisenberg on Saturday 17 January 2015 9:20, edited 1 time in total.
Raspberry Pi Type B
Raspberry Pi Type B2
RFXCOMtrx433e
Raspberry Pi Type B2
RFXCOMtrx433e
-
- Posts: 890
- Joined: Tuesday 30 September 2014 8:49
- Target OS: Linux
- Domoticz version: beta
- Location: The Netherlands
- Contact:
Re: NEW frontpage.html - request comments
Nice... this topic is really popular the last time. I like it that many people are fiddling around and creating & sharing nice things.
About the EvoHome interface... should be too hard for someone with CSS knowledge. Colors can be grabbed by using a tool like ColorPic (for Windows).
About the EvoHome interface... should be too hard for someone with CSS knowledge. Colors can be grabbed by using a tool like ColorPic (for Windows).
I am not active on this forum anymore.
- bizziebis
- Posts: 182
- Joined: Saturday 19 October 2013 14:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8805
- Location: The Netherlands
- Contact:
Re: NEW frontpage.html - request comments
I changed some stuff again. I think it's OK for me now 
* Camera popup when doorbel rings
* Popup with message when a switch is pressed. Feedback feels more natural.
* Second page with switches. NO second html page, just swipe to next page
A teaser for now:
http://youtu.be/J3Xp_Ee115c

* Camera popup when doorbel rings
* Popup with message when a switch is pressed. Feedback feels more natural.
* Second page with switches. NO second html page, just swipe to next page

A teaser for now:
http://youtu.be/J3Xp_Ee115c
-
- Posts: 666
- Joined: Thursday 02 October 2014 6:36
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.2
- Location: Geleen
- Contact:
Re: NEW frontpage.html - request comments
Nice. The swiping is very nice. Please post your code.
-
- Posts: 98
- Joined: Monday 28 July 2014 9:58
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: Stockholm
- Contact:
Re: NEW frontpage.html - request comments
How nice would it be if it could be included in the standard package with a configuration page as companion where you could select switches etc free from your HW list like in the floorplan
Could even have a tab of its own if selected in as choose in "active menus" in the "application settings" page...
Know I ask for much, but I think a lot of users would appreciate it including me

Could even have a tab of its own if selected in as choose in "active menus" in the "application settings" page...
Know I ask for much, but I think a lot of users would appreciate it including me

/lennart
-
- Posts: 2
- Joined: Tuesday 02 September 2014 21:02
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Netherlands
- Contact:
Re: NEW frontpage.html - request comments
@jan_nl Can you post your frontpage.html? I'm trying to include a scene and group button but can't get it working.....
-
- Posts: 135
- Joined: Monday 27 January 2014 14:12
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Netherlands
- Contact:
Re: NEW frontpage.html - request comments
Nice! I like the popups very much. Please share your code with us.bizziebis wrote:I changed some stuff again. I think it's OK for me now
* Camera popup when doorbel rings
* Popup with message when a switch is pressed. Feedback feels more natural.
* Second page with switches. NO second html page, just swipe to next page![]()
A teaser for now:
http://youtu.be/J3Xp_Ee115c
Raspberry Pi Type B
Raspberry Pi Type B2
RFXCOMtrx433e
Raspberry Pi Type B2
RFXCOMtrx433e
-
- Posts: 666
- Joined: Thursday 02 October 2014 6:36
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.2
- Location: Geleen
- Contact:
Re: NEW frontpage.html - request comments
I am not at home right now, will post it later today or tomorrow.fmeijndert wrote:@jan_nl Can you post your frontpage.html? I'm trying to include a scene and group button but can't get it working.....
- bizziebis
- Posts: 182
- Joined: Saturday 19 October 2013 14:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8805
- Location: The Netherlands
- Contact:
Re: NEW frontpage.html - request comments
I made it a little bit easier to change some idx numers and txt. It's right above the "USER VALUES".
The whole layout size it's far from perfect.. Still have to clean it up.
I would like to add scene switching also in the future. I have a full page left for stuff like that
Edit: some mistakes corrected (16:45 17-01-15)
The whole layout size it's far from perfect.. Still have to clean it up.
I would like to add scene switching also in the future. I have a full page left for stuff like that

Edit: some mistakes corrected (16:45 17-01-15)
- Attachments
-
- frontpage.zip
- (27.25 KiB) Downloaded 757 times
-
- Posts: 666
- Joined: Thursday 02 October 2014 6:36
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.2
- Location: Geleen
- Contact:
Re: NEW frontpage.html - request comments
Look for SceneToggle to see how I implemented this, I also added an additional pagearray, search for it in the html file.
I also added most of the swipe code.
Who is online
Users browsing this forum: No registered users and 1 guest