[LUA+Bash] Calcul de DJU

Vous avez créé un script LUA dont vous êtes fier, un .sh génial, un programme Python hors du commun, un Tuto, c'est ici que vous pouvez les partager.
calouis
Messages : 109
Inscription : 08 nov. 2015, 10:34
Localisation : 62

Re: Calcul de DJU

Message par calouis »

Merci Papoo
J'ai corrigé
_ Raspberry Pi3 Stretch + Domoticz V4.11214
_ dzVents Version: 2.4.28
_ Python 3.5.3
_ usbZwave
_ RFX433XL USB Version: Pro XL1/1035
_ GW Xiaomi
_ station meteo Oregon & Netatmo
_ LMS
_ Yeelight
_ Tradfri
_ Zigate plugin 4.11.012 + Version : 031d
papoo
Messages : 2029
Inscription : 10 janv. 2016, 11:29
Localisation : Limoges (87)
Contact :

Re: Calcul de DJU

Message par papoo »

c'est moi qui te remercie
domoticz beta/RaspBerry PI3 stretch
https://pon.fr github
calouis
Messages : 109
Inscription : 08 nov. 2015, 10:34
Localisation : 62

Re: Calcul de DJU

Message par calouis »

Bonsoir Papoo

Un petit souci quand même :

Code : Tout sélectionner

2019-01-24 18:02:00.155 Status: dzVents: Info: DJU MéthodeCOSTIC v2.3: ------ Start internal script: dju_methode_COSTIC:, trigger: at 18:02
2019-01-24 18:02:00.237 Status: dzVents: Debug: DJU MéthodeCOSTIC v2.3: Processing device-adapter for Module extérieur: Temperature+humidity device adapter
2019-01-24 18:02:00.237 Status: dzVents: Debug: DJU MéthodeCOSTIC v2.3: --- --- --- Température Ext : 4.2 °C
2019-01-24 18:02:00.238 Status: dzVents: Debug: DJU MéthodeCOSTIC v2.3: --- --- --- température maximale du jour : 5.1999998092651 °C
2019-01-24 18:02:00.238 Status: dzVents: Debug: DJU MéthodeCOSTIC v2.3: --- --- --- température minimale du jour : 0.20000000298023 °C
2019-01-24 18:02:00.238 Status: dzVents: Debug: DJU MéthodeCOSTIC v2.3: --- --- --- température moyenne du jour : 2.6999999061227 °C
2019-01-24 18:02:00.239 Status: dzVents: Debug: DJU MéthodeCOSTIC v2.3: --- --- --- Le Seuil de 18°C est supérieur à la température maximum atteinte lors des dernières 24 heures (5.1999998092651°C)
2019-01-24 18:02:00.239 Status: dzVents: Debug: DJU MéthodeCOSTIC v2.3: --- --- --- djc : 15
2019-01-24 18:02:00.239 Status: dzVents: Debug: DJU MéthodeCOSTIC v2.3: Processing device-adapter for DJU méthode COSTIC: Custom sensor device adapter
2019-01-24 18:02:00.239 Status: dzVents: Debug: DJU MéthodeCOSTIC v2.3: --- --- --- compteur avant mise à jour DJU méthode COSTIC : nil DJU
2019-01-24 18:02:00.240 Status: dzVents: Debug: DJU MéthodeCOSTIC v2.3: --- --- --- mise à jour compteur DJU méthode COSTIC : 15 DJU
2019-01-24 18:02:00.240 Status: dzVents: Error (2.4.9): DJU MéthodeCOSTIC v2.3: Method updateCounter is not available for device "DJU méthode COSTIC" (deviceType=General, deviceSubType=Custom Sensor). If you believe this is not correct, please report.
2019-01-24 18:02:00.253 Status: dzVents: Info: DJU MéthodeCOSTIC v2.3: ------ Finished dju_methode_COSTIC
"DJU méthode COSTIC" n'est pas un custom sensor? avec nom de l'axe: degré ?
Merci d'avance.
_ Raspberry Pi3 Stretch + Domoticz V4.11214
_ dzVents Version: 2.4.28
_ Python 3.5.3
_ usbZwave
_ RFX433XL USB Version: Pro XL1/1035
_ GW Xiaomi
_ station meteo Oregon & Netatmo
_ LMS
_ Yeelight
_ Tradfri
_ Zigate plugin 4.11.012 + Version : 031d
papoo
Messages : 2029
Inscription : 10 janv. 2016, 11:29
Localisation : Limoges (87)
Contact :

Re: Calcul de DJU

Message par papoo »

Non c’est un compteur
Mais je peux adapter si tu préfères, et ca permettrait la customisation de l’icône
Je regarde ça dès que possible
domoticz beta/RaspBerry PI3 stretch
https://pon.fr github
calouis
Messages : 109
Inscription : 08 nov. 2015, 10:34
Localisation : 62

Re: Calcul de DJU

Message par calouis »

Merci Papoo
Quoiqu'il en soit, ce n'est pas urgent....
_ Raspberry Pi3 Stretch + Domoticz V4.11214
_ dzVents Version: 2.4.28
_ Python 3.5.3
_ usbZwave
_ RFX433XL USB Version: Pro XL1/1035
_ GW Xiaomi
_ station meteo Oregon & Netatmo
_ LMS
_ Yeelight
_ Tradfri
_ Zigate plugin 4.11.012 + Version : 031d
papoo
Messages : 2029
Inscription : 10 janv. 2016, 11:29
Localisation : Limoges (87)
Contact :

Re: Calcul de DJU

Message par papoo »

script mis à jour dans sa version 2.4
domoticz beta/RaspBerry PI3 stretch
https://pon.fr github
calouis
Messages : 109
Inscription : 08 nov. 2015, 10:34
Localisation : 62

Re: Calcul de DJU

Message par calouis »

Bonsoir Papoo
C'est ton bon avec un custom sensor en corrigeant :

Code : Tout sélectionner

elseif (domoticz.devices('@pap_oo').deviceSubType) == 'Custom Sensor' then 
                domoticz.devices(deviceTwitter).updateCustomSensor(cpt_djc_index)
par

Code : Tout sélectionner

elseif (domoticz.devices(cpt_djc).deviceSubType) == 'Custom Sensor' then 
                domoticz.devices(cpt_djc).updateCustomSensor(cpt_djc_index)
Remerciement pour ta disponibilité.
_ Raspberry Pi3 Stretch + Domoticz V4.11214
_ dzVents Version: 2.4.28
_ Python 3.5.3
_ usbZwave
_ RFX433XL USB Version: Pro XL1/1035
_ GW Xiaomi
_ station meteo Oregon & Netatmo
_ LMS
_ Yeelight
_ Tradfri
_ Zigate plugin 4.11.012 + Version : 031d
calouis
Messages : 109
Inscription : 08 nov. 2015, 10:34
Localisation : 62

Re: Calcul de DJU

Message par calouis »

Je lisais sur wikipedia que la période de chauffe est de 232 jours, allant du 1er octobre au 20 mai...
Ne pourrait-on pas l'intégrer directement dans le script? au cas où...
_ Raspberry Pi3 Stretch + Domoticz V4.11214
_ dzVents Version: 2.4.28
_ Python 3.5.3
_ usbZwave
_ RFX433XL USB Version: Pro XL1/1035
_ GW Xiaomi
_ station meteo Oregon & Netatmo
_ LMS
_ Yeelight
_ Tradfri
_ Zigate plugin 4.11.012 + Version : 031d
papoo
Messages : 2029
Inscription : 10 janv. 2016, 11:29
Localisation : Limoges (87)
Contact :

Re: Calcul de DJU

Message par papoo »

calouis a écrit : 27 janv. 2019, 19:07 Bonsoir Papoo
C'est ton bon avec un custom sensor en corrigeant :
Merci
calouis a écrit : 27 janv. 2019, 19:12 Je lisais sur wikipedia que la période de chauffe est de 232 jours, allant du 1er octobre au 20 mai...
Ne pourrait-on pas l'intégrer directement dans le script? au cas où...
je viens de mettre à jour (v2.5) mais cela ne fera qu’arrêter le calcul deux fois par jour, l'historisation des données étant à chaque changement
domoticz beta/RaspBerry PI3 stretch
https://pon.fr github
calouis
Messages : 109
Inscription : 08 nov. 2015, 10:34
Localisation : 62

Re: Calcul de DJU

Message par calouis »

OK j'ai mis à jour les apports....Par ailleurs, je t'ai de nouveau sollicité dans ce forum pour détecter présence au travers routeur xiaomi ; je me suis cassé la tête en vain cette a-midi. Une histoire de token...
Bonne soirée
_ Raspberry Pi3 Stretch + Domoticz V4.11214
_ dzVents Version: 2.4.28
_ Python 3.5.3
_ usbZwave
_ RFX433XL USB Version: Pro XL1/1035
_ GW Xiaomi
_ station meteo Oregon & Netatmo
_ LMS
_ Yeelight
_ Tradfri
_ Zigate plugin 4.11.012 + Version : 031d
Répondre