iot-hack | Hack event with Red Hat products and IoT devices
kandi X-RAY | iot-hack Summary
kandi X-RAY | iot-hack Summary
Welcome to Red Hat IoT hack session. This repository was created for hack session in mind. For the people to get familiar with container based application development and delivery in the automated way. We have setup a lab for such purpose, aim is to provide skeleton for cloud native development environment, but in home automation nerdy way. The environment consists of resources the hybrid way. There is OpenShift somewhere in the cloud, which hosts variety of tooling and technologies. We also have a remote physical embedded RHEL server acting as IoT gateway. The RHEL box has couple of radios connected to it, which may be used to connect to physical peripherals common to home automation.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of iot-hack
iot-hack Key Features
iot-hack Examples and Code Snippets
Community Discussions
Trending Discussions on iot-hack
QUESTION
I'm doing a Internet of Thing(IoT) project, and I follow a sample from below sources. But I fail at last step when I push to start this app. https://www.ibm.com/blogs/bluemix/2015/04/tutorial-using-a-raspberry-pi-python-iot-twilio-bluemix/
1. I am using 'cf push to start the app', it works until crash. 2. I am using 'cf logs python-iot-hackathon2 --recent' to see logs, and there are two errors
ex. There are two error, if you can not see clearly. 1. Err: You must give at least one requirement to install (see "pip help install")
2. Err: Traceback (most recent call last): Err: File "server.py". line12, in Err: twilioClient = TwilioRestClient(twilio Account, twilio Token) ERR: File "/home/vcap/deps/0/python/lib/python2.7/site-packages/twilio/base/obsolete.py", line 20. in new_func Err: .format(func.name) Err: twilio.base.obsolete.obsoleteException: TwilioRestClient has been removed from this version of the library. Please refer to current documentation for guidance.
...ANSWER
Answered 2017-Nov-15 at 07:28For: 1. Err: You must give at least one requirement to install (see "pip help install")
You need to run this on the Raspberry PI:
sudo pip install twilio
If you don't have pip installed then run:
sudo apt-get install python3-pip
and then again: sudo pip install twilio
for 2. Err: Traceback (most recent call last): Err: File "server.py". line12
Basically the twilio client definition needs to be similar to:
from twilio.rest import Client
client = Client(account_sid, auth_token)
so from the trace, line 12 in server.py should be similar to
from twilio.rest import Client //this should be also changed
twilioClient = Client(account_sid, auth_token) //this is line 12
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install iot-hack
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page