Go to advanced search

by PangolinPaws
Thu Jan 29, 2015 9:36 am
Forum: Other projects
Topic: 2 pi project
Replies: 15
Views: 1617

Re: 2 pi project

I still can't find a easy project for beginner using two raspberry pi's Perhaps - Connect both of your RPi's to a network. Then: Do an easy beginner project on one of the RPi's - but do it completely by remote control from the OTHER RPi. Do an easy 'when I press a switch turn on an LED' project - b...
by PangolinPaws
Wed Jan 28, 2015 1:44 pm
Forum: Beginners
Topic: raspistill with temperature and date as image name
Replies: 20
Views: 2736

Re: raspistill with temperature and date as image name

i have removed the print temperature from the temperature code then put Print image_name() on the code in terminal i get this error sh: 1: sytax error: "(" unecpected Doesn't the ' sh ' indicate that this is a shell script error - i.e. it's not the python that's causing it? Benmalpass, does your er...
by PangolinPaws
Wed Jan 28, 2015 1:27 pm
Forum: Python
Topic: LCD with buttons that does things.
Replies: 6
Views: 2870

Re: LCD with buttons that does things.

I like the way you're using a dictionary with (if I've read it right) the Key as the message shown on the LCD and the Item as the command run when said item is selected. My inelegant solution was to have the displayed message e.g. 'run_program' also be the name of a function defined within the code....
by PangolinPaws
Tue Jan 27, 2015 8:30 pm
Forum: Advanced users
Topic: Pull only specific files from GitHub repository
Replies: 5
Views: 752

Re: Pull only specific files from GitHub repository

Excellent, nice to know I was on the right track.
by PangolinPaws
Tue Jan 27, 2015 4:59 pm
Forum: Advanced users
Topic: Pull only specific files from GitHub repository
Replies: 5
Views: 752

Re: Pull only specific files from GitHub repository

Thank you, I'll take a look at the magazine. I've also read a bit about branches since my last post so I think I'm nearly there! I think I can create a new branch with certain features with: git checkout -b branch_name Upload that branch using: git push origin branch_name And then download & install...
by PangolinPaws
Tue Jan 27, 2015 9:59 am
Forum: Python
Topic: LCD with buttons that does things.
Replies: 6
Views: 2870

Re: LCD with buttons that does things.

Hello, I recently bought a similar LCD and came up with a basic menu. I used a list to hold my menu options: menuOptions = ['Run_program', 'Settings', 'Show_IP', 'Shutdown'] And two variables to hold which options were currently on screen: topLine = 0 botLine = 1 And this bit prints the options to t...
by PangolinPaws
Sun Jan 25, 2015 3:42 pm
Forum: Beginners
Topic: raspistill with temperature and date as image name
Replies: 20
Views: 2736

Re: raspistill with temperature and date as image name

Benmalpass wrote:no, it just prints current temperature
Hmm... If you are using my example code, what do you get if you add the line following line?

Code: Select all

 print image_name()
Just to see if that bit's the problem...
by PangolinPaws
Sat Jan 24, 2015 11:53 am
Forum: Advanced users
Topic: Pull only specific files from GitHub repository
Replies: 5
Views: 752

Re: Pull only specific files from GitHub repository

I've stumbled accross this: git fetch <remote> <branch> I think it downloads the whole of my remote repository and then I use git merge To specify which bits I want to keep. I'll need to figure out how to select specific files, but I'm sure I can find that on my own eventually. If that's the case, m...
by PangolinPaws
Sat Jan 24, 2015 11:28 am
Forum: Advanced users
Topic: Pull only specific files from GitHub repository
Replies: 5
Views: 752

Pull only specific files from GitHub repository

Hello, Firstly, I'm sorry if this is in the wrong place, its such an odd question that I'm not evrn sure if I've given it a good Subject... I have several Pi's running different variants of the same program. To simplify updating the scripts and improve consistency, I would like to use GitHub to hold...
by PangolinPaws
Thu Jan 22, 2015 4:09 pm
Forum: Beginners
Topic: raspistill with temperature and date as image name
Replies: 20
Views: 2736

Re: raspistill with temperature and date as image name

Benmalpass wrote:i have tried your code and it just prints the temperature
Prints it to screen but doesn't take (or name) any images?
by PangolinPaws
Wed Jan 21, 2015 12:08 pm
Forum: Beginners
Topic: raspistill with temperature and date as image name
Replies: 20
Views: 2736

Re: raspistill with temperature and date as image name

DougieLawson wrote:
PangolinPaws wrote: I've added a bit in to your original code, see what you think:
I was deliberately not doing the whole job for the OP. That way he has to learn some coding.
Good point, I didn't think that through... OP, ignore my post unless you get stuck! :D
by PangolinPaws
Wed Jan 21, 2015 11:19 am
Forum: Beginners
Topic: raspistill with temperature and date as image name
Replies: 20
Views: 2736

Re: raspistill with temperature and date as image name

I see Dougie's beaten me to it, but this is what I was going to post... * * * You could put it all in python to make things a little easier. I've added a bit in to your original code, see what you think: import time import RPi.GPIO as GPIO import os import datetime # My preferred timestamp-fetching ...
by PangolinPaws
Mon Jan 19, 2015 4:49 pm
Forum: General discussion
Topic: image processing speed
Replies: 1
Views: 661

Re: image processing speed

There's a post on the main website's blog about a line-following robot that used image processing rather than reflection sensors: http://www.raspberrypi.org/an-image-processing-robot-for-robocup-junior/ They say they got a frame rate of 12-14 fps, which is pretty good. If your particular project can...
by PangolinPaws
Mon Jan 19, 2015 10:19 am
Forum: Beginners
Topic: PIR camera trap
Replies: 7
Views: 1074

Re: PIR camera trap

Also, currently it seems to save them in a file type that I can't open '.h264', any way of saving as an mp4 and the pictures as .jpg? Somewhere in the code the filename for images will be specified. All you'd need to to is find that line and change it to end in .jpg rather than whatever it is now. ...
by PangolinPaws
Sun Jan 18, 2015 10:41 pm
Forum: Off topic discussion
Topic: 3D Printing
Replies: 56
Views: 5809

Re: 3D Printing

Awesome. One day I will join the 3D printing club, one day...

*looks longingly towards the horizon*
by PangolinPaws
Fri Jan 16, 2015 10:09 pm
Forum: Other projects
Topic: 'Smart' LED coffee table
Replies: 5
Views: 1930

Re: 'Smart' LED coffee table

Thank you very much. I'll do a bit of research on the white LEDs that I have & see what resistor to use with them. Fairly unlikely that I'll be able to run all of them from the Pi without a big resistor (and therefore only dim illumination) by the looks of things.
by PangolinPaws
Fri Jan 16, 2015 8:19 pm
Forum: Other projects
Topic: 'Smart' LED coffee table
Replies: 5
Views: 1930

Re: 'Smart' LED coffee table

Doing it that way you would need 75 GPIOs for your 5 x 5 grid. Have you considered addressable LEDs (like the neopixels) instead? Good point. I changed my mind to include RGBs mid-post. Back to a 'black and white' coffee table using single-colour LEDs then (I have enough if them already). Using one...
by PangolinPaws
Fri Jan 16, 2015 7:33 pm
Forum: Other projects
Topic: 'Smart' LED coffee table
Replies: 5
Views: 1930

'Smart' LED coffee table

Hello all. I expect you've seen the LED coffee table things on youtube etc (example here: https://stetro.wordpress.com/2013/02/28/led-coffee-table-raspberry-pi/). I'd like to make one that displays some more useful stuff. For example simple animations to display tomorrow's weather, a specific patter...
by PangolinPaws
Fri Jan 16, 2015 9:34 am
Forum: Off topic discussion
Topic: 3D Printing
Replies: 56
Views: 5809

Re: 3D Printing

3D printing is so tempting... The Rep-rap is the way I'd go: https://reprappro.com/shop/reprap-kits/huxley-duo-hardware-kit/ It's relatively cheap to buy but because it's open & printable itself you can buy the electrical bits etc. from them and print the rest yourself at somewhere like the makersCA...
by PangolinPaws
Tue Jan 13, 2015 8:47 pm
Forum: Beginners
Topic: [SOLVED]Garbled Text on LCD only when running Pyton script.
Replies: 16
Views: 2069

Re: Garbled Text on LCD only when running certain Python scr

Do you mean enter this code like below (without brackets) to clear lcd? lcd.clear() elif(itemr == 4): #Check artist/title info output = run_cmd("mpc current | tail -c25") Something like that. If not clearing the LCD is the problem then its position within your If statements is probably the key. If ...
by PangolinPaws
Tue Jan 13, 2015 3:27 pm
Forum: Beginners
Topic: [SOLVED]Garbled Text on LCD only when running Pyton script.
Replies: 16
Views: 2069

Re: Garbled Text on LCD only when running certain Python scr

I do have another python script which calls the Adafruit LCD dependency for my lcd. However, if I remove this code from the else, else if statements: elif(item == 4): # Check artist/title info output = run_cmd("mpc current | tail -c25") The LCD display works perfectly and I am able to toggle betwee...
by PangolinPaws
Tue Jan 13, 2015 2:22 pm
Forum: Beginners
Topic: [SOLVED]Garbled Text on LCD only when running Pyton script.
Replies: 16
Views: 2069

Re: Garbled Text on LCD only when running certain Python scr

I've noticed a similar thing happening to my LCD a couple of times. Turns out I had a second script running in the background that was also trying to use the LCD.

Perhaps this is unlikely for your setup, but I thought I'd mention it, just in case. ^_^
by PangolinPaws
Sat Jan 10, 2015 10:47 pm
Forum: General discussion
Topic: login on raspberry pi?
Replies: 2
Views: 390

Re: login on raspberry pi?

By default the pi's username is 'pi' and the password is 'raspberry'.

Note that you won't see any characters appear as you type the password. This is normal for Linux but completely threw me the first time!
by PangolinPaws
Sun Jan 04, 2015 9:52 am
Forum: Other projects
Topic: Phone Detecting Anti-Stalker Contraption
Replies: 19
Views: 8032

Re: Phone Detecting Anti-Stalker Contraption

Hello. 1. Which Linux version did you use? Have googled and found that Kali is made for this kind of stuff but maybe you used something else? I don't really mind, just want it to work. I used Raspbian because it’s what I had already installed on my SD card. At the time I didn't have a spare and hadn...
by PangolinPaws
Fri Jan 02, 2015 3:39 pm
Forum: General discussion
Topic: operate the program when i trun on raspberry pi automaticaly
Replies: 2
Views: 354

Re: operate the program when i trun on raspberry pi automati

Hello,

I followed the instructions here:
http://raspberrywebserver.com/serveradm ... rt-up.html

It took me a little while to figure it out, but I find that the /etc/rc.local option does the job nicely.

Go to advanced search