cabellop5 / RaspiInverter

Php app for connect Axpert MKS Inverter with Raspberry Pi
0 stars 1 forks source link

help #1

Open Josuan opened 5 years ago

Josuan commented 5 years ago

how can i run it im new

cabellop5 commented 5 years ago

What do you need exactly? You need clone repository, copy app/config.dist.php to config.php and put the correct parameters for your environment.

I have one crontab to app/console file each minute to store the data.

Later you must have grafana installed with one dashboard for view the data.

When I have time I will try to put a better explanation in the readme.

If you have more doubts please ask, I can help you

Josuan commented 5 years ago

thanks for your reply! i have the repo cloned, but didnt copy app/config.dist.php, will try now, i did edit the config.dist.php file with the correct rpi 2 port, also have grafana and influxdb installed and running, the file to run is App.php with sudo php App.php? thanks in advance!

cabellop5 commented 5 years ago

you also need make composer install in root project folder. for run the app you have 2 modes: app/console.php -> this file is for crontab, extract the data from inverter and insert to influx db -> php app/console.php web/index.php -> this file maybe you can put under apache or nginx, but also found from console commnad, this return the current data from inverter in json -> php web/index.php

cabellop5 commented 5 years ago

The dashboard used in grafana is 7811

Josuan commented 5 years ago

i did this in RaspiInverter folder: curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer followed by: composer require influxdb/influxdb-php

cabellop5 commented 5 years ago

you don't need composer require, only composer install

Josuan commented 5 years ago

ok thanks for your reply! i will try and report back

Josuan commented 5 years ago

when i run the program it just sit there dont give any output, i have copy app/config.dist.php to config.php and edited with correct parameters, also added the crontab file and imported the 7811 dashboard but cant get the data, how can i test from terminal if i am getting data from the inverter?, so i can troubleshoot if its is the rs485 to usb converter

cabellop5 commented 5 years ago

you can run the same command that you put in crontab manually. This scripts are prepared for get data from USB, I don't know if can get the data from rs485

Josuan commented 5 years ago

ok, the inverter im trying is a Axpert-VM-III can you suggest another adapter or way to read the data of it, thank in advance