Go to advanced search

by mailliw
Sun Jan 17, 2016 10:40 pm
Forum: Other projects
Topic: Breadboards and RGB LEDs
Replies: 3
Views: 554

Re: Breadboards and RGB LEDs

Thanks both. I'll look into the veroboard. I'm quite happy for it to be soldered permanently since it's going to be in a case and only serve one purpose (the light coming on and off!) I also need it to be as small as possible, so will see if the veroboard helps or hinders.
by mailliw
Sun Jan 17, 2016 9:44 pm
Forum: Other projects
Topic: Breadboards and RGB LEDs
Replies: 3
Views: 554

Breadboards and RGB LEDs

Hi, I've had a Pi since it first came out, and now own three. They've given me so much enjoyment and I've made half-a-dozen projects with them, but never yet used a breadboard or done much GPIO programming. I'm looking into another project which will use one, possibly two, bright RGB LEDs attached t...
by mailliw
Tue Dec 01, 2015 7:25 pm
Forum: Advanced users
Topic: Escaping / suspending init.d script on boot
Replies: 2
Views: 438

Re: Escaping / suspending init.d script on boot

Thanks Andy, so much! Worked perfectly.
by mailliw
Tue Dec 01, 2015 11:42 am
Forum: Advanced users
Topic: Escaping / suspending init.d script on boot
Replies: 2
Views: 438

Escaping / suspending init.d script on boot

Hi, Like an idiot, I added a script to init.d and had made a few untested changes to it. On boot, it now gets stuck in a loop with no way out. SSH and various other services haven't yet started (I run it headless). So I got a keyboard hoping I could CTRL-C or CTRL-Z my way out of it, and remove/fix ...
by mailliw
Thu Mar 26, 2015 12:10 pm
Forum: Beginners
Topic: Pre-configure wifi for headless/blind installation?
Replies: 7
Views: 3132

Re: Pre-configure wifi for headless/blind installation?

Interesting. Would mounting an SD card on a Mac be any different (present a read/writeable filesystem) as opposed to simply having and mounting the .img? Will give it a go.
by mailliw
Thu Mar 26, 2015 11:54 am
Forum: Beginners
Topic: Pre-configure wifi for headless/blind installation?
Replies: 7
Views: 3132

Re: Pre-configure wifi for headless/blind installation?

Sorry to resurrect such an old thread, but I'm keen to know if this is possible. I've downloaded the latest Raspberry .img and need to wipe my existing Pi with a fresh copy. It would be useful to be able to plug the new card/img in, and use the existing (working) wifi settings to avoid plugging it i...
by mailliw
Wed Dec 04, 2013 4:50 pm
Forum: Python
Topic: Waiting for a button press inside a loop
Replies: 9
Views: 3895

Re: Waiting for a button press inside a loop

Made some good progress. Got it polling a sqlite database, but not yet fathomed how to issue a SQL update which updates multiple rows). Going nicely though. One sticking point: any idea how to listen for a button press of more than 2 seconds? Just want to implement a crude "turn the display off if y...
by mailliw
Thu Nov 21, 2013 2:52 pm
Forum: Python
Topic: Waiting for a button press inside a loop
Replies: 9
Views: 3895

Re: Waiting for a button press inside a loop

Ah, great - thank you very much. Increased to 0.4 for now, but it's working for the time being! Thanks a lot. Will post back with developments in the coming days in case others are trying to do similar.
by mailliw
Thu Nov 21, 2013 2:19 pm
Forum: Python
Topic: Waiting for a button press inside a loop
Replies: 9
Views: 3895

Re: Waiting for a button press inside a loop

Fully agree. I can write to the screen and detect button presses, but I'm struggling to cope with the "debouncing" effect. counter=0 themsg=(['First message','Second message','Third message']) msglen=len(themsg) while True: if (lcd.buttonPressed(lcd.UP)): if msglen is not 0: #If counter=0, then we w...
by mailliw
Thu Nov 21, 2013 1:53 pm
Forum: Python
Topic: Waiting for a button press inside a loop
Replies: 9
Views: 3895

Re: Waiting for a button press inside a loop

Ok, thanks. I'm some way off doing that at the moment. I can't even get it working to display different items in a list based on multiple button presses. This hardware stuff is far harder than I anticipated!
by mailliw
Thu Nov 21, 2013 10:59 am
Forum: Python
Topic: Waiting for a button press inside a loop
Replies: 9
Views: 3895

Re: Waiting for a button press inside a loop

Thanks. I'm using Adafruit's Github library , but this is probably time I got my head around interrupts. I've read them three times now and am still stumped, but will persevere! Thanks for the link. Just one other design question though. I'm going to be displaying dynamic content on the LCD, updated...
by mailliw
Thu Nov 21, 2013 12:21 am
Forum: Python
Topic: Waiting for a button press inside a loop
Replies: 9
Views: 3895

Waiting for a button press inside a loop

Hi, I've just built the Adafruit 16x2 LCD display but am having a headache working out my loops. I want to press a button (it has 5 available), display the text from the first item in a list. Press the button again, display the second item, and so on. At the end, the list will be wiped clean and wil...
by mailliw
Fri Jun 21, 2013 10:28 am
Forum: Troubleshooting
Topic: Wifi dropping - rsync the cause?
Replies: 0
Views: 507

Wifi dropping - rsync the cause?

Hi, I'm having trouble working out why my Pi randomly disconnects from the wifi. I have a couple of cron-initiated jobs from a laptop which backup my Pi's home directory via rsync every 30 minutes. These run without fail, and 9 times out of 10 don't transfer anything as it's purely an incremental ba...
by mailliw
Mon Jun 17, 2013 9:19 pm
Forum: Other projects
Topic: HueCast - weather forecaster for wifi bulbs
Replies: 0
Views: 561

HueCast - weather forecaster for wifi bulbs

Hi, Written a little thing in Python which takes the forecast for the next 60 mins and alters the colour of your Philips Hue bulbs. If rain is due in the next 40 minutes, it'll turn blue-to-purple depending on intensity. Much to my amazement, the rain alerter has been completely accurate so far! Any...
by mailliw
Mon Jun 17, 2013 8:54 am
Forum: Networking and servers
Topic: Wifi dropping (using Edimax EW-7811UN)
Replies: 16
Views: 31139

Re: Wifi dropping (using Edimax EW-7811UN)

I find it really unlikely that a USB hub would help. I too have this problem, but only since a reformat; before that, it would retain its connection for 2 weeks or more.

Surely power is power! Why would it be fine one minute, then not have enough power the next?
by mailliw
Fri Jun 14, 2013 4:33 pm
Forum: General discussion
Topic: Public key for ssh works, but rsync still askes for password
Replies: 3
Views: 895

Re: Public key for ssh works, but rsync still askes for pass

Just a quick follow-up to this: I'm using the rsync flag --delete-during. Without sudo, it doesn't have the permissions to delete files on my local machine (Mac).

Any ideas?
by mailliw
Fri Jun 07, 2013 5:33 pm
Forum: Raspbian
Topic: Add edited wpa_supplicant.conf to wheezy img
Replies: 2
Views: 1105

Re: Add edited wpa_supplicant.conf to wheezy img

Ah, thanks Luis - great. I'll try that on a rainy day. It seems to make sense to me...only need to modify /etc/network/interfaces and wpa_supplicant, and everything else, I think, can run remotely

Thanks for the info. Will try it on my mac some time.
by mailliw
Thu Jun 06, 2013 10:04 pm
Forum: Python
Topic: Installing github repos with pip
Replies: 0
Views: 419

Installing github repos with pip

Hi, Been trying to get my head around this. I want one place to store my modules, and those from Github - one directory that I can backup - so that I can just call "from blah import blah" without worrying about where the damn files are. I thought "pip install -e git://" would help, and it does...but...
by mailliw
Thu Jun 06, 2013 4:50 pm
Forum: Raspbian
Topic: Add edited wpa_supplicant.conf to wheezy img
Replies: 2
Views: 1105

Add edited wpa_supplicant.conf to wheezy img

Hi, My SD card died on me yesterday, so I'm about to re-install on a new card. I run a wireless & headless setup, but wondered whether I can make things easier for myself and use my existing (backed-up) wpa_supplicant.conf file and add it to the img, then simply turn on my pi - instead of having to ...
by mailliw
Wed Jun 05, 2013 1:22 pm
Forum: Troubleshooting
Topic: Directory disappeared...twice
Replies: 10
Views: 1951

Re: Directory disappeared...twice

Thanks for the reply. I just don't see how I could've been hacked. Yes, it's possible - it's connected to my network - but I think you're right about the card being corrupt. And I think rsync is to blame: it has now ruined vast chunks of system files, including /etc/sudoers which contains a list of ...
by mailliw
Wed Jun 05, 2013 12:06 pm
Forum: Troubleshooting
Topic: Directory disappeared...twice
Replies: 10
Views: 1951

Re: Directory disappeared...twice

I think I'm being hacked, or have been hacked. I just used nano to create the script again, in a new file. I ran it. It was fine. 20 minutes later it failed to run. Inspecting it in nano revealed it had been completely torn apart, replaced with the following: anja o rasporedu tastature i trenutna ko...
by mailliw
Mon Jun 03, 2013 1:53 pm
Forum: Troubleshooting
Topic: Directory disappeared...twice
Replies: 10
Views: 1951

Re: Directory disappeared...twice

Yeah - nobody else has access and I've changed the pi pass. Good idea about deleting the pi account though - thanks.
by mailliw
Mon Jun 03, 2013 1:24 pm
Forum: Troubleshooting
Topic: Directory disappeared...twice
Replies: 10
Views: 1951

Re: Directory disappeared...twice

Good thought, but no. /home/pi/me/* is where I keep everything ...
by mailliw
Mon Jun 03, 2013 8:21 am
Forum: Troubleshooting
Topic: Directory disappeared...twice
Replies: 10
Views: 1951

Re: Directory disappeared...twice

Hi Trevor. I always reboot with "shutdown -r now" and use the -h flag to shutdown, but that's a good point about the green light. I didn't know that. Really good thought - perhaps that's it. But it's strange that it should have happened twice, to two separate directories, and I don't remember shutti...
by mailliw
Sun Jun 02, 2013 10:24 pm
Forum: Troubleshooting
Topic: Directory disappeared...twice
Replies: 10
Views: 1951

Directory disappeared...twice

Hi, I've used terminal on a mac and shell on a server for quite a few years, but am still pretty green. I know my way around, but I am completely stumped and worried about what's just happened. I SSHd into my pi to check on some scripts I've been writing, and found that an entire directory had disap...

Go to advanced search