conservationtechlab / dencam

Polar bear maternal den observation system.
MIT License
5 stars 2 forks source link

Power Data Log from SunSaver MPPT via ModBus #21

Open bkirshh opened 2 years ago

bkirshh commented 2 years ago

Power Data Log

Modbus Values to pull at 60 min intervals to a log file co-located with the video data. This log file could sit in the same directory as all the daily video data folders (/media/pi/external_storage). Each log entry should have the Pi's hardware clock value associated with it as the MPPT charge controller does not have an accurate clock.

Pi Hardware Clock Value SunSaver MPPT Battery Voltage (V)
SunSaver MPPT Array Voltage (V) SunSaver MPPT Load Voltage (V)
SunSaver MPPT Charge Current (A)
SunSaver MPPT Load Current (A)
SunSaver MPPT RTS Temperature (deg C) SunSaver MPPT Ambient Temperature MPPT Temp
SunSaver MPPT Charge State ()
SunSaver MPPT Ah Charge(Daily) (Ah) SunSaver MPPT Ah Load(Daily) (Ah)
SunSaver MPPT Alarm (Daily)

Modbus Values to pull at 12 hour intervals to a log file in ~/dencam. Each log entry should have the Pi's hardware clock value associated with it as the MPPT charge controller does not have an accurate clock.

Pi Hardware Clock Value SunSaver MPPT Battery Voltage (V)
SunSaver MPPT Array Voltage (V) SunSaver MPPT Load Voltage (V)
SunSaver MPPT Charge Current (A)
SunSaver MPPT Load Current (A)
SunSaver MPPT RTS Temperature (deg C) SunSaver MPPT Ambient Temperature MPPT Temp
SunSaver MPPT Charge State ()
SunSaver MPPT Ah Charge(Daily) (Ah) SunSaver MPPT Ah Load(Daily) (Ah)
SunSaver MPPT Alarm (Daily)

bkirshh commented 2 years ago

Hi Elias,

Thanks for the followup and your efforts. I think the items below would be sufficient. I have placed this request in "Add display page for reporting solar charge controller information #17” on the Issues tab if that helps.

BJ

Power Status Screen

I would suggest this page within dencam.py would allow operators to check power related values captured from the MPPT Charge Controller via ModBus. The values below would be helpful within the power status page...

Desired Values to display SunSaver MPPT Battery Voltage (V) SunSaver MPPT Array Voltage (V) SunSaver MPPT Charge Current (A) SunSaver MPPT Load Current (A)

Optional if additional space is available SunSaver MPPT Ah Charge(Daily) (Ah) SunSaver MPPT Ah Load(Daily) (Ah)

On Dec 9, 2021, at 2:39 PM, EliasMartinezJ @.***> wrote:

Hey BJ, i was wondering what information you would like being displayed on the Solar display page.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

EliasMartinezJ commented 2 years ago

Hi BJ, Was just wondering if it would be acceptable to store the hourly MPPT values into one giant csv file rather than having it separated by days

Elias

bkirshh commented 2 years ago

Hi Elias,

One file works for me.

BJ

On Dec 16, 2021, at 1:50 PM, EliasMartinezJ @.**@.>> wrote:

Hi BJ, Was just wondering if it would be acceptable to store the hourly MPPT values into one giant csv file rather than having it separated by days

Elias

— Reply to this email directly, view it on GitHubhttps://github.com/icr-ctl/dencam/issues/21#issuecomment-996220755, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALDC3LH4ARCHXPBALOQSCMLURJNLXANCNFSM5JFQTKGA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.***>

EliasMartinezJ commented 2 years ago

Hi BJ,

You said you were using a cronjob to reboot the dencam each day at 1am, Im updating the readme right now to include the cronjobs we have set up for the SunSaver and was hoping you could send over the comman you're using for that cronjob so i could include it while im at it.

Elias

bkirshh commented 2 years ago

Hi Elias,

Here is how I am doing the reboot and the hardware clock sync commands….

$ sudo nano /etc/crontab

@reboot root hwclock --hctosys --utc 30 root hwclock --hctosys --utc 0 1 * root /sbin/shutdown -r now #

On Jan 5, 2022, at 5:22 PM, EliasMartinezJ @.**@.>> wrote:

Hi BJ,

You said you were using a cronjob to reboot the dencam each day at 1am, Im updating the readme right now to include the cronjobs we have set up for the SunSaver and was hoping you could send over the comman you're using for that cronjob so i could include it while im at it.

Elias

— Reply to this email directly, view it on GitHubhttps://github.com/icr-ctl/dencam/issues/21#issuecomment-1006183032, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALDC3LGR232BT26XLKY47JTUUTOGFANCNFSM5JFQTKGA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.***>