create new draft post (UPS Raspberry pi)

main
Dominic Reich 1 year ago
parent 0b20d9be47
commit 30303f8afb
Signed by: dominic
GPG Key ID: BC9D6AE1A3BE169A

@ -0,0 +1,62 @@
+++
title = 'UPS Plus on the Raspberry Pi 3'
summary = '''I recently bought a UPS head for my Raspberry Pi 3 that
makes use of my akkus of the type 18650.'''
date = '2023-11-25T06:46:12+01:00'
#lastmod = ''
categories = [ 'amateur-radio' ]
tags = []
# showBreadcrumbs = true
# showDate = false
# showReadingTime = false
# showWordCount = false
# showPagination = false
# feed_exclude = true
# site_exclude = true
draft = true
+++
in home dir
```console
$ python3 -m venv .
$ curl -LsO https://raw.githubusercontent.com/geeekpi/upsplus/main/install.sh
$ bash install.sh
```
if errors occur, install by hand
edit crontab to use the python version in your bin folder
```crontab
* * * * * /home/dr/bin/python3 /home/dr/bin/upsPlus.py > /tmp/upsPlus.log
* * * * * /home/dr/bin/python3 /home/dr/bin/upsPlus_iot.py > /tmp/upsPlus_iot.log
```
get information
```console
$ python3 bin/upsPlus.py
------------------------------------------------------------
------Current information of the detected Raspberry Pi------
------------------------------------------------------------
Raspberry Pi Supply Voltage: 5.028 V
Raspberry Pi Current Current Consumption: 571.068 mA
Raspberry Pi Current Power Consumption: 2570.227 mW
------------------------------------------------------------
-------------------Batteries information-------------------
------------------------------------------------------------
Voltage of Batteries: 4.208 V
Battery Current (Charging) Rate: 30.000 mA
Current Battery Power Supplement: 263.415 mW
Successfully set the protection voltage to: 3700 mV
------------------------------------------------------------
Currently charging via Type C Port.
```
The raspi works when power cable get pulled out.
Loading…
Cancel
Save