Skip to content

Commit

Permalink
Merge pull request #2 from pimoroni/master
Browse files Browse the repository at this point in the history
Updated from upstream
  • Loading branch information
druck13 committed May 11, 2020
2 parents 7b7bc6b + 3969699 commit dc42bf6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/candle.py
Expand Up @@ -7,7 +7,7 @@
try:
import numpy as np
except ImportError:
exit('This script requires the numpy module\nInstall with: sudo pip install numpy')
exit('This script requires the numpy module\nInstall with: sudo apt install python3-numpy')

import blinkt

Expand Down
2 changes: 1 addition & 1 deletion examples/cpu_load.py
Expand Up @@ -5,7 +5,7 @@
try:
import psutil
except ImportError:
exit('This script requires the psutil module\nInstall with: sudo pip install psutil')
exit('This script requires the psutil module\nInstall with: sudo apt install python3-psutil')

import blinkt

Expand Down
2 changes: 1 addition & 1 deletion examples/mem_load.py
Expand Up @@ -6,7 +6,7 @@
try:
import psutil
except ImportError:
exit('This script requires the psutil module\nInstall with: sudo pip install psutil')
exit('This script requires the psutil module\nInstall with: sudo apt install python3-psutil')

import blinkt

Expand Down
5 changes: 4 additions & 1 deletion examples/mqtt.py
Expand Up @@ -45,7 +45,10 @@ def on_connect(client, userdata, flags, rc):

def on_message(client, userdata, msg):

data = msg.payload.split(',')
data = msg.payload
if type(data) is bytes:
data = data.decode('utf-8')
data = data.split(',')
command = data.pop(0)

if command == 'clr' and len(data) == 0:
Expand Down

0 comments on commit dc42bf6

Please sign in to comment.