Esperyd?s Raspberry PI project

daromer

Moderator
Staff member
Joined
Oct 8, 2016
Messages
5,399
Raspberry PI Visualization and controller project

This iso is just a collection of good to have tools, to do automatization and visual graphs bundled into a package that will run on a Raspberry PI.
I have put together an ISO image with what i would consider a collection of tools that i think will do my day 2 day work easier working with my DIY solar system. It does not come bundled with fancy scripts that automatically takes all data from your equipment and draws up graphs. I do add some scripts that will start your work including some example dashboards and flows.
Softwarepreinstalled
  • Grafana
  • InfluxDb
  • MySql
  • Graphite-api
  • Node Red
  • Mosquito MQTT
  • Apache (LAMP)
  • VNC server
  • Webmin
What do i need?
  • Raspberry PI 2 or 3
  • 8gb SD card (or bigger)
  • Screen/Mouse or some way to get hold of its network configuration. (It runs DHCP on wired interface)
--------------
More information can be found here:
http://diytechandrepairs.nu/raspberry-solar/

Instructional video can be found here:

Download link of the current ISO: check my link above.

Feel free to ask questions below!
 

Korishan

Moderator
Staff member
Joined
Jan 7, 2017
Messages
6,330
Hey, how come when I'm on your web page I can't scroll with my mouse? It's only on your site I'm having issues. ????
 

daromer

Moderator
Staff member
Joined
Oct 8, 2016
Messages
5,399
Korishan: Hmm no idea? What web-browser? Version?

There is no special plugin on it that should block that but javascript is javascript...
 

Korishan

Moderator
Staff member
Joined
Jan 7, 2017
Messages
6,330
I use latest chrome version (which is now 64bit). oddly, its only on your site I have issues and none other :p I guess my mouse doesn't like your site
 

daromer

Moderator
Staff member
Joined
Oct 8, 2016
Messages
5,399
hehe. Sounds very strange indeed. Need to look into that. Some strange wordpress crap :)
 
  • Like
Reactions: wim

wim

Well-known member
Joined
Apr 6, 2017
Messages
560
Hi,

Tested itand like it... nice work! just what i need,finally a usefull use for my Raspberry. Thanks!
Only one smallproblem, i do not get the min/max temperature on the Batrium dashboard.
 

daromer

Moderator
Staff member
Joined
Oct 8, 2016
Messages
5,399
Wim: Thanks! Its not added in that version. There is ongoing work go sort and make sure _all_ parameters are sent over. Will update here as soon as its done and then you can download that new version to run.



-----

Lets build a universal serial port adapter for your Raspberry pi
Check video out for detailed instructions!


List to buy stuff: (Ebay links)
Pin headers:https://goo.gl/TKv3QN
Silicone wires:https://goo.gl/mhLPGp
MAX3232 TTL converter board:https://goo.gl/ziUsU4

The mini version of the adapter
[img=300x193]http://diytechandrepairs.nu/wp-content/uploads/2017/06/mini-cable-diagram-300x193.png[/img]
The slightly larger version
image_zrunnu.jpg
Raspberry PI pinout
[img=277x300]http://diytechandrepairs.nu/wp-content/uploads/2017/06/rasp-pin-277x300.png[/img]
 
Joined
Mar 5, 2017
Messages
105
Daniel, is it possible to share the scripts in a separated form, specially the pcm60.js?
I already have a raspberry pi with influx and grafana and node red and would like to try to connect it to the PCM60x without needing to get the iso, burn it on a new flash SD card.
And do you know if this script will work when connected with a USB FTDI / FT232RL converter to the PCM60x?
Thanks for your help and great work.
 

daromer

Moderator
Staff member
Joined
Oct 8, 2016
Messages
5,399
The script is just a copy from another member here on the forum: http://secondlifestorage.com/t-pip4048-raspberry-pi-influxdb-grafana

i have though just modified it to get it working with USB as well. I dont have this script available outside the iso right now but will do that when I upload nexte version.
Im working on a generic tool for the MPP series that will handle the PIP series including the PCM and the MPI series. Will though take some time before thats is available.

I can put them up later on when i get my gitlab working again...
 

daromer

Moderator
Staff member
Joined
Oct 8, 2016
Messages
5,399
Quick update
 

daromer

Moderator
Staff member
Joined
Oct 8, 2016
Messages
5,399

Michel Daggelinckx

New member
Joined
Jul 4, 2017
Messages
6
nice job.

To keep scripts running node has a tool called "forever" you can install using npm.

I'm building a system with CNBOU helios inverters and will also use an AC meter with rs485.
When the build is finished (will take a few years cos of low budget) i'll try to figure out how to get them working with the pi.
 

daromer

Moderator
Staff member
Joined
Oct 8, 2016
Messages
5,399
Cool. yes forever is needed for background and stuff. Im running mine in screen right now just to make sure i know whats going on.
 

ShaneE

New member
Joined
Oct 8, 2016
Messages
5
Hey Mate, I am keen to get this running so I can view my stats live however I am having issues getting the pipusb.js scripts running.

I have loaded up the ISO and got it all working, but when I try to run pipusb.js I get this message:

pi@grafpi /energy-logger/MPP $ sudo node pipusb.js
module.js:471
throw err;
^

Error: Cannot find module 'express'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/energy-logger/MPP/pipusb.js:3:15)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)

I am using the v6 version of your ISO, I am going to try the v5 version to see if that works but it is downloading painfully slow at the moment.
 

daromer

Moderator
Staff member
Joined
Oct 8, 2016
Messages
5,399
The older version wont help hmm.

Can you do
Code:
ls node_modules | grep express

In the same folder as you did above?
 

ShaneE

New member
Joined
Oct 8, 2016
Messages
5
daromer said:
The older version wont help hmm.

Can you do
Code:
ls node_modules | grep express

In the same folder as you did above?

I got this result:

Code:
pi@grafpi /energy-logger/MPP $ ls node_modules | grep express
ls: cannot access node_modules: No such file or directory
 

daromer

Moderator
Staff member
Joined
Oct 8, 2016
Messages
5,399
Oki. Then the issue is the permissions to that folder i guess. Do:


Code:
ls -la

And there should be a node_modules folder in there.
If not thats weird. im running same version here.

If you can, pm me on messenger instead. You find me under daniel rmer on the facebook group for instance.
 
Joined
Mar 5, 2017
Messages
105
Daniel,
I'm curious where this batrium_reader.exe comes from?
Is it made by Batrium guys, or did you do it yourself?
I'm wondering if it is possible to get access to the source code, since I'de like to see what I can change and tweak to my needs.

Also, if somebody has a good and easy way of starting mono .exeautomatically at raspbian boot, would appreciate.

Thanks.
 

daromer

Moderator
Staff member
Joined
Oct 8, 2016
Messages
5,399
I made the batrium and no its not Open source by request by batrium. I am though working on a more generic version.

So hoppfully that will help and if you have certain request mer me know.
 
Top