Skip to content Skip to sidebar Skip to footer
Showing posts with the label Raspberry Pi

Assertion Failure : Size.width>0 && Size.height>0 In Function Imshow

i am using opencv2 and python on raspberry pi. and i am new with python and opencv. i tried to read… Read more Assertion Failure : Size.width>0 && Size.height>0 In Function Imshow

How Can I Read Register Usb Rs485 To Any Modbus Device?

My Device Address is 1, I tried Read Holding Register, and Register Address is 0. I tried pyserial … Read more How Can I Read Register Usb Rs485 To Any Modbus Device?

How To Change A Space When A Button Is Pressed With Kivy?

I am trying create a GUI by implementing the template of the ComicCreator GUI sample as a template … Read more How To Change A Space When A Button Is Pressed With Kivy?

Python Attributeerror: 'module' Object Has No Attribute 'serial'

I'm trying to access a serial port with Python 2.6 on my Raspberry Pi running Debian. My script… Read more Python Attributeerror: 'module' Object Has No Attribute 'serial'

How To Install Phantomjs For Use With Python Selenium On The Raspberry Pi?

I want to run a Python script using Selenium WebDriver with PhantomJS as a headless browser on my R… Read more How To Install Phantomjs For Use With Python Selenium On The Raspberry Pi?

Raspberry Pi Crontab Starts Py Script At Bootup -> Logging: Error Mysql 2002 (can't Connect To Local Server)

A Raspberry Pi (raspian wheezy) has a cronjob, created as user pi with 'sudo crontab -e' so… Read more Raspberry Pi Crontab Starts Py Script At Bootup -> Logging: Error Mysql 2002 (can't Connect To Local Server)

Refresh Web Page Using A Cgi Python Script

I have a very simple web page which I'm using in order to rotate a stepper motor on Raspberry P… Read more Refresh Web Page Using A Cgi Python Script

Calling A Method Several Times With Several Threads

I want a LED to flash, while some work is beeing done on my Raspberry. I am using a Thread for the … Read more Calling A Method Several Times With Several Threads

When Converting To Tobytes() It Changes The Numpy Array. Valueerror: Expected 2d Array, Got 1d Array Instead:

I was doing this socket communication code to send inputs from the server.py (on the laptop) to the… Read more When Converting To Tobytes() It Changes The Numpy Array. Valueerror: Expected 2d Array, Got 1d Array Instead:

Tkinter Gui Does Not Run Properly When Auto Boot

this is my first time using Raspberry Pi 3 with Python Tkinter to make a GUI. I have written my scr… Read more Tkinter Gui Does Not Run Properly When Auto Boot

Kivy - Label To Display Real-time Sensor Data

I would like to create two labels in Kivy that update their text with sensor data from temp sensors… Read more Kivy - Label To Display Real-time Sensor Data

Raspberry Pi Python Shebang With Cgi Server

I am trying to run a local CGI server on my raspberry pi to host a webpage with a single link, that… Read more Raspberry Pi Python Shebang With Cgi Server

Interact With Python Script Running Infinitive Loop From Web

I have a python script on my raspberry-pi continuously (every 5 seconds) running a loop to control … Read more Interact With Python Script Running Infinitive Loop From Web

Python: Sending A Mail, Fails When Inside A "with" Block

I am wondering why this code test = smtplib.SMTP('smtp.gmail.com', 587) test.ehlo() test.st… Read more Python: Sending A Mail, Fails When Inside A "with" Block

Generate Keystrokes In Linux From Python3

I need to generate keystrokes in Linux (Raspbian) from Python3. Something like uinput but for Pytho… Read more Generate Keystrokes In Linux From Python3

Segmentation Fault With Opening And Closing Pygame Windows

I'm working on a project where I am trying to alternate between the camera preview on a picamer… Read more Segmentation Fault With Opening And Closing Pygame Windows

Python 3.2: Ioerror: [errno 22] Invalid Argument: '/home/pi/data/temp/file1\n.txt'

I am a newbie to python programming. I have a counter.txt file from which i am reading the counter … Read more Python 3.2: Ioerror: [errno 22] Invalid Argument: '/home/pi/data/temp/file1\n.txt'

Send Captured Images From Python Server To Javascript Client

Now I try to make server using Raspberry Pi which send live stream image data to browser. The serve… Read more Send Captured Images From Python Server To Javascript Client

What Is The Best Way To Give A Linux Command From One Machine To A Different Machine?

I have a Django project on my laptop. It works perfectly fine on my machine. This web app takes inp… Read more What Is The Best Way To Give A Linux Command From One Machine To A Different Machine?

Calling A Method Several Times With Several Threads

I want a LED to flash, while some work is beeing done on my Raspberry. I am using a Thread for the … Read more Calling A Method Several Times With Several Threads