Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Raspberry Pi talk to Infinisolar
#11
(Yesterday, 09:13 AM)daromer Wrote: SiverNodashi: Did you check the Video? Do you have the MPI inverter or the PIP series? Either or you need to configure and set up the gatherer script and configure the port. When thats done and you enabled it to send to Influx you need to start the script.

Under the PIP dashboard you will find all 3 as examples. If you want to know where the data is stored check the configuration files for solar-sis and you can then find the values in Influx database.

Hi,

Thanx for the help. I have to confess, I only watched the Youtube video for about 4 or 5 minutes and stopped since it just showed how to download and install Raspberry Pi Wink But I now watched it further and see where you explain the rest.

I have an MPI 4Kwh and MPI 10Kwh inverter (though I have a PIP4048 as well) and configured the port as hidraw0 (that's what the script picked up). The inverter isn't hooked up to the PV or batteries yet, but I now get a feed from it:

Code:
Apr 26 04:04:20 grafpi solar_mpi[4808]: [2018-04-26 04:04:20] info serial:/dev/hidraw0:SEND query/power_status
Apr 26 04:04:20 grafpi solar_mpi[4808]: [2018-04-26 04:04:20] info serial:/dev/hidraw0:SEND_RAW [{"type":"Buffer","data":[94,80,48,48,51,80,83,13]}]
Apr 26 04:04:20 grafpi solar_mpi[4808]: [2018-04-26 04:04:20] info serial:/dev/hidraw0:RECIVED_RAW Data:
Apr 26 04:04:20 grafpi solar_mpi[4808]: [2018-04-26 04:04:20] info serial:/dev/hidraw0:RECIVED query/power_status
Apr 26 04:04:20 grafpi solar_mpi[4808]: [2018-04-26 04:04:20] info influx:SEND mpi_query_power_status solar_input_power_1=0,solar_input_power_2=0,battery_power=0,ac_input_active_power_r=0,ac_input_active_power_s=0,ac_input_active_power_t=0,ac_input_total_active_power=0,ac_output_active_power_r=0,ac_output_active_power_s=0,ac_output_active_power_t=0,ac_output_total_active_power=0,ac_output_apperent_power_r=10.8,ac_output_apperent_power_s=0,ac_output_apperent_power_t=0,ac_output_total_apperent_power=10.8,ac_output_power_percentage=2,ac_output_connect_status=1,solar_input_1_work_status=0,solar_input_2_work_status=0,battery_power_direction=0,dc_ac_power_direction=0,line_power_direction=1


Since I don't know NodeJS, but rather a bit of PHP and Python, I just need to figure out how to add more data to the Grafana dashboard, like the input Volt, Ampere and Hertz, as well as the input and output volt of the 3 phases on the MPI 10Kwh.

And I need to figure out how to post to emoncms.org and pvoutput.org

P.S. Nice addition of Webmin. I haven't used it in many years and never thought of using it on a Pi, as I'm used to SSH

(Yesterday, 09:13 AM)daromer Wrote: SiverNodashi: Did you check the Video? Do you have the MPI inverter or the PIP series?  Either or you need to configure and set up the gatherer script and configure the port. When thats done and you enabled it to send to Influx you need to start the script. 

Under the PIP dashboard you will find all 3 as examples. If you want to know where the data is stored check the configuration files for solar-sis and you can then find the values in Influx database.

Daromer: Just by the way, some of the scripts in your video are not in the ISO (anymore?)  at https://youtu.be/0AvnXuuc29s?t=12m6s you have some scripts which I don't see right now:

Code:
pi@grafpi /energy-logger $ ll
total 32K
drwxr-xr-x  7 root root 4.0K Dec 12 21:09 .
drwxr-xr-x 24 root root 4.0K Dec 12 09:17 ..
-rw-r--r--  1 root root  885 Jun 15  2017 .gitignore
drwxr-xr-x  2 root root 4.0K Dec 12 18:27 meter
drwxr-xr-x  3 root root 4.0K Dec 12 09:54 mpp
drwxr-xr-x  2 root root 4.0K Dec 12 21:15 scripts
drwxr-xr-x  4 root root 4.0K Dec 12 20:44 solar-sis
drwxr-xr-x  8 root root 4.0K Dec 12 09:11 WatchMonUdpListener

For example, you reference going into the batrium folder, which is not in the same place as on the video. I also couldn't find the batrium_reader.exe so I am not sure how to get the field values into Grafana now?

Code:
pi@grafpi /energy-logger $ cd mpp/
pi@grafpi /energy-logger/mpp $ ls
calls.json  node_modules  package.json  project.js  session.json  test.js

pi@grafpi /energy-logger/WatchMonUdpListener $ sudo find / -name batrium_reader.exe
pi@grafpi /energy-logger/WatchMonUdpListener $ sudo find / -name *batrium_reader.exe
pi@grafpi /energy-logger/WatchMonUdpListener $ sudo find / -name batrium*.exe
pi@grafpi /energy-logger/WatchMonUdpListener $

The batruim service is running, though not logging:

Code:
pi@grafpi /energy-logger/WatchMonUdpListener $ sudo tail -f /var/log/solar_batrium.log
Apr 26 04:29:36 grafpi solar_batrium[7179]: #033[32mLoaded file: Msg_5431_SessionMetrics.js#033[0m
Apr 26 04:29:36 grafpi solar_batrium[7179]: #033[32mLoaded file: Msg_5432_DailySession.js#033[0m
Apr 26 04:29:36 grafpi solar_batrium[7179]: #033[32mLoaded file: Msg_5457_DailySession.js#033[0m
Apr 26 04:29:36 grafpi solar_batrium[7179]: #033[32mLoaded file: Msg_5632_LifetimeMetrics.js#033[0m
Apr 26 04:29:36 grafpi solar_batrium[7179]: #033[32mLoaded file: Msg_5732_SystemDiscovery.js#033[0m
Apr 26 04:29:36 grafpi solar_batrium[7179]: #033[32mLoaded file: Msg_5831_DailySessionHist.js#033[0m
Apr 26 04:29:36 grafpi solar_batrium[7179]: #033[32mLoaded file: Msg_6131_StatusComms.js#033[0m
Apr 26 04:29:36 grafpi solar_batrium[7179]: #033[32mLoaded file: Msg_6831_QuickSessionHist.js#033[0m
Apr 26 04:29:36 grafpi solar_batrium[7179]: #033[32mLoaded file: Msg_7857_HwShuntMetrics.js#033[0m
Apr 26 04:29:36 grafpi solar_batrium[7179]: Batrium logger Server is listening at port18542

and even thought I can see in /var/log/solar_mpi.log that something is logged, it doesn't show on the dashboard either: 

Code:
pi@grafpi /energy-logger/WatchMonUdpListener $ sudo tail -f /var/log/solar_mpi.log
Apr 26 04:33:38 grafpi solar_mpi[7845]: [2018-04-26 04:33:38] info serial:/dev/hidraw0:SEND query/power_status
Apr 26 04:33:38 grafpi solar_mpi[7845]: [2018-04-26 04:33:38] info serial:/dev/hidraw0:SEND_RAW [{"type":"Buffer","data":[94,80,48,48,51,80,83,13]}]
Apr 26 04:33:38 grafpi solar_mpi[7845]: [2018-04-26 04:33:38] info serial:/dev/hidraw0:RECIVED_RAW Data:
Apr 26 04:33:38 grafpi solar_mpi[7845]: [2018-04-26 04:33:38] info serial:/dev/hidraw0:RECIVED query/power_status
Apr 26 04:33:38 grafpi solar_mpi[7845]: [2018-04-26 04:33:38] info influx:SEND mpi_query_power_status solar_input_power_1=0,solar_input_power_2=0,battery_power=0,ac_input_active_power_r=0,ac_input_active_power_s=0,ac_input_active_power_t=0,ac_input_total_active_power=0,ac_output_active_power_r=0,ac_output_active_power_s=0,ac_output_active_power_t=0,ac_output_total_active_power=0,ac_output_apperent_power_r=0,ac_output_apperent_power_s=0,ac_output_apperent_power_t=0,ac_output_total_apperent_power=0,ac_output_power_percentage=0,ac_output_connect_status=0,solar_input_1_work_status=0,solar_input_2_work_status=0,battery_power_direction=0,dc_ac_power_direction=0,line_power_direction=0


the inverter is in the lab right now, so there's no PV or batteries connected yet, but it will be done in the next 6 or so hours.


Attached Files Thumbnail(s)
           
Reply


Who read this thread?
33 User(s) read this thread:
hbpowerwall (04-16-2018, 10:02 AM), acidice333 (04-16-2018, 05:12 AM), brwainer (Yesterday, 02:48 PM), nrm21 (04-19-2018, 05:12 AM), gpn (Today, 12:51 AM), DK100 (Yesterday, 10:14 PM), Crimp Daddy (04-17-2018, 06:02 PM), Redpacket (04-10-2018, 12:16 PM), completelycharged (04-24-2018, 10:12 PM), Johnny Battery (04-13-2018, 09:13 AM), Zvonko000 (04-15-2018, 02:34 PM), solar_18650 (04-15-2018, 09:57 PM), darkdaniel (04-17-2018, 11:52 PM), colibri1 (04-16-2018, 10:29 PM), SiverNodashi (Today, 12:38 PM), jm1 (04-18-2018, 03:03 AM), SecondHandPower (04-15-2018, 09:30 PM), Charly144 (Today, 08:23 AM), daromer (Yesterday, 09:13 AM), mike (04-16-2018, 02:45 AM), Korishan (Yesterday, 10:29 AM), A + A (04-10-2018, 06:14 AM), Frnandu Martiński (Yesterday, 02:15 PM), Mike C (04-17-2018, 03:53 AM), jdeadman (Today, 01:08 PM), wim (Today, 04:59 AM), watts-on (Today, 09:48 AM), Geek (04-16-2018, 03:51 AM), floydR (04-24-2018, 10:12 PM), Swake (04-14-2018, 07:46 AM), not2bme (Today, 04:33 AM), CarelHassink (04-15-2018, 12:15 PM), WynandV (04-20-2018, 05:41 AM)

Forum Jump:


Users browsing this thread: 1 Guest(s)