NEW frontpage.html - request comments

Moderator: leecollings

jannl
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

Post by jannl »

@mvveelen, where did you get the wheather icons?
User avatar
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

Post by mvveelen »

jan_nl wrote:@mvveelen, where did you get the wheather icons?
Here you go: http://www.fordesigner.com/maps/3160-0.htm

I combined a few myself to get a night-look and a day-look :D
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
jannl
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

Post by jannl »

thx
Skorpion
Posts: 27
Joined: Thursday 15 January 2015 9:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: NEW frontpage.html - request comments

Post by Skorpion »

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

Code: Select all

	var sunRise="";
			var sunSet="";
			$.ajax({
				 url: "json.htm?type=command&param=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();
I don't know if this is of any use, but maybe this will get me/us close to the solution. :)
User avatar
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

Post by mvveelen »

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.
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
Skorpion
Posts: 27
Joined: Thursday 15 January 2015 9:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: NEW frontpage.html - request comments

Post by Skorpion »

@ 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.
Last edited by Skorpion on Friday 16 January 2015 15:37, edited 1 time in total.
User avatar
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

Post by mbliek »

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.
Rewrite your post English please. This is an English forum.
User avatar
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

Post by mvveelen »

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 :) ?
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
Skorpion
Posts: 27
Joined: Thursday 15 January 2015 9:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: NEW frontpage.html - request comments

Post by Skorpion »

mbliek wrote:
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.
Rewrite your post English please. This is an English forum.
Sorry my bad.. I'm used to answer in Dutch when I see someone who is also Dutch haha. I translated my post.
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 :) ?
Yes they are, CSS 3 in fact so it is very easy to implement these icons. :)

I will post the solution here if I got it working.
Skorpion
Posts: 27
Joined: Thursday 15 January 2015 9:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: NEW frontpage.html - request comments

Post by Skorpion »

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.

Image
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.
Heisenberg
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

Post by Heisenberg »

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 :)

Image
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
ThinkPad
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

Post by ThinkPad »

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).
I am not active on this forum anymore.
User avatar
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

Post by bizziebis »

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 :D

A teaser for now:

http://youtu.be/J3Xp_Ee115c
jannl
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

Post by jannl »

Nice. The swiping is very nice. Please post your code.
leby
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

Post by leby »

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 :lol:
/lennart
fmeijndert
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

Post by fmeijndert »

@jan_nl Can you post your frontpage.html? I'm trying to include a scene and group button but can't get it working.....
Heisenberg
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

Post by Heisenberg »

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 :D

A teaser for now:

http://youtu.be/J3Xp_Ee115c
Nice! I like the popups very much. Please share your code with us.
Raspberry Pi Type B
Raspberry Pi Type B2
RFXCOMtrx433e
jannl
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

Post by jannl »

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.....
I am not at home right now, will post it later today or tomorrow.
User avatar
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

Post by bizziebis »

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 :D

Edit: some mistakes corrected (16:45 17-01-15)
Attachments
frontpage.zip
(27.25 KiB) Downloaded 757 times
jannl
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

Post by jannl »

frontpage.zip
(32.73 KiB) Downloaded 745 times
In the zip my version.
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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest