[Solved] Device connected, but ‘IBMIoT: Error: Connection refused: Not authorized’ message keeps popping up

It looks like the cause of this could be the mix up of gateways and devices as per my previous comment. From the logs it looks like you have changed the types of the device IDs between gateway and device, and in some cases a device with id b827eb0a0ee8 has connected as a gateway (shown … Read more

[Solved] What is the best way to give a Linux command from one machine to a different machine? [closed]

Solution 1: use SSH pre-shared key to login via SSH without a password. See this link for how to do it. After you have configured it properly, you are able to run a command on your server: ssh hostname-or-ip-of-the-raspi command arg1 arg2 … and will execute command arg1 arg2 … on the Raspberry PI, without … Read more

[Solved] C++ to Python Code (Arduino to Raspberry Pi) – Using Ultrasonic [closed]

You don’t need this void setup() Linux is take a care of this. Here is Python code: import RPi.GPIO as GPIO import time #GPIO Mode (BOARD / BCM) GPIO.setmode(GPIO.BCM) #set GPIO Pins GPIO_TRIGGER = 18 GPIO_ECHO = 24 #set GPIO direction (IN / OUT) GPIO.setup(GPIO_TRIGGER, GPIO.OUT) GPIO.setup(GPIO_ECHO, GPIO.IN) def distance(): # set Trigger to HIGH … Read more

[Solved] How can I make my program input images taken from a Camera? [closed]

You can capture a single frame by using the VideoCapture method of OpenCV. import cv2 pic = cv2.VideoCapture(0) # video capture source camera (Here webcam of laptop) ret,frame = pic.read() # return a single frame in variable `frame` while(True): cv2.imshow(‘img1’,frame) #display the captured image if cv2.waitKey(1) & 0xFF == ord(‘y’): #save on pressing ‘y’ cv2.imwrite(‘images/c1.png’,frame) … Read more