Skip to content

Commit

Permalink
Node-red video link
Browse files Browse the repository at this point in the history
  • Loading branch information
tjohn327 committed Jun 9, 2020
1 parent efa0984 commit 0368136
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ Note:

#### Enable I2C and install smbus

Update the system:

```shell
sudo apt update && sudo apt upgrade -y
```

To enable I2C:
Open a terminal and run the command

Expand Down Expand Up @@ -155,6 +161,8 @@ Your Power Pi is now ready.

![Dashboard](Assests/dashboard_R3.PNG "UPS Monitoring Dashboard")

If you are new to Node-Red, please checkout their Essentials [video](https://www.youtube.com/watch?v=ksGeUD26Mw0&list=PLyNBB9VCLmo1hyO-4fIZ08gqFcXBkHy-6) series.

Open the Node-Red link in a browser. The link is usually:

http://[IP of Raspberry Pi]:1880/
Expand Down
4 changes: 2 additions & 2 deletions src/ups.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

logging.basicConfig(level=logging.INFO)

USE_1WIRE = False
GPIO4_AVAILABLE = True
ENABLE_UDP = True
UDP_PORT = 40001
serverAddressPort = ("127.0.0.1", UDP_PORT)
Expand Down Expand Up @@ -57,7 +57,7 @@ def main():
if ppi.initialize():
sys.exit(1)

if not USE_1WIRE:
if GPIO4_AVAILABLE:
try:
GPIO.setmode(GPIO.BCM)
GPIO.setup(4, GPIO.IN, pull_up_down=GPIO.PUD_UP)
Expand Down

0 comments on commit 0368136

Please sign in to comment.