I have started collecting data from my solarpanels, and I would like to draw up these data with Cacti. I place the information in a sqlite database, and can call out the current watt produced by the solarcells with this little script.
Code: Select all
#!/bin/bash
solcelle=sudo sqlite3 db.sqlite "select pac from inverter order by timestamp DESC limit 1;"
echo $solcelle
Code: Select all
boyd@server:~/eversolar-monitor$ ./cacti.sh
1200
Code: Select all
09/28/2013 09:20:01 PM - CMDPHP: Poller[0] Host[0] DS[48] WARNING: Result from CMD not valid. Partial Result: U
I really hope you can help me out! Let me know if you need more information.