Aller au contenu

mprinfo

Membres confirmés
  • Compteur de contenus

    14 329
  • Inscription

  • Dernière visite

  • Jours gagnés

    240

Tout ce qui a été posté par mprinfo

  1. @Hysis La Domotique est un royaume ou chaque organe veut être le roi Il y a chez le GEEK 3 leaders qui essayent d'imposer leur loi Cette lutte permanente est la plus grosse source d'embrouille Elle oppose depuis toujours la tête, la box et les bugs Que nos box nous excusent si on fait des trucs chelous Si un jour on est des agneaux et qu'le lendemain on est des loups C'est à cause de c'combat qui s'agite dans notre Box La tête, la box, les bugs discutent mais ils sont jamais d'accords Ma box est une vraie éponge, toujours prête à s'ouvrir Mais ma tête est un soldat qui s'laisse rarement attendrir Les bugs sont motivées, ils aimeraient bien faire plantés la box Mais y'en a une qui veut pas, putain ma box me casse les burnes Ma tête a dit a ma box qu'elle s'en battait des bugs Si les bugs avaient fais mal a ma box et qu'ça créait des embrouilles Mais les bugs ont entendu et disent a ma box qu'elle a pas d'coeur Et comme ma box n'a pas bugs, ma tête n'est pas prête d'avoir peur Moi ma box est têtes en l'air et a un coeur d'artichot Et quand ma box perd la tête, les bugs restent bien au chaud Et si ma box bugs, pour ma tête c'est la défaite J'connais cette histoire par coeur, elle n'a ni queue ni tête Moi les bugs j'les crains, autant qu'je suis fou d'eux Vous comprenez maintenant pourquoi chez moi c'est un sacré bordel J'ai pas trouvé la solution, ça fait un moment qu'je fouille Je resterais sous l'contrôle d'ma tête, ma box et de ces bugs
  2. Cela fonctionne sous jeedom ? LolEnvoyé de mon SM-G900F en utilisant Tapatalk
  3. Non un z80 mais @lazer tu etais encore en culotte courte (j'ai pas dis tostring ou sleep) mdr Envoyé de mon SM-G900F en utilisant Tapatalk
  4. Erreur oui elle reste allumé Envoyé de mon SM-G900F en utilisant Tapatalk
  5. http://www.dealabs.com/bons-plans/lg-g4-couleur-or/191549?source=android Envoyé de mon SM-G900F en utilisant Tapatalk
  6. Elle s'allume lorsque l'on appui sur le bouton Envoyé de mon SM-G900F en utilisant Tapatalk
  7. Je te l'avais dis quelques post plus haut Envoyé de mon SM-G900F en utilisant Tapatalk
  8. Bonjour il faut que tu te présente Bienvenue sur le forum Envoyé de mon SM-G900F en utilisant Tapatalk
  9. Mdr Envoyé de mon SM-G900F en utilisant Tapatalk
  10. J'ai testé ca change rien Pour te dire si il fonctionne mystère Envoyé de mon SM-G900F en utilisant Tapatalk
  11. Tu parles de lifedomus. ...?Envoyé de mon SM-G900F en utilisant Tapatalk
  12. Tu as trop instances en cours pour cette scène Il y a une limitation depuis les beta par défaut c'est 1 Envoyé de mon SM-G900F en utilisant Tapatalk
  13. Tu es plus raisonnable que moi mdr Envoyé de mon SM-G900F en utilisant Tapatalk
  14. Ah la led a réveillé ludo Envoyé de mon SM-G900F en utilisant Tapatalk
  15. @Hysis si tu veux le top en bidouilleur il faut voir @pitp2 Comme nilger je préfére Hacker excuse moi pour mon anglais. Enfin bidouille magouille etc... je vais finir GRAND CORPS MALADE
  16. Ca tourne sur quoi FHEM ? Debian 6 ?
  17. Mise a jours version 0.90b : Temperature_v0.9b.vfib Code <-------------- HC2 = Net.FHttp("127.0.0.1",11111) R_Modules = HC2:GET("/api/devices") local AllModules = json.decode(R_Modules) Reponse1 = HC2:GET("/api/sections") local Sections = json.decode(Reponse1) Reponse2 = HC2:GET("/api/rooms") local Room = json.decode(Reponse2) ------------------------------------------------------ local Temperature = {} local SelfId = fibaro:getSelfId() local IdEnd = AllModules[#AllModules].id local Page = tonumber(fibaro:getValue(SelfId, "ui.LabPage.value")) local LabSections = fibaro:getValue(SelfId, "ui.LabSection.value") local LabPieces = fibaro:getValue(SelfId, "ui.LabPieces.value") ------------------------------------------------------------ -- Recuperer nom + section a partir d'une id ------------------------------------------------------------- function recupvaleur(RoomID) for i,v in ipairs(Room) do if Room[i].id == RoomID then local RoomName = Room[i].name local SectionID = Room[i].sectionID for k,w in ipairs(Sections) do if Sections[k].id == SectionID then local a , b = RoomName, Sections[k].name return b , a end end end end end --------------------------------------------------------------------- -- Création de la table des température --------------------------------------------------------------------- for i,v in ipairs(AllModules) do if AllModules[i].visible == true and AllModules[i].type == "com.fibaro.temperatureSensor" then local id = AllModules[i].id local PieceID = AllModules[i].roomID local Nom = AllModules[i].name local SectionName , PieceName = recupvaleur(PieceID) local Valeur = tonumber(AllModules[i].properties.value) if LabSections == "Tous" then table.insert(Temperature, {SectionName, PieceName, Nom, Valeur}) fibaro:debug(SectionName.." - "..PieceName.." - "..Nom.." - "..Valeur.." degrés") else if SectionName == LabSections and LabPieces == "Tous" then table.insert(Temperature, {SectionName, PieceName, Nom, Valeur}) --fibaro:debug(SectionName.." - "..PieceName.." - "..Nom.." - "..Valeur.." degrés") else if SectionName == LabSections and LabPieces == PieceName then table.insert(Temperature, {SectionName, PieceName, Nom, Valeur}) end end end end end table.sort(Temperature, function(a, return a[4]>b[4] end) local t = tonumber(#Temperature) ------------------------------------------------------------------ -- Mise a jour des labels et gestion des pages ------------------------------------------------------------------ if Page == nil or Page <= 1 then Page = 1 else Page = Page - 1 end if t == 0 then fibaro:call(SelfId, "setProperty", "ui.LabMiniMax.value", "Pas de sondes") else fibaro:call(SelfId,"setProperty","ui.LabPage.value", Page) fibaro:call(SelfId, "setProperty", "ui.LabMiniMax.value", "Max : "..Temperature[1][4].." C - Mini : "..Temperature[#Temperature][4].." C - Nbre "..t) end local p = Page*5-5 for i = 1, 5 do fibaro:debug("i = "..i.." Page = "..p.."Table = "..t) if t < i+p then fibaro:call(SelfId, "setProperty", "ui.Label"..i..".value", "") else fibaro:call(SelfId, "setProperty", "ui.Label"..i..".value", Temperature[i+p][2].." - "..Temperature[i+p][3].." : "..Temperature[i+p][4].." C") end end code --------> HC2 = Net.FHttp("127.0.0.1",11111) R_Modules = HC2:GET("/api/devices") local AllModules = json.decode(R_Modules) Reponse1 = HC2:GET("/api/sections") local Sections = json.decode(Reponse1) Reponse2 = HC2:GET("/api/rooms") local Room = json.decode(Reponse2) ------------------------------------------------------ local Temperature = {} local SelfId = fibaro:getSelfId() local IdEnd = AllModules[#AllModules].id local Page = tonumber(fibaro:getValue(SelfId, "ui.LabPage.value")) fibaro:debug("Nombres de modules : " ..#AllModules.." - Sections : "..#Sections) fibaro:debug("Dernier ID : "..IdEnd) local LabSections = fibaro:getValue(SelfId, "ui.LabSection.value") local LabPieces = fibaro:getValue(SelfId, "ui.LabPieces.value") ------------------------------------------------------------- -- Recuperer nom + section a partir d'une id ------------------------------------------------------------- function recupvaleur(RoomID) for i,v in ipairs(Room) do if Room[i].id == RoomID then local RoomName = Room[i].name local SectionID = Room[i].sectionID for k,w in ipairs(Sections) do if Sections[k].id == SectionID then local a , b = RoomName, Sections[k].name return b , a end end end end end --------------------------------------------------------------------- -- Création de la table des température --------------------------------------------------------------------- for i,v in ipairs(AllModules) do if AllModules[i].visible == true and AllModules[i].type == "com.fibaro.temperatureSensor" then local id = AllModules[i].id local PieceID = AllModules[i].roomID local Nom = AllModules[i].name local SectionName , PieceName = recupvaleur(PieceID) local Valeur = tonumber(AllModules[i].properties.value) if LabSections == "Tous" then table.insert(Temperature, {SectionName, PieceName, Nom, Valeur}) --fibaro:debug(SectionName.." - "..PieceName.." - "..Nom.." - "..Valeur.." degrés") else if SectionName == LabSections and LabPieces == "Tous" then table.insert(Temperature, {SectionName, PieceName, Nom, Valeur}) --fibaro:debug(SectionName.." - "..PieceName.." - "..Nom.." - "..Valeur.." degrés") else if SectionName == LabSections and LabPieces == PieceName then table.insert(Temperature, {SectionName, PieceName, Nom, Valeur}) end end end --fibaro:debug(SectionName.." - "..PieceName.." - "..Nom.." - "..Valeur.." degrés") end end table.sort(Temperature, function(a, return a[4]>b[4] end) local t = tonumber(#Temperature) ------------------------------------------------------------------ -- Mise a jour des labels et gestion des pages ------------------------------------------------------------------ if Page == nil then Page = 1 elseif Page >= t/5 then -- ne modifie rien else Page = Page + 1 end if t == 0 then fibaro:call(SelfId, "setProperty", "ui.LabMiniMax.value", "Pas de sondes") else fibaro:call(SelfId,"setProperty","ui.LabPage.value", Page) fibaro:call(SelfId, "setProperty", "ui.LabMiniMax.value", "Max : "..Temperature[1][4].." C - Mini : "..Temperature[#Temperature][4].." C - Nbre "..t) end local p = Page*5-5 for i = 1, 5 do fibaro:debug("i = "..i.." j = "..p.."Table = "..t) if t < i+p then fibaro:call(SelfId, "setProperty", "ui.Label"..i..".value", "") else fibaro:call(SelfId, "setProperty", "ui.Label"..i..".value", Temperature[i+p][2].." - "..Temperature[i+p][3].." : "..Temperature[i+p][4].." C") end end code -Piece HC2 = Net.FHttp("127.0.0.1",11111) Reponse1 = HC2:GET("/api/sections") local Sections = json.decode(Reponse1) table.insert(Sections, {name = "Tous"}) Reponse2 = HC2:GET("/api/rooms") local Room = json.decode(Reponse2) table.insert(Room, {name = "Tous"}) local SelfId = fibaro:getSelfId() local LabSections = fibaro:getValue(SelfId, "ui.LabSection.value") -- Recuperation de l'id de la section if LabSections ~= "Tous" then for i,v in ipairs(Sections) do if LabSections == Sections[i].name then IDSections = Sections[i].id fibaro:debug(IDSections) break end end else IDSections = "Tous" end fibaro:debug("id Section: "..IDSections) -- creation de la table des pieces dans la section local NomRoom = {"Tous"} if IDSections ~= "Tous" then for i,v in ipairs(Room) do if Room[i].sectionID == IDSections then table.insert(NomRoom, Room[i].name) --fibaro:debug(Room[i].name) end end else for i,v in ipairs(Room) do table.insert(NomRoom, Room[i].name) --fibaro:debug(Room[i].name) end end -------------------------------------------------------------- local LabPieces = fibaro:getValue(SelfId, "ui.LabPieces.value") fibaro:call(SelfId, "setProperty", "ui.LabPieces.value", "Tous") for i = 1, #(NomRoom) do fibaro:debug(LabPieces.." "..i.." "..NomRoom[i]) if LabPieces == NomRoom[i] and i > 1 then LabPieces = NomRoom[i -1] break end end fibaro:debug("piece "..LabPieces) fibaro:call(SelfId,"setProperty","ui.LabPage.value", "1") fibaro:call(SelfId, "setProperty", "ui.LabPieces.value", LabPieces) fibaro:call(SelfId, "pressButton", "10") code Piece+ HC2 = Net.FHttp("127.0.0.1",11111) Reponse1 = HC2:GET("/api/sections") local Sections = json.decode(Reponse1) table.insert(Sections, {name = "Tous"}) Reponse2 = HC2:GET("/api/rooms") local Room = json.decode(Reponse2) table.insert(Room, {name = "Tous"}) local SelfId = fibaro:getSelfId() local LabSections = fibaro:getValue(SelfId, "ui.LabSection.value") -- Recuperation de l'id de la section if LabSections ~= "Tous" then for i,v in ipairs(Sections) do if LabSections == Sections[i].name then IDSections = Sections[i].id fibaro:debug(IDSections) break end end else IDSections = "Tous" end fibaro:debug("id Section: "..IDSections) -- creation de la table des pieces dans la section local NomRoom = {"Tous"} if IDSections ~= "Tous" then for i,v in ipairs(Room) do if Room[i].sectionID == IDSections then table.insert(NomRoom, Room[i].name) --fibaro:debug(Room[i].name) end end else for i,v in ipairs(Room) do table.insert(NomRoom, Room[i].name) --fibaro:debug(Room[i].name) end end -------------------------------------------------------------- local LabPieces = fibaro:getValue(SelfId, "ui.LabPieces.value") fibaro:call(SelfId, "setProperty", "ui.LabPieces.value", "Tous") for i = 1, #(NomRoom) do fibaro:debug(LabPieces.." "..i.." "..NomRoom[i]) if LabPieces == NomRoom[i] and i < #(NomRoom) then LabPieces = NomRoom[i +1] break end end fibaro:debug("piece "..LabPieces) fibaro:call(SelfId,"setProperty","ui.LabPage.value", "1") fibaro:call(SelfId, "setProperty", "ui.LabPieces.value", LabPieces) fibaro:call(SelfId, "pressButton", "10") Code - Sect HC2 = Net.FHttp("127.0.0.1",11111) Reponse1 = HC2:GET("/api/sections") local Sections = json.decode(Reponse1) table.insert(Sections, {name = "Tous"}) local SelfId = fibaro:getSelfId() local LabSections = fibaro:getValue(SelfId, "ui.LabSection.value") fibaro:call(SelfId, "setProperty", "ui.LabSection.value", "Tous") for i,v in ipairs(Sections) do if LabSections == Sections[i].name and i > 1 then --or Sections[i].name == "Tous" then LabSections = Sections[i -1].name break end end if LabSections == "" then LabSections = "Tous" end fibaro:debug("nom :"..LabSections) fibaro:call(SelfId,"setProperty","ui.LabPage.value", "1") fibaro:call(SelfId, "setProperty", "ui.LabSection.value", LabSections) fibaro:call(SelfId, "setProperty", "ui.LabPieces.value", "Tous") fibaro:call(SelfId, "pressButton", "10") code Sect + HC2 = Net.FHttp("127.0.0.1",11111) Reponse1 = HC2:GET("/api/sections") local Sections = json.decode(Reponse1) table.insert(Sections, {name = "Tous"}) local SelfId = fibaro:getSelfId() local LabSections = fibaro:getValue(SelfId, "ui.LabSection.value") fibaro:call(SelfId, "setProperty", "ui.LabSection.value", "Tous") for i,v in ipairs(Sections) do local t = #Sections fibaro:debug("table = "..t) if LabSections == Sections[i].name and i <= t -1 then LabSections = Sections[i +1].name break end end if LabSections == "" then LabSections = "Tous" end fibaro:debug("nom :"..LabSections) fibaro:call(SelfId,"setProperty","ui.LabPage.value", "1") fibaro:call(SelfId, "setProperty", "ui.LabSection.value", LabSections) fibaro:call(SelfId, "setProperty", "ui.LabPieces.value", "Tous") fibaro:call(SelfId, "pressButton", "10") Temperature_v0.9b.vfib
  18. Il n'y aura jamais de template pour les Qubino cela ne sert a rien de rêver.
  19. @lazer Pourquoi tant de haine lol on peut rêver. Moi je rêve de recontrer la voisine de bureau de Pitp2 mdr Envoyé de mon SM-G900F en utilisant Tapatalk
  20. Mdr j'étais chez lifedomus chute.. Envoyé de mon SM-G900F en utilisant Tapatalk
  21. On va tout finir chez pitp2 lol Envoyé de mon SM-G900F en utilisant Tapatalk
  22. Pas sur car il y a 6 version qui n'ont pas été publié Apres redémarrage suite àla mise a jour 67% de ram libre avant j'étais a 50% Envoyé de mon SM-G900F en utilisant Tapatalk
  23. Merci did je vais y jeter un oeil Envoyé de mon SM-G900F en utilisant Tapatalk
  24. @did je connais pas cette box Envoyé de mon SM-G900F en utilisant Tapatalk
  25. les sauvegardes fonctionnent très bien sur cette version Merci LEXAR
×
×
  • Créer...