SilverNodashi
Member
- Joined
- Apr 9, 2018
- Messages
- 57
not2bme said:Yeah that video is old. Daromer updated the code with his new solar-sis package and that is probably the old code you're looking at.
This is what you should be getting. I didn't go too far with his version because it didn't fit my needs but here's what it looks like on my pi:
root@grafpi:/energy-logger/solar-sis/example/PIP4084# ls -las
total 28
4 drwxr-xr-x 3 root root 4096 Dec 12 16:01 .
4 drwxr-xr-x 5 root root 4096 Dec 12 02:52 ..
4 -rwxr-xr-x 1 root root 3075 Apr 18 22:12 calls.json
4 drwxr-xr-x 189 root root 4096 Dec 12 16:03 node_modules
4 -rw-r--r-- 1 root root 103 Dec 12 02:52 package.json
4 -rwxr-xr-x 1 root root 1622 Dec 12 02:52 project.js
4 -rwxr-xr-x 1 root root 864 Apr 23 19:31 session.json
root@grafpi:/energy-logger/solar-sis/example/PIP4084# node project.js
[2018-04-29 16:09:58] http localhost Listening on port: 3001
[2018-04-29 16:09:58] info serial:/dev/hidraw0 Open serial port
[2018-04-29 16:09:58] info queue:ADD_INTERVAL query/general_status:QPIGS
[2018-04-29 16:09:58] info queue:ADD_INTERVAL query/device_rated_information:QPIRIT
[2018-04-29 16:10:00] info serial:/dev/hidraw0:RECIVED_RAW Data: (B?? Length: 4
[2018-04-29 16:10:00] info serial:/dev/hidraw0:RECIVED_RAW Data: (123.3 59.9 120.1 60.0 0240 0211 008 225 28.50 004 053 0035 0012 089.3 28.50 00000 00010110 00 00 00342 110?P Length: 112
[2018-04-29 16:10:01] info serial:/dev/hidraw0:RECIVED_RAW Data: (120.0 25.0 120.0 60.0 13.0 3000 2400 24.0 25.5 23.0 28.7 28.6 2 10 050 0 2 3 6 10 0 0 26.0 0 0?? Length: 99
[2018-04-29 16:10:08] info serial:/dev/hidraw0:SEND query/general_status
[2018-04-29 16:10:08] info serial:/dev/hidraw0:SEND_RAW [{"type":"Buffer","data":[81,80,73,71,83,183,169,13]}]
[2018-04-29 16:10:09] info serial:/dev/hidraw0:RECIVED_RAW Data: (123.4 59.9 120.2 60.0 0240 0215 008 226 28.50 003 053 0035 0012 089.3 28.50 00000 00010110 00 00 00342 110?? Length: 115
[2018-04-29 16:10:09] info serial:/dev/hidraw0:RECIVED query/general_status
[2018-04-29 16:10:09] info influx:SEND pip_query_general_status grid_voltage=123.4,grid_frecuency=59.9,ac_output_voltage=120.2,ac_output_frecuency=60,ac_output_power_va=240,ac_output_active_power=215,output_load_percent=8,bus_voltage=226,battery_voltage=28.5,battery_charging_current=3,battery_capacity=53,inverter_heat_sink_temperature=35,pv_input_current_for_battery=12,pv_input_voltage_1=89.3,battery_voltage_from_scc=28.5,battery_discharge_current=0,device_status=00010110,charging_scc=1,charging_ac=1,charging_scc_acc=0
^C
root@grafpi:/energy-logger/solar-sis/example/PIP4084#
thanx, this now got me onto something
I don't know Node.js at all, so I don't really know how to log this info in the DB, but will poke around a bit.
As matter of interest, how do you get stats off your machine now?