ma sai che mi è venuta una idea, e credo lo puoi fare anche tu, forse è un po' uno spreco, ma ho appena provato e sembra funzionare.
usi monitor anche per la produzione, ma in modo "finto"
nel senso lasci tutto così com'è per 123solar e lasci tutto così com'è su metern per la produzione (cioè usando pool123s.php)
poi implementi in monitor.conf la configurazione dell'usb su cui usi aurora (io uso sdm120c) e ti crea un file txt che poi non userai, se non per mandare i dati mqtt
io ho appena provato ma si sta spegnendo l'inverter a quest'ora...

sembra però essere partito:
questa è la mia configurazione di meter.conf
presta attenzione solo alla parte produzione (che ripeto NON uso ne in metern ne in 123solar, ma solo per avere mqtt)
nel mio caso la produzione è ttyusb0
se anche tu usi aurora con un dispositivo usb dedicato, secondo me può funzionare
Codice: Seleziona tutto
[General]
Port1Dev = /dev/ttyUSB1
Port1Speed = 9600
Port1NBit = 8
Port1Stop = 2
Port1Par = N
Port2Dev = /dev/ttyUSB0
Port2Speed = 9600
Port2NBit = 8
Port2Stop = 2
Port2Par = N
Delay = 1 ; Delay time between reading the sensors (sec)
Retry = 5 ; Number of retry on modbus
useMQTT = yes ; Indicate if MQTT is used (valid value are yes/no)
MQTThost = 192.168.0.105 ; IP Address o FQDN of MQTT broker
MQTTport = 1883 ; TCP/IP port of MQTT broker
MQTTkeepalive = 60 ; keepalive
MQTTusername = ; username for auth. Leave black for no auth
MQTTpassword = ; password for auth. Leave black for no auth
[Sensor1]
Name = Consumi ; Description
Type = 1 ; Sensor type --> SDM220/SDM230
Port = 1 ; Number of communication port
Address = 1 ; Sensor's modbus address
Delay = 1 ; Delay time (sec)
NumOp = 1 ; Number of correction to do (0 = no correction)
Par1 = 9 ; Number of sensor's value to correct
C1 = 10135157 ; Correction value
Op1 = + ; Operation (+, -, *, /)
ID = 1 ; MeterID
OutputType = 2 ; Output format (1=123solar, 2=meterN, 3=detailed)
OutFile = /dev/shm/metern1.txt ; Full path of output file
MQTTtopic = casa/energia/consumi ; topic where data are published
[Sensor2]
Name = Produzione ; Description
Type = 1 ; Sensor type --> SDM220/SDM230
Port = 2 ; Number of communication port
Address = 1 ; Sensor's modbus address
Delay = 1 ; Delay time (sec)
NumOp = 0 ; Number of correction to do (0 = no correction)
Par1 = 1 ; Number of sensor's value to correct
C1 = 0 ; Correction value
Op1 = + ; Operation (+, -, *, /)
ID = 2 ; MeterID
OutputType = 2 ; Output format (1=123solar, 2=meterN, 3=detailed)
OutFile = /dev/shm/metern_monitor2.txt ; Full path of output file
MQTTtopic = casa/energia/produzione ; topic where data are published