Aller au contenu

Storm Shadow

Membres confirmés
  • Compteur de contenus

    3
  • Inscription

  • Dernière visite

Tout ce qui a été posté par Storm Shadow

  1. Storm Shadow

    Quick app Panasonic cloud

    hello here is my first app Google translated to french Panasonic comfort Cloud app Ce qu'il fait: Contrôlez vos appareils de pompe à chaleur compatibles Panasonic Comfort Cloud. tout comme l'application Android ou Apple, mais à partir de votre centre d'accueil 3 installation: Téléchargez l'application rapide sur le hc3. Accédez au panneau des variables et modifiez l'e-mail et le mot de passe. Attendez quelques secondes puis appuyez sur le bouton. Paramètres variables : pour régler la température de démarrage dans les modes de climatisation. ATTENTION!! Ne le définissez pas sur un nombre plus grand ou plus petit que celui dont Panasonic est capable. Ne réglez donc pas la température de démarrage du refroidissement sur 5 degrés lorsque le minimum est de 15 ou chauffer à 65 degrés lorsque le maximum est de 30, vous obtenez le point. Des trucs plus amusants : Puisqu'il y a un thermomètre dans l'unité intérieure et extérieure, j'ai ajouté deux variables globales que vous pouvez utiliser dans d'autres applications GlobalVariable('inside heatpump temperature') GlobalVariable('Outside heatpump') Ajout d'une fonction pour récupérer de l'énergie et plus encore. il peut être consulté via les boutons de débogage. situé dans Oninit et utilisez la fonction QuickApp:getHis() Le plan est de créer une application qui affiche uniquement les données énergétiques et plus encore. il est crucial que l'application récupère le jeton avant l'exécution de l'application. j'ai internet très rapide il se pourrait donc qu'avec une connexion Internet lente, les minuteries doivent être ajustées. situé à Oninit important qu'ils s'exécutent dans cet ordre ! fibaro.setTimeout(1500, function() QuickApp:turn1()() end) --token first fibaro.setTimeout(3000, function() QuickApp:turn2() end) --when we got token we can run the rest. fibaro.setTimeout(604800000, function() QuickApp:onInit() end) --token restart every month Full Code on my Github page: Code Last words: Damn this was hard to make when never haven writing Lua before. Enjoy! Panasonic comfort cloud.fqa
  2. Storm Shadow

    Quick App - Monitoring Serveur NAS Synology

    Sorry i do not speak french, i use ggogle translate for reading all the question and anwers For dsm 7.0 you need the did also did did + sid to login for login in succefully use did and sid on dsm 7.0 get did +sid local url = "http://"..self:getVariable("Ip Address")..":"..self:getVariable("Port").."/webapi/auth.cgi?api=SYNO.API.Auth&version=3&method=login&account="..self:getVariable("Username").."&passwd="..self:getVariable("Password").."&format=cookie'" [17.07.2021] [00:23:02] [DEBUG] [QUICKAPP69]: {"data":{"did":"4bQC0a6TjavIr8tltUIRFk4gDWam50OrEBRwFe9A09sONyfvMcbRhO0Qn1Va_CxFjBh7PI9tK8w1p557RuoJ9w","sid":"uyYAWDjcpI1qSycfU-3rt7xf48hspucxB37_5Ut84OwByNHK-03Pnx3IQpccqg40hTKwc937VKfQpkIT8zbY8Y"},"success":true} example for shutdown synlogy with did and sid "http://"..self:getVariable("Ip Address")..":"..self:getVariable("Port").."/webapi//entry.cgi?api=SYNO.Core.System&version=1&method=shutdown&_did="..tostring (b).."&_sid="..tostring(c) and if you need a wake up lan in the app instead of using separate app function QuickApp:synOn() -- --00:32:32:32:0a:0f example mac1 = string.char(0x00,0x32,0x32,0x32,0x0a,0x0f) --put mac adress here for i=1,4 do mac1 = mac1..mac1 end mac2 = string.char(0xff,0xff,0xff,0xff,0xff,0xff)..string.char(0xff,0xff,0xff,0xff,0xff,0xff)..string.char(0xff,0xff,0xff,0xff,0xff,0xff)..string.char(0xff,0xff,0xff,0xff,0xff,0xff)..string.char(0xff,0xff,0xff,0xff,0xff,0xff)..string.char(0xff,0xff,0xff,0xff,0xff,0xff)..mac1---Magic packet needs broadcast MAC in front to wake up self.udp = net.UDPSocket({ broadcast = true, timeout = 3000 }) self.udp:sendTo(mac2, self:getVariable("Broadcast adres"), 9, { success = function() self:trace("OK send magic package") -- self:receiveData() -- self.udp:close() if success == success then self:updateView("label2", "text", "Wake on Lan package send") end -- self:receiveData() end, error = function(error) print('Error:', error) if error == error then self:updateView("label2", "text", "Error") end end }) -- self.udp:close() end see full code on my github repo https://github.com/techbliss/Fiabaro-Synology-switch
  3. Storm Shadow

    Hello from Denmark

    Hello i am from denmark. I hope it is okay to ask in english here and get answer in french that i can google translate, since i do not speak french.
×