Monitor Fronius Primo 5

Hi,

I’m trying to monitor a fronius primo 5 with emoncms, I have confiured emonhub as is described here:

but after change ocnfig and restart always logfile is showing:

2018-12-07 19:17:04,171 INFO     MainThread Exiting hub...
2018-12-07 19:17:04,398 INFO     MainThread Exit completed
2018-12-07 19:17:07,702 INFO     MainThread EmonHub emonHub emon-pi variant v2.1.1
2018-12-07 19:17:07,703 INFO     MainThread Opening hub...
2018-12-07 19:17:07,705 INFO     MainThread Creating EmonModbusTcpInterfacer 'ModbusTCP' 
2018-12-07 19:17:07,706 ERROR    MainThread Unable to create 'ModbusTCP' interfacer: global name 'pymodbus_found' is not defined
2018-12-07 19:17:07,707 INFO     MainThread Creating EmonHubJeeInterfacer 'RFM2Pi' 
2018-12-07 19:17:09,713 WARNING  MainThread Device communication error - check settings
2018-12-07 19:17:09,714 INFO     MainThread Setting RFM2Pi frequency: 433 (4b)
2018-12-07 19:17:10,717 INFO     MainThread Setting RFM2Pi group: 210 (210g)
2018-12-07 19:17:11,720 INFO     MainThread Setting RFM2Pi quiet: 0 (0q)
2018-12-07 19:17:12,723 INFO     MainThread Setting RFM2Pi baseid: 5 (5i)
2018-12-07 19:17:13,726 INFO     MainThread Setting RFM2Pi calibration: 230V (1p)
2018-12-07 19:17:14,731 INFO     MainThread Creating EmonHubMqttInterfacer 'MQTT' 
2018-12-07 19:17:14,736 INFO     MainThread Setting MQTT nodevar_format_enable: 1
2018-12-07 19:17:14,738 INFO     MainThread Setting MQTT node_format_enable: 1
2018-12-07 19:17:14,739 INFO     MainThread Setting MQTT nodevar_format_basetopic: emon/
2018-12-07 19:17:14,741 INFO     MainThread Creating EmonHubEmoncmsHTTPInterfacer 'emoncmsorg' 
2018-12-07 19:17:14,743 INFO     MainThread Setting emoncmsorg url: https://emoncms.org
2018-12-07 19:17:14,744 INFO     MainThread Setting emoncmsorg senddata: 1
2018-12-07 19:17:14,745 WARNING  MainThread Setting emoncmsorg apikey: obscured
2018-12-07 19:17:14,746 INFO     MainThread Setting emoncmsorg sendstatus: 1
2018-12-07 19:27:22,635 INFO     MainThread Exiting hub...
2018-12-07 19:27:22,719 INFO     MainThread Exit completed
2018-12-07 19:27:26,002 INFO     MainThread EmonHub emonHub emon-pi variant v2.1.1
2018-12-07 19:27:26,003 INFO     MainThread Opening hub...
2018-12-07 19:27:26,004 INFO     MainThread Creating EmonModbusTcpInterfacer 'ModbusTCP' 
2018-12-07 19:27:26,006 ERROR    MainThread Unable to create 'ModbusTCP' interfacer: global name 'pymodbus_found' is not defined
2018-12-07 19:27:26,007 INFO     MainThread Creating EmonHubJeeInterfacer 'RFM2Pi' 
2018-12-07 19:27:28,012 WARNING  MainThread Device communication error - check settings
2018-12-07 19:27:28,014 INFO     MainThread Setting RFM2Pi frequency: 433 (4b)
2018-12-07 19:27:29,017 INFO     MainThread Setting RFM2Pi group: 210 (210g)
2018-12-07 19:27:30,020 INFO     MainThread Setting RFM2Pi quiet: 0 (0q)
2018-12-07 19:27:31,022 INFO     MainThread Setting RFM2Pi baseid: 5 (5i)
2018-12-07 19:27:32,025 INFO     MainThread Setting RFM2Pi calibration: 230V (1p)
2018-12-07 19:27:33,030 INFO     MainThread Creating EmonHubMqttInterfacer 'MQTT' 
2018-12-07 19:27:33,036 INFO     MainThread Setting MQTT nodevar_format_enable: 1
2018-12-07 19:27:33,037 INFO     MainThread Setting MQTT node_format_enable: 1
2018-12-07 19:27:33,038 INFO     MainThread Setting MQTT nodevar_format_basetopic: emon/
2018-12-07 19:27:33,040 INFO     MainThread Creating EmonHubEmoncmsHTTPInterfacer 'emoncmsorg' 
2018-12-07 19:27:33,043 INFO     MainThread Setting emoncmsorg url: https://emoncms.org
2018-12-07 19:27:33,044 INFO     MainThread Setting emoncmsorg senddata: 1
2018-12-07 19:27:33,045 WARNING  MainThread Setting emoncmsorg apikey: obscured
2018-12-07 19:27:33,046 INFO     MainThread Setting emoncmsorg sendstatus: 1


2018-12-07 19:27:26,006 ERROR    MainThread Unable to create 'ModbusTCP' interfacer: 
global name 'pymodbus_found' is not defined

I have found some messages related but changing some code is not solved

It can work fronius and emconcms?

Thanks

It seems this PR might have a fix for this issue. I’m currently testing it. Please follow this github PR for a possible fix:

Thanks for you information.
Any scheduled date when will be avqilable to stable branch?

Thanks

El dv., 7 de des. 2018, 22:56, Glyn Hudson [email protected] va escriure:

@klxout : you can try with my fork…some times ago, I had encountered similar problems and I’ve worked on a fix…

to install my version

sudo service emonhub stop
mv /home/pi/emonhub /home/pi/emonhub_old
git clone GitHub - alexandrecuer/emonhub: Python service linking and decoding input to MQTT & Emoncms && emonhub/install
sudo service emonhub start

As I don’t have any fronius devices, i don’t use the fronius adapter, just the emonTCPmodbus one…tell me if you have problems…

Alex

Fix is now merged into master (emon-pi branch). Please let us know if the fix works for you.

The updated version is V2.1.2

Big thanks to @alexandrecuer :+1:

Hi,

Thanks for your ifnormation.

Sorry but I’m newbie, I have latest emoncms 9.9.5, how can I update to this version that has fixed this issue?

Thanks

Missatge de Glyn Hudson [email protected] del dia dl., 10 de des. 2018 a les 18:31:

Hi,

Good job!

Downloaded latest sd card with latest updates and now error is different:

2018-12-14 13:57:01,734 INFO MainThread EmonHub emonHub emon-pi variant v2.1.2

2018-12-14 13:57:01,735 INFO MainThread Opening hub…

2018-12-14 13:57:01,736 INFO MainThread Logging level set to DEBUG

2018-12-14 13:57:01,736 INFO MainThread Creating EmonModbusTcpInterfacer ‘ModbusTCP’

2018-12-14 13:57:01,739 ERROR MainThread PYMODBUS NOT PRESENT BUT NEEDED !!

2018-12-14 13:57:01,740 DEBUG MainThread Setting ModbusTCP register: [‘40118’, ‘40092’, ‘40102’, ‘502’, ‘40285’, ‘40305’, ‘40284’, ‘40304’, ‘40086’, ‘40088’, ‘40090’]

2018-12-14 13:57:01,740 DEBUG MainThread Setting ModbusTCP nodeId: 12

2018-12-14 13:57:01,741 DEBUG MainThread Setting ModbusTCP pubchannels: [‘ToEmonCMS’]

2018-12-14 13:57:01,741 DEBUG MainThread Setting ModbusTCP interval: 10

2018-12-14 13:57:01,743 INFO MainThread Creating EmonHubMqttInterfacer ‘MQTT’

2018-12-14 13:57:01,747 DEBUG MainThread Setting MQTT subchannels: [‘ToEmonCMS’]

2018-12-14 13:57:01,748 DEBUG MainThread Setting MQTT pubchannels: [‘ToRFM12’]

2018-12-14 13:57:01,748 INFO MainThread Setting MQTT nodevar_format_enable: 1

2018-12-14 13:57:01,749 INFO MainThread Setting MQTT node_format_enable: 1

2018-12-14 13:57:01,750 INFO MainThread Setting MQTT nodevar_format_basetopic: emon/

2018-12-14 13:57:01,751 INFO MainThread Creating EmonHubEmoncmsHTTPInterfacer ‘emoncmsorg’

2018-12-14 13:57:01,753 DEBUG MainThread Setting emoncmsorg subchannels: [‘ToEmonCMS’]

2018-12-14 13:57:01,754 DEBUG MainThread Setting emoncmsorg pubchannels: [‘ToRFM12’]

2018-12-14 13:57:01,754 INFO MainThread Setting emoncmsorg url: https://emoncms.org

2018-12-14 13:57:01,755 INFO MainThread Setting emoncmsorg senddata: 1

2018-12-14 13:57:01,756 WARNING MainThread Setting emoncmsorg apikey: obscured

2018-12-14 13:57:01,756 INFO MainThread Setting emoncmsorg sendstatus: 1

How can I install this

2018-12-14 13:57:01,739 ERROR MainThread PYMODBUS NOT PRESENT BUT NEEDED !!

I’m trying to get values form fronius to monitor fronius inverter, I’m not sure if thsi is possible and what are really the options with fronius and emoncms, anybody can give some information

Thanks

Missatge de klxout [email protected] del dia dv., 14 de des. 2018 a les 13:02:

Hi,

with this:

pip install pymodbus

now seems that in inpus I receive some values!!

Is this correct with this waht can I do? monitor this values with graphs? any other options?

Thanks

Missatge de klxout [email protected] del dia dv., 14 de des. 2018 a les 15:00:

Well if you are receiving inputs now then you should be all set to do the same with these values as you can with any others. So the same applies in terms of creating processes to create / update feeds which can then be used for charts etc.

Just wish I could get some proper values back from my modbus connected SMA inverter. :confused:

I presume you’ve already done it but you need to fill in the emonhub.conf - interfacer section - the registers values you want to read

register = 40118,40092,40102,502,40285,40305,40284,40304,40086,40088,40090

You should now see the inputs in emonCMS and record them into feeds…after that you can create graphs

is it working now ?

Alex

Hi,

Thanks this registers were configured and are reporting results, now my problem is I can’t generte grpahs and I can’t find a clear information how to do this

A second question, I have rotex HPSU and I liek to monitor like is made here http://emoncms.org/ChabrosMaina/ It seems a great tool but I can’t find where and hwo to obtain this values from rotex HPSU 508 8KW, any suggestion?

Thanks

Missatge de Alexandre CUER [email protected] del dia dg., 16 de des. 2018 a les 10:35:

Hello
Ok fine if you can use the modbus interfacer…
for graph purposes, the example you give is a full dashboard…
You can try by the beginnings…should be easier
Once you have data inputs coming in, you can create feeds

or

Then you will be able to visualize the feeds via a graph

Alex

Hi,

Thanks but I have problem when I’m creating feeds I receive this error (attached screenshot)

Missatge de Alexandre CUER [email protected] del dia dj., 20 de des. 2018 a les 8:44:

logs output:

==> emoncms.log <==

2018-12-26 22:10:24.590|WARN|feed_model.php|Feed model: Requested feed does not exist feedid=1

2018-12-26 22:10:24.610|WARN|feed_model.php|Feed model: Requested feed does not exist feedid=12

2018-12-26 22:14:33.693|ERROR|phpmqtt_input.php|ErrorException: Undefined index: time in /var/www/emoncms/Modules/process/process_processlist.php:938

Stack trace:

#0 /var/www/emoncms/Modules/process/process_processlist.php(938): exceptions_error_handler(8, ‘Undefined index…’, ‘/var/www/emoncm…’, 938, Array)

#1 /var/www/emoncms/Modules/process/process_model.php(71): Process_ProcessList->power_to_kwh(‘17’, 1545862473, ‘0’, NULL, Object(Process))

#2 /var/www/emoncms/Modules/process/process_model.php(122): Process->__call(‘power_to_kwh’, Array)

#3 /var/www/emoncms/scripts/phpmqtt_input.php(356): Process->input(1545862473, ‘0’, ‘1:16,4:17’)

#4 [internal function]: message(Object(Mosquitto\Message))

#5 /var/www/emoncms/scripts/phpmqtt_input.php(121): Mosquitto\Client->loop()

#6 {main}

any suggestion?

Thanks

Missatge de klxout [email protected] del dia dc., 26 de des. 2018 a les 23:00:

Hi,

Reflashed image from latest stable and same error, any suggestion?

Thanks

Missatge de klxout [email protected] del dia dc., 26 de des. 2018 a les 23:16:

Hello
It seems to be an emoncms problem, not an emonhub one…which version do use?
Can yu make a screenshot of your inputs screen to be sure the input controller is working fine ?
I had a similar pb after reimporting datas coming from an older version of emonCms and to reinstall a new version of emoncms was a quick solution

Alex

Hi and tanks for your answer

I have rebuild from latest stable image 9.9.5 october 2018

Attached screenshot

I am new, not sure if this is correct, now recieving valies from fronius with modbus

Thanks

El dj., 27 de des. 2018, 19:08, Alexandre CUER [email protected] va escriure:

Is yur feed screen empty ?
If not, try not to create a new feed but to link to an existing feed when parametring yur input…

Hi,

Is not empty, IT seems that with some browser for IE, and on all brwoser after create feed you have to make save and then close and not save, save, then is shoed this error

Missatge de Alexandre CUER [email protected] del dia dj., 27 de des. 2018 a les 22:42:

It seems ok…try to refresh the feed size to check if they are correctly growing or go to the hdd via ssh…yu should find a meta and a dat file for each feed in /home/pi/data/phpfina

If you have feed with size >0 you should be able To visualize them with the graph module

By the way, in emonhub.conf yu should add one to your registers numbers…dont know how the fronius works but on my devices when i want to monitor register x, i give x+1 to emonhub
The interfacer was originally written in this way and i did not change it when i rewrote the thing
So check the fronius doc…