
Colors and layout based on Toon. But definitely work in progress
Moderator: leecollings
So far, no succes here. But I will keep trying to get it to work.G3rard wrote:Does it work if you use the frontpage.js file from the version I have shared in this topic?Skorpion wrote: I use Hue color, LivingColors and LivingWhites. I double checked the code, and as far as I can see, it doesn't differ from yours. There probably must be a faulty piece of code in my files though, because my RPi cpu usage goes sky high when I enable the dimmer function for one or multiple lamps.
G3rard wrote:You can add some lines of code in frontpage.html to give you some small arrows which you can use to swipe on a desktop.jossie67 wrote:Probably a stupid question, but can I swip to the 'next' page , to see cell 20 ect, on a desktop with chrome.
After
<div id="cnt" class="v-wrap">
<div class="v-box">
of page 1 in frontpage.html add the following:
And afterCode: Select all
<!-- show arrow to scroll on desktop --> <div id="right-arrow" style="font-size: 20px; position: absolute; right: 23%; top: 50%; z-index: 1000;" onclick="javascript:window.mySwipe.next();"> <a href="#">></a> </div>
<div id="cnt" class="v-wrap">
<div class="v-box">
of page 2 add the following code
The position will probably be dependent on the size of your frontpage, but this code is working for me.Code: Select all
<!-- show arrow to scroll on desktop --> <div id="left-arrow" style="font-size: 20px; position: absolute; left: 23%; top: 50%; z-index: 1000;" onclick="javascript:window.mySwipe.prev();"> <a href="#"><</a> </div>
Thanx, I already looked at that website. There is where I found the url.ThinkPad wrote:Maybe try a different URL, enough options here: http://www.ispyconnect.com/man.aspx?n=foscam (CTRL-F 'FI8094').
I would try the last one (http://IPADDRESS/snapshot.cgi?)
Looks very nice pvm! Could you please share your code?pvm wrote:I'm working on a dashboard in that style, but currently really customized to my setup
Colors and layout based on Toon. But definitely work in progress
I have added the Somfy switches to the Frontpage. Use the following steps:Gerwin1967 wrote:G3rard wrote:I am using the following in frontpage.html for my camera. It also depends on your camera brand.Gerwin1967 wrote:This is a great topic and makes live easier to switch and check status on a tablet on the wall.![]()
I ran into some question marks on how to get some thing arranged and I have already been scouting the forum to find the answer in which I was unsuccesfull till now.
I now turn to you guys for help.
See the screencapture of the what I have up till now and I'm looking to have a live camera feed in the left over cell which is cell3 and all the somfy's and the one Blind (rolluik) provide a clear status but I cannot get them to action when I push the button.
Can some one help me with the instruction to implement the life feed which ultimate I would like to have taking a picture when someone pushes the doorbell button and save this picture on my Raspberry Pi. Also which code do I need to implement or change to get the buttons to action the blinds to open or closed.
It's not showing the feed in Chrome on the PC, but is does show the feed in Safari on the iPad.Code: Select all
<div id="cell3"><img src="http://username:password@ip-address/videostream.cgi" onClick="lightbox_open('camera', 25400);" width="200px" class='camera' /></div>
I also have two somfy's, but not yet configured them. Will do that and try to get it working in the frontpage. Will let you know if I get it working.
Thx a million this finally worked, got the camera now up and running.
Yes I would really appriciate if you would find out something on the switches .
Domoticz doesn't really needs it (we can see because you tell it is working) but it definately is a better approach code-wise seen...if <virtualswitch>=on AND somfy_switch = Off
set <your_somfy_switch> = on
else if <virtualswitch>=off AND somfy_switch = On
set <your_somfy_switch> = off
True, I am also always using that in other cases, but in this case it caused the Somfy to not close the blinds (or in some cases it stopped after 1 second).ThinkPad wrote:I always include an extra check in my events (red marked part)
Domoticz doesn't really needs it (we can see because you tell it is working) but it definately is a better approach code-wise seen...if <virtualswitch>=on AND somfy_switch = Off
set <your_somfy_switch> = on
else if <virtualswitch>=off AND somfy_switch = On
set <your_somfy_switch> = off
G3rard wrote:True, I am also always using that in other cases, but in this case it caused the Somfy to not close the blinds (or in some cases it stopped after 1 second).ThinkPad wrote:I always include an extra check in my events (red marked part)
Domoticz doesn't really needs it (we can see because you tell it is working) but it definately is a better approach code-wise seen...if <virtualswitch>=on AND somfy_switch = Off
set <your_somfy_switch> = on
else if <virtualswitch>=off AND somfy_switch = On
set <your_somfy_switch> = off
When I removed the red part all went okay.
Or add afterjossie67 wrote:G3rard wrote:You can add some lines of code in frontpage.html to give you some small arrows which you can use to swipe on a desktop.jossie67 wrote:Probably a stupid question, but can I swip to the 'next' page , to see cell 20 ect, on a desktop with chrome.
After
<div id="cnt" class="v-wrap">
<div class="v-box">
of page 1 in frontpage.html add the following:
And afterCode: Select all
<!-- show arrow to scroll on desktop --> <div id="right-arrow" style="font-size: 20px; position: absolute; right: 23%; top: 50%; z-index: 1000;" onclick="javascript:window.mySwipe.next();"> <a href="#">></a> </div>
<div id="cnt" class="v-wrap">
<div class="v-box">
of page 2 add the following code
The position will probably be dependent on the size of your frontpage, but this code is working for me.Code: Select all
<!-- show arrow to scroll on desktop --> <div id="left-arrow" style="font-size: 20px; position: absolute; left: 23%; top: 50%; z-index: 1000;" onclick="javascript:window.mySwipe.prev();"> <a href="#"><</a> </div>
G3rard Thanks,
I will this.
Code: Select all
$("body").keydown(function(e) {
if(e.keyCode == 37) { // left
window.mySwipe.prev();
} else if(e.keyCode == 39) { // right
window.mySwipe.next();
}
});
Yep, see my previous post, I have copied the text below. That works for my Somfy blind and sunshade.jossie67 wrote:Has any one put his/her sunshade in this frontpage?
I have added the Somfy switches to the Frontpage. Use the following steps:
- Create a virtual on/off switch
- Make the following blockly
if <virtualswitch>=on
set <your_somfy_switch> = on
else if <virtualswitch>=off
set <your_somfy_switch> = off
You have to use on and off for the Somfy switch, close and open is not working.
Add the virtual switch to the frontpage and you can close and open the blinds![]()
I have made some updates in the meanwhile. These updates are mostly regarding the layout (e.g. to nicely fit the screen of the Nexus 7 I have recently bought).bernard wrote:@G3rard : Do you have a new(er) version of Frontpage ? Perhaps an idea to post it @ GitHub ?
You can ceep the floorplan on '0'. That will allow you to use all the switches etc. without adding them to a separate floorplan (at least if you haven't put the switch to the hidden floorplan).bernard wrote:i changed the floorplan in the settings and added an existing switch. Now i see NAN .. did i forget something ?
That's even better, avoids having arrows on the frontpage.WebStar wrote:
Or add after
$(document).ready(function(){
this code
Then you can use the right and left arrows on the keyboard to navigateCode: Select all
$("body").keydown(function(e) { if(e.keyCode == 37) { // left window.mySwipe.prev(); } else if(e.keyCode == 39) { // right window.mySwipe.next(); } });
Users browsing this forum: No registered users and 1 guest