Page 20 of 66

Re: NEW frontpage.html - request comments

Posted: Monday 16 February 2015 13:11
by Siewert308SW
Just created a virtual Sunrise/Sunset switch to use for the Day/Night icons.
I think this will reflect the day/night mode better ;-)

Re: NEW frontpage.html - request comments

Posted: Monday 16 February 2015 13:57
by Siewert308SW
For now these Alarm icons will do for me ;-)

Download: (temporally)
https://dl.dropboxusercontent.com/u/23213779/icons.zip

Re: NEW frontpage.html - request comments

Posted: Monday 16 February 2015 14:17
by Mozart
I have a problem with the versions of the frontpage that use the seperated approach.
I have a working frontpage that is just 1 file (html, javascript & css).
When I try a version that has everything seperated I cannot switch on my lights. I do get a popup saying that it will switch on the lights but it does not.
When I open the java console in the webbrowser I get the 'Error' message, nothing else.
Any ideas?

Re: NEW frontpage.html - request comments

Posted: Monday 16 February 2015 14:22
by Siewert308SW
Mozart wrote:I have a problem with the versions of the frontpage that use the seperated approach.
I have a working frontpage that is just 1 file (html, javascript & css).
When I try a version that has everything seperated I cannot switch on my lights. I do get a popup saying that it will switch on the lights but it does not.
When I open the java console in the webbrowser I get the 'Error' message, nothing else.
Any ideas?
Which browser and did you try others aswell?
What's your current Java version?
Are you sure you implanted all frontpage files and on the right spot?
Which frontpage package do u use?

Re: NEW frontpage.html - request comments

Posted: Monday 16 February 2015 14:53
by mvveelen
These are the ones I use now:
alarm_off4.png
alarm_off4.png (22.17 KiB) Viewed 3467 times
alarm_on4.png
alarm_on4.png (22.27 KiB) Viewed 3467 times

Re: NEW frontpage.html - request comments

Posted: Monday 16 February 2015 14:59
by Mozart
Siewert308SW wrote: Which browser and did you try others aswell?
What's your current Java version?
Are you sure you implanted all frontpage files and on the right spot?
Which frontpage package do u use?
I tried Firefox, Chrome and IE, all the same result.
Java version is: java version "1.7.0_51"

I tried with your package just now and I get the same result :(

Re: NEW frontpage.html - request comments

Posted: Monday 16 February 2015 16:41
by Siewert308SW
mvveelen wrote:These are the ones I use now:
alarm_off4.png
alarm_on4.png
Nice ones, do remind me of the android wifi hotspot signal

Re: NEW frontpage.html - request comments

Posted: Monday 16 February 2015 16:46
by Siewert308SW
Mozart wrote:
Siewert308SW wrote: Which browser and did you try others aswell?
What's your current Java version?
Are you sure you implanted all frontpage files and on the right spot?
Which frontpage package do u use?
I tried Firefox, Chrome and IE, all the same result.
Java version is: java version "1.7.0_51"

I tried with your package just now and I get the same result :(
What does the java site tell you when you use the link below.
https://www.java.com/nl/download/installed.jsp

And is your java correctly called in your Windows PATH?
Is your java enabled in your browser?
Sounds like your system is the culprit but i'm not a expert on this one.
Maybe someone else can help you.

Re: NEW frontpage.html - request comments

Posted: Monday 16 February 2015 16:56
by Slayer007
I don't think the problem is in Java, otherwise your old frontpage also wouldn't work.
Till yesterday I also had one file with everything in it. Did you named the files correctly?
What I did: I created 4 files:
Frontpage.css
Frontpage.html
Frontpage.js
Frontpage_setting.js

Important is that you change the path in the files to the ones you are using.
Then I copied parts of my old frontpage in de correct files, where they should be.

After that everything works the same as before.

Ps. I don't have a day and night css

Re: NEW frontpage.html - request comments

Posted: Monday 16 February 2015 16:57
by SwordFish
Bin playing around with it a little.
Thanks for everyone who's involved with it.

Re: NEW frontpage.html - request comments

Posted: Monday 16 February 2015 17:28
by pvm
I have the skycons working. But not inside this page. I am building a homecontrol page which also displays my music system. I am not at home now, cannot post code. I followed the available example page and do some translation to match the forecast string to what skycons can handle

Re: NEW frontpage.html - request comments

Posted: Monday 16 February 2015 17:55
by Mozart
Slayer007 wrote:I don't think the problem is in Java, otherwise your old frontpage also wouldn't work.
Till yesterday I also had one file with everything in it. Did you named the files correctly?
What I did: I created 4 files:
Frontpage.css
Frontpage.html
Frontpage.js
Frontpage_setting.js

Important is that you change the path in the files to the ones you are using.
Then I copied parts of my old frontpage in de correct files, where they should be.

After that everything works the same as before.

Ps. I don't have a day and night css
True, the old page works so java should be ok.
What I did was create a new folder called fp and put the files in there with subfolders.
I updated the references to the CSS, javascripts and icons so that it corresponds with the new folder structure.
Then I open on my tablet or desktop (makes no difference) the page http://domoticz/fp/frontpage.html
The page shows fine and the currect status of switches and dimmers is correct.
But clicking on any of those does nothing :(
I tried some debugging and when I open the Java Console in the browser I can see only 'Error'.
This is the result of the function SwitchToggle, that prints either Success of Error.

Re: NEW frontpage.html - request comments

Posted: Monday 16 February 2015 17:59
by mbliek
Place everything inside the www folder and not in a new folder and it should work ;)

Had this problem also...

Re: NEW frontpage.html - request comments

Posted: Monday 16 February 2015 18:05
by Mozart
mbliek wrote:Place everything inside the www folder and not in a new folder and it should work ;)

Had this problem also...
Yes, that solved it!
Thanks

Re: NEW frontpage.html - request comments

Posted: Tuesday 17 February 2015 13:50
by mvveelen
A small improvement (as requested via PM): the lastseen is now parsed into something better to read. It now reads:

17-2-2015 om 06:50 uur

(instead of the 'old' 2015-02-17 06:50:21)

You can play with it and alter it the way you like. Even the date.js can be altered if you like the names of the day / month in your own language. It should work in all browsers.

Added: date.js (extra file, upload to the js folder)
changed: frontpage.html (included the date.js file)
changed: frontpage.js (see the remarks I've added)

I've uploaded the whole package HERE

Example:
Schermafbeelding 2015-02-17 om 13.48.36.png
Schermafbeelding 2015-02-17 om 13.48.36.png (15.23 KiB) Viewed 3338 times

Re: NEW frontpage.html - request comments

Posted: Tuesday 17 February 2015 14:54
by Slayer007
Thnx for looking into that. Great work. :D

Re: NEW frontpage.html - request comments

Posted: Tuesday 17 February 2015 18:01
by Siewert308SW
Many thx mvveelen for the last seen update.
Only changed the time from am/pm to 24hr ;-)
Love the frontpage more and more and it's getting more mature by the day.

Re: NEW frontpage.html - request comments

Posted: Tuesday 17 February 2015 18:21
by Titanium87
Siewert308SW wrote:Wanna thank those who started this.
Had a old Samsung Galaxy Tab 7" eating dusk.
Last night i prepared it to run 24/7 with additional apps to beable to use Voice commands which is my next project to kill some time.
Today i made a wooden frame which only need some paint. ;-)
But here is my test setup...
Sorry if I missed it, but what software do you use?
I have a galaxy tab 7.0, and I cant seem to get the bar over and under away.
Over I have the battery and wifi symbols, and under I have the "back", "home" and "the other right one :p ".
I use chrome in the "home-screen-app version".

I also wanted to say that I LOVE this frontpage !
1 week ago I had NO clue when it comes to coding ULA, Python, HTML etc......
Thank you all for the inspiration and information !!!

Re: NEW frontpage.html - request comments

Posted: Tuesday 17 February 2015 18:25
by Siewert308SW
Titanium87 wrote:
Siewert308SW wrote:Wanna thank those who started this.
Had a old Samsung Galaxy Tab 7" eating dusk.
Last night i prepared it to run 24/7 with additional apps to beable to use Voice commands which is my next project to kill some time.
Today i made a wooden frame which only need some paint. ;-)
But here is my test setup...
Sorry if I missed it, but what software do you use?
I have a galaxy tab 7.0, and I cant seem to get the bar over and under away.
Over I have the battery and wifi symbols, and under I have the "back", "home" and "the other right one :p ".
I use chrome in the "home-screen-app version".

I also wanted to say that I LOVE this frontpage !
1 week ago I had NO clue when it comes to coding ULA, Python, HTML etc......
Thank you all for the inspiration and information !!!
I run CM 11
The browser i use is firefox with a plugin called "full screen"

Re: NEW frontpage.html - request comments

Posted: Tuesday 17 February 2015 21:25
by mvveelen
Siewert308SW wrote:Many thx mvveelen for the last seen update.
Only changed the time from am/pm to 24hr ;-)
Love the frontpage more and more and it's getting more mature by the day.
Yeah, I came home tonight and saw the time I arrived was 09:15, so I changed the time to HH:mm and now it's displaying 21:15 :)