Go to advanced search

by davef21370
Thu Feb 19, 2015 8:33 pm
Forum: Python
Topic: MSbus read data from MCP3428
Replies: 2
Views: 802

Re: MSbus read data from MCP3428

Could you post your code? And make sure it's between the Code tags in the editor so it looks like...

Code: Select all

some code
Dave.
by davef21370
Thu Feb 19, 2015 8:30 pm
Forum: Python
Topic: Issue with SHT15 sensor
Replies: 3
Views: 1114

Re: Issue with SHT15 sensor

You're correct, it's not a big deal. It's simply a warning that the pin is already assigned to something but you know that anyway so use the setwarnings as suggested and everything will be good.

Dave.
by davef21370
Wed Feb 18, 2015 1:18 pm
Forum: Python
Topic: Issue with SHT15 sensor
Replies: 3
Views: 1114

Re: Issue with SHT15 sensor

If you look at the library itself you'll see a gpio.cleanup() call after reading the temperature,remove that and you should have more luck.

Dave.
by davef21370
Mon Feb 16, 2015 6:05 pm
Forum: Python
Topic: Tkinter guage. help for a newbie
Replies: 7
Views: 2299

Re: Tkinter guage. help for a newbie

If you don't need any of Tk's other features I'd be tempted to use PyGame instead. You can center the text with relative ease or place it anywhere to the pixel.

Dave.
by davef21370
Tue Feb 10, 2015 5:59 pm
Forum: Python
Topic: unable to shift cursor on LCD
Replies: 6
Views: 1124

Re: unable to shift cursor on LCD

Have you tried using Adafruit's library?
https://learn.adafruit.com/downloads/pd ... rry-pi.pdf

Dave.
by davef21370
Sat Feb 07, 2015 7:05 pm
Forum: Python
Topic: RF24 to communicate with arduino
Replies: 2
Views: 796

Re: RF24 to communicate with arduino

http://www.jonathongrigg.com/post/61252 ... 24-library
Can't check it but looks like what you're after.

Dave.
by davef21370
Sat Feb 07, 2015 6:53 pm
Forum: Python
Topic: 3x4 Matrix keypad issue
Replies: 5
Views: 1196

Re: 3x4 Matrix keypad issue

This may help http://stackoverflow.com/questions/4933 ... e-or-space, look at the comments about flushing the output.

Dave.
by davef21370
Sat Feb 07, 2015 6:42 pm
Forum: Python
Topic: Removing data from list (weather station)
Replies: 9
Views: 1426

Re: Removing data from list (weather station)

Code: Select all

ITTest = open('/home/pi/Temp/InsideTempTest.txt', 'r') 
Itestdata = ITTest.readlines()

for line in Itestdata:
    print line.split(" ")[1]
I think
Dave.
by davef21370
Sat Feb 07, 2015 4:43 pm
Forum: Python
Topic: How early can I control my GPIO pins?
Replies: 3
Views: 764

Re: How early can I control my GPIO pins?

You could try some assembly http://www.cl.cam.ac.uk/projects/raspbe ... orials/os/ which will run on power up.

Dave
by davef21370
Tue Jan 27, 2015 6:48 pm
Forum: Python
Topic: Script on boot/ shutdown from script
Replies: 2
Views: 611

Re: Script on boot/ shutdown from script

http://www.raspberrypi.org/forums/viewt ... 63&t=46125 should get your script to auto run.
To shut down safely try using

Code: Select all

os.system("sudo halt")
after which the LED on your Pi will go a bit mental then flash on and off 5 or 6 times then stay off, that's when you can switch it off safely.

Dave.
by davef21370
Tue Jan 27, 2015 6:40 pm
Forum: Python
Topic: IOError: [Errno Input overflowed] -9981
Replies: 2
Views: 2209

Re: IOError: [Errno Input overflowed] -9981

Have you tried increasing the chunk size?

Dave.
by davef21370
Tue Jan 27, 2015 6:30 pm
Forum: Python
Topic: ImportError: No module named utils
Replies: 4
Views: 6930

Re: ImportError: No module named utils

Here's the package info https://pypi.python.org/pypi/python-utils/1.5.2.
My last post contained an underscore, looks like it should have been a hyphen so try sudo apt-get install python-utils.

Dave.
by davef21370
Mon Jan 26, 2015 6:00 pm
Forum: Python
Topic: ImportError: No module named utils
Replies: 4
Views: 6930

Re: ImportError: No module named utils

A quick Google suggests the package may be called python_utils so try importing that.

Dave.
by davef21370
Sun Jan 18, 2015 2:58 pm
Forum: Python
Topic: error in function SUBPROCESS
Replies: 8
Views: 1131

Re: error in function SUBPROCESS

Have a look in that folder to see if the file actually exists, like Dougie says, it looks like it's missing.

Dave.
by davef21370
Sun Jan 18, 2015 2:32 pm
Forum: Python
Topic: error in function SUBPROCESS
Replies: 8
Views: 1131

Re: error in function SUBPROCESS

The error message is showing
./Adafruit_Python_DHT/examples/Adafruit_DHT.py
but your code has
./Adafruit_Python_DHT/examples/Adafruit_DHT
are you using the correct file name?

Dave.
by davef21370
Sun Jan 18, 2015 1:55 pm
Forum: Python
Topic: Mail alert high temperature DS18b20 sensor
Replies: 3
Views: 1997

Re: Mail alert high temperature DS18b20 sensor

What results or errors are you getting?

Dave.
by davef21370
Tue Dec 23, 2014 6:55 pm
Forum: Python
Topic: Help with tkinter
Replies: 5
Views: 851

Re: Help with tkinter

Instead of using frame.pack() use frame.grid(), it sets thing out in rows and columns, read through the link I posted and Google Tkinter grid examples, you'll get there.

Dave.
by davef21370
Tue Dec 23, 2014 6:14 pm
Forum: Python
Topic: Project guidance
Replies: 1
Views: 377

Re: Project guidance

by davef21370
Tue Dec 23, 2014 6:12 pm
Forum: Python
Topic: Help with tkinter
Replies: 5
Views: 851

Re: Help with tkinter

by davef21370
Tue Dec 23, 2014 6:08 pm
Forum: Python
Topic: Pyro4 Connection Refused
Replies: 5
Views: 3207

Re: Pyro4 Connection Refused

Not sure but in the loop whe you try restarting the serial connection you have the line

Code: Select all

self.setup_serial()
which I think should be

Code: Select all

self.ser=self.setup_serial()
otherwise you'll never drop out of the loop once it starts.

Dave.
by davef21370
Sat Dec 20, 2014 9:54 pm
Forum: Python
Topic: how to spec library path?
Replies: 23
Views: 3108

Re: how to spec library path?

My twin brother (who has also been doing this stuff for 35 years) describes it as "a kiddies language" And a kiddy's language it can be. A couple of weeks ago I wrote a short Python script to work out how many vowels were in a string. My 10 year old son worked out what the script was doing and went...
by davef21370
Wed Dec 17, 2014 6:42 pm
Forum: Python
Topic: Problem with imaging library
Replies: 3
Views: 612

Re: Problem with imaging library

You may need to reinstall Python but I'd be tempted to wait for a better answer.

Dave.
by davef21370
Sun Dec 07, 2014 8:07 am
Forum: Python
Topic: Text/Photo Banner on Picamera
Replies: 12
Views: 4232

Re: Text/Photo Banner on Picamera

As you're using Pygame look at the font.render method.

Dave.
by davef21370
Thu Nov 27, 2014 5:57 pm
Forum: Python
Topic: Puzzled with this code
Replies: 8
Views: 1309

Re: Puzzled with this code

Shouldn't the line "vara == False" only have one equals sign?

Dave
by davef21370
Sat Nov 01, 2014 5:59 pm
Forum: Python
Topic: Not getting expected output
Replies: 3
Views: 1640

Re: Not getting expected output

I may be completely wrong here but I'm assuming hwclock is accessing your hardware clock? If so can you run a script to set the RPi clock from the hardware clock and then have that script run your cgi script?

Dave.

Go to advanced search