« Panneaux Solaires » : différence entre les versions

De wiki_pcwiki2
Aller à la navigationAller à la recherche
Aucun résumé des modifications
Aucun résumé des modifications
Ligne 20 : Ligne 20 :
  '''Production L3 - Consommation L3 - Injection vers EDF L3'''
  '''Production L3 - Consommation L3 - Injection vers EDF L3'''
  ''NB: Pour le moment, les productions L2 & L3 n'existent pas (attente des 16 panneaux)''
  ''NB: Pour le moment, les productions L2 & L3 n'existent pas (attente des 16 panneaux)''
<nowiki>
 
  mysql -u root --password=fr...ce  << EoF
  mysql -u root --password=fr...ce  << EoF
USE pcNergie;
USE pcNergie;
CREATE TABLE WATTS  
CREATE TABLE WATTS  
         (
         (
         strUtcTimeSTamp TIMESTAMP PRIMARY KEY,
         strUtcTimeSTamp TIMESTAMP PRIMARY KEY,
Ligne 37 : Ligne 37 :
         UNIQUE KEY(strUtcTimeStamp)
         UNIQUE KEY(strUtcTimeStamp)
         ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
         ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
quit
quit
EoF
EoF
</nowiki>

Version du 24 mai 2023 à 08:49

KEYWORDS: PANNEAUX SOLAIRES

Travaux: http://pcwiki.srv18.pcstreet.org/index.php?title=Solaire::travaux_pour_Phase_I_Solaire_avec_des_panneaux_%C3%A0_micro_onduleur
Installation des panneaux: http://pcwiki.srv18.pcstreet.org/index.php?title=Panneaux_solaires_@_Bois_Dery
Électricité souterraine: http://pcwiki.srv18.pcstreet.org/index.php?title=%C3%89lectricit%C3%A9_souterraine_dans_le_parc
Calculs d’ensoleillement: http://pcwiki.srv18.pcstreet.org/index.php?title=Solaire::Calcul_d%27ensoleillement
Solaire: récapitulation: http://pcwiki.srv18.pcstreet.org/index.php?title=Solaire::r%C3%A9capitulation
Compteur EM340 Carlo Lavazzi: http://pcwiki.srv18.pcstreet.org/index.php?title=Compteur_Triphas%C3%A9::RS485_to_USB
RS 485: http://pcwiki.srv18.pcstreet.org/index.php?title=Unix::RS_485

Le 24/05/2023:
J'ai réussi le dialogue avec le compteur avec une clé USB/RS 485 pure (sans ModBus).
Pour commencer avec l'outil mbpoll, puis en C++ avec la librairie libmodbus
(cf nbk110:/var/tmp/enCours/MODBUS/C++/libmodbus-test-003/makefile)
J'attaquerai la version RS485/ETH plus tard.
Je compte alimenter une base de données avec les infos suivantes:
TimeStamp (en UTC)
Production L1 - Consommation L1 - Injection vers EDF L1
Production L2 - Consommation L2 - Injection vers EDF L2
Production L3 - Consommation L3 - Injection vers EDF L3
NB: Pour le moment, les productions L2 & L3 n'existent pas (attente des 16 panneaux)
mysql -u root --password=fr...ce  << EoF
USE pcNergie;
CREATE TABLE WATTS 
       (
       strUtcTimeSTamp TIMESTAMP PRIMARY KEY,
       intL1_Production        int,
       intL1_Consommation      int,
       intL1_Injection         int,
       intL2_Production        int,
       intL2_Consommation      int,
       intL2_Injection         int,
       intL3_Production        int,
       intL3_Consommation      int,
       intL3_Injection         int,
       UNIQUE KEY(strUtcTimeStamp)
       ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
quit
EoF