Hello Alan,
I have now got my emon-pi fetching data from the Solis-4G inverter (using FTDI USB-RS485-WE-1800-BT RS485-USB adatper) and forwarding the data to the Emonhub running on the emonpi using the socket interfacer functions.
The emonhub then forwards it to my main installation of emoncms.
The program has been written as a one-shot python script that is repeatedly called from a node-red flow conifugred to call it every 5 seconds, (after lots of research, I found that python does not seem to have a timer function that will run every 5 seconds, it only has functions that will delay 5 seconds after other code has been called! which is then dependent on execution time of the code).
The advantages of using the socket interfacer to the emonhub rather than just putting it straight into the emoncms are:
- emonhub will buffer these messages so if the emoncms server is down the data will then be sent once the emoncms recovers
- the data is also published to MQTT and so can be used in node-red flows.
- the data can also be published to the secondary emoncms servers or emoncms.org configured in the emonhub configuration
I have uploaded the python file and instructions here:
I hope this helps in getting your interface to work.
Ian