fss / solis-inverter

A simple NodeJS application to read Solis PV inverter data using HTTP interface
21 stars 9 forks source link

Refresh Interval not working #8

Closed luisgarcia87 closed 3 years ago

luisgarcia87 commented 3 years ago

Hi! can you tell me if it works for you to set the interval to something else rather than the 30 seconds default? I could not get it to work using the INTERVAL command, also my solis is updating it's values every 60 seconds and not the 30 seconds default option, does someone have any clue of why this is happening?

fss commented 3 years ago

just checked the native node.js call:

`s4@s4-mbp solis-inverter % INTERVAL=60 node index.js

{ interval: 60 }`

luisgarcia87 commented 3 years ago

how would I input the command in order to get... say a refresh every 5 seconds?

fss commented 3 years ago

30 is a minimum, as I checked the HTTP interface tended to be lagging and acting unstable if refreshed too frequent. hence the lower limit.

for fetching the data more often I'd rather suggest using modbus module

luisgarcia87 commented 3 years ago

Ok i get it now thanks for clearing it up.