Hi Roel -

Thanks for the tips. To wire up the ina219 I followed the excellent tutorial you linked me to, and more or less did it exactly like the first image on this post. (The image without the digital display. The "load" in the diagram is my charge controller, which powers the pi via its USB port. )

I had some trouble figuring out how to transfer voltage and current data from the python code that reads the ina219 to the shell script that calls it. I ended up calling the function with the requested type of data as an argument (i.e. voltage, current, etc.)

Probably not the most efficient, but it works. When I have time to figure out how to log the voltage / current data, I should get a better sense of how much the pi (and charge controller) is using.


On Mon, 17 Jun 2019 at 23:07, Roel Roscam Abbing <roel@roelroscamabbing.nl> wrote:
Hi Amos,

thanks for sharing that! I would be interested in having some more
details on your ina219 set up. Would you mind sharing some connection
diagarams and photos?

As you are still looking into data optimization I can recommend also
having a look at this implementation by Gauthier Roussilhe:



On 6/17/19 6:02 PM, Amos Blanton wrote:
> I thought I'd share my solar powered website as it stands, along with
> the offer of any help I can give should anyone run into problems I might
> be able to help with.
> http://solar.amosamos.net/
> (https://gitlab.com/Lightnin/amosamos.net)
> * It uses an ina219 to measure the state of the battery (Thanks Roel!)
> * I'm experimenting with changing the background image depending on the
> weather. I'm intrigued by the idea of physically situated servers tied
> to their place in space.
> I have yet to tackle the data optimization or server customization and
> caching, and logging the power usage to look at trends / see if I can
> cope with a Danish winter (unlikely at this point). And I am proxying to
> my site on nearlyfreespeech.net <http://nearlyfreespeech.net> when the
> pi is down. I'm rather attached to uptime at the moment as I am looking
> for new opportunities in the realm of playful learning and sustainability.
> Thanks for to you all for making this list / club, and for your
> contributions to solar.lowtechmagazine.com
> <http://solar.lowtechmagazine.com> and associated documentation - which
> I found to be really inspiring. 
> Best,
> Amos
> --
> http://amosamos.net
> _______________________________________________
> HBSC mailing list -- hbsc@we.lurk.org
> To unsubscribe send an email to hbsc-leave@we.lurk.org
HBSC mailing list -- hbsc@we.lurk.org
To unsubscribe send an email to hbsc-leave@we.lurk.org