https://github.com/brianfoshee/modbus-redis
Reads data from a Morningstar Sunsaver MPPT solar charge controller and saves it to a Redis database
https://github.com/brianfoshee/modbus-redis
modbus mppt raspberry-pi redis
Last synced: 3 months ago
JSON representation
Reads data from a Morningstar Sunsaver MPPT solar charge controller and saves it to a Redis database
- Host: GitHub
- URL: https://github.com/brianfoshee/modbus-redis
- Owner: brianfoshee
- Created: 2013-09-29T02:39:16.000Z (over 12 years ago)
- Default Branch: main
- Last Pushed: 2021-12-13T02:39:17.000Z (over 4 years ago)
- Last Synced: 2023-03-22T15:33:40.535Z (over 3 years ago)
- Topics: modbus, mppt, raspberry-pi, redis
- Language: C
- Homepage:
- Size: 55.7 KB
- Stars: 9
- Watchers: 4
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Reading data from a [Morningstar Sunsaver MPPT] [ssmppt] and storing it in Redis.
Since inception, many improvements have been made to this project. It pulls data every 5 seconds, stores it to Redis, then can send it to a remote server as JSON to be stored and analyzed.
This runs on a Raspberry Pi. Requires [hiredis] [hired] and [libmodbus] [libmod]. Required is a USB to RS232 converter which connects to the [Morningstar PC Meterbus adapter] [meterbus].
Basis of the modbus from [this blog post] [tom-blog].
To setup a Raspberry Pi with Arch Linux see [rpi-arch-setup] [arch-setup]
Work to improve this:
- ~~send to statsd/graphite~~
- Visualize with d3 (realtime and archived)
- Clean up collect.c
- DRY up data accessing and number conversions
[A few (older) images of the setup] [flikr-set]
[tom-blog]: http://westyd1982.wordpress.com/2010/03/26/linux-and-mac-os-x-software-to-read-data-from-the-sunsaver-mppt-using-modbus/
[hired]: https://github.com/redis/hiredis
[libmod]: https://github.com/stephane/libmodbus
[flikr-set]: http://www.flickr.com/photos/bfosh/sets/72157637640405973/
[my-blog]: http://www.gingilipino.com/brian/solar-data-collection.html
[solar-collector]: https://github.com/crakalakin/solar-collector
[arch-setup]: https://github.com/crakalakin/modbus-redis/blob/master/rpi-arch-setup.md
[ssmppt]: http://www.morningstarcorp.com/products/sunsaver-mppt/
[meterbus]: http://www.morningstarcorp.com/products/pc-meterbus-adapter/