Aller au contenu

mburget

Membres confirmés
  • Compteur de contenus

    6
  • Inscription

  • Dernière visite

Réputation sur la communauté

0 Neutral

À propos de mburget

  • Rang
    Nouveau

Profile Information

  • Sexe :
    Homme
  • Ville :
    Munich
  • Box
    Home Center 2
  1. HC2 & HCL - 4.140 - STABLE - 14/09/2017

    Salut a tous, j'ai des problèmes au niveau des CentralSceneEvent avec cette version. J'utilisais ce type de trigger en lua avec des FGS-223 sans problème jusque la. Mais depuis ma mise a jour les trigger ne sont plus fiables et ne marchent que dans environ 50% des cas. Quelqu'un qui utilise aussi cette fonctionalité ? voici le code que j'utilise: local trigger = fibaro:getSourceTrigger() local curDateStr = tostring(os.date("%y/%m/%d: ")); fibaro:debug(curDateStr..'trigger: '..trigger["type"]) if (trigger["type"] == "event") then local pressSource = fibaro:getSourceTrigger()["event"]["data"] if (tostring(pressSource["keyAttribute"]) == "Pressed") then fibaro:debug(curDateStr..'Sx 1 Mal drücken') elseif (tostring(pressSource["keyAttribute"]) == "Pressed2") then fibaro:debug(curDateStr..'Sx 2 Mal drücken') elseif (tostring(pressSource["keyAttribute"]) == "Pressed3") then fibaro:debug(curDateStr..'Sx 3 Mal drücken') elseif (tostring(pressSource["keyAttribute"]) == "HeldDown") then fibaro:debug(curDateStr..'Sx lange drücken') elseif (tostring(pressSource["keyAttribute"]) == "Released") then fibaro:debug(curDateStr..'Sx loslassen nach langem drücken') end
  2. Salut, chez moi (V4.070) le Raindelay doit etre un nombre et non un string pour que cela fonctionne. Il y a également un autre port pour ne pas avoir a s'autentifier: voici ma solution: HC2 = Net.FHttp("127.0.0.1", 11111); r,s,e = HC2:GET("/api/panels/drenchers"); jsonTable = json.decode® -- change table in Lua for 0 hours delay jsonTable.rainDelay = 5 -- send back json = json.encode(jsonTable); r,s,e = HC2:PUT("/api/panels/drenchers", json) if tonumber(e) == 0 then fibaro:debug("Raindelay aktualisiert."); else fibaro:debug("Aktualisierung vom Raindelay fehlerhaft!!!"); end

Footer title

This content can be configured within your theme settings in your ACP. You can add any HTML including images, paragraphs and lists.

Footer title

This is an example of a list.

Footer title

This content can be configured within your theme settings in your ACP. You can add any HTML including images, paragraphs and lists.

Footer title

This content can be configured within your theme settings in your ACP. You can add any HTML including images, paragraphs and lists.

×
/* Navigation */ function ipsfocusNavigation() { var navwidth = 0; var morewidth = $('.ipsNavBar_primary .focus-nav-more').outerWidth(true); $('.ipsNavBar_primary > ul > li:not(.focus-nav-more)').each(function() { navwidth += $(this).outerWidth( true ) + 2; }); var availablespace = $('.ipsNavBar_primary').outerWidth(true) - morewidth; if (availablespace > 0 && navwidth > availablespace) { var lastItem = $('.ipsNavBar_primary > ul > li:not(.focus-nav-more)').last(); lastItem.attr('data-width', lastItem.outerWidth(true)); lastItem.prependTo($('.ipsNavBar_primary .focus-nav-more > ul')); ipsfocusNavigation(); } else { var firstMoreElement = $('.ipsNavBar_primary li.focus-nav-more li').first(); if (navwidth + firstMoreElement.data('width') < availablespace) { firstMoreElement.insertBefore($('.ipsNavBar_primary .focus-nav-more')); } } if ($('.focus-nav-more li').length > 0) { $('.focus-nav-more').removeClass('focus-nav-hidden'); } else { $('.focus-nav-more').addClass('focus-nav-hidden'); } } $(window).on('load',function(){ $(".ipsNavBar_primary").removeClass("focus-nav-loading"); ipsfocusNavigation(); }); $(window).on('resize',function(){ ipsfocusNavigation(); }); // Make hover navigation work with touch devices // http://osvaldas.info/drop-down-navigation-responsive-and-touch-friendly ;(function(e,t,n,r){e.fn.doubleTapToGo=function(r){if(!("ontouchstart"in t)&&!navigator.msMaxTouchPoints&&!navigator.userAgent.toLowerCase().match(/windows phone os 7/i))return false;this.each(function(){var t=false;e(this).on("click",function(n){var r=e(this);if(r[0]!=t[0]){n.preventDefault();t=r}});e(n).on("click touchstart MSPointerDown",function(n){var r=true,i=e(n.target).parents();for(var s=0;s ul > li:has(ul)').doubleTapToGo(); var browserResponsiveWidth = 980; var defaultBrowserWidth = $(window).width(); var headerHeight = $("#header").height(); var headerWrap = $(".headerWrap"); var headerBackgrounds = $(".headerBackgrounds"); var headerBlur = $(".headerBlur"); var blurEnd = 110; var headerEffects = function(){ var amountScrolled = $(window).scrollTop(); // Make navigation fixed if( amountScrolled >= headerHeight ){ headerWrap.addClass("fixedBlur"); } else { headerWrap.removeClass("fixedBlur"); } // Blur header if( (amountScrolled <= blurEnd) ){ headerWrap.removeClass("blurred"); } else { headerWrap.addClass("blurred"); } // Parallax effect var translateHeader = amountScrolled / 2; if( amountScrolled <= headerHeight ){ headerBackgrounds.css( "margin-top", translateHeader + "px" ); } else { headerBackgrounds.css( "margin-top", (headerHeight / 2) + "px" ); } } if( $('body').hasClass('wDesktop') ){ $(window).scroll(function(){ headerEffects(); }); }; });