Go to advanced search

by geekinthesticks
Sat May 18, 2013 5:42 pm
Forum: Media centres
Topic: Minidlna
Replies: 12
Views: 6435

Re: Minidlna

You can get it to mount at boot. Put something like this in /etc/fstab

Code: Select all

/dev/sda1  /media/usbstick               ext4    defaults,noatime  0       1
You will need to adjust the ext4 part to reflect whatever file system is on your usbstick. Type man mount in a terminal to see what the options are.
by geekinthesticks
Fri May 17, 2013 11:02 am
Forum: General discussion
Topic: What's the simple and safe way to do a "shutdown" button?
Replies: 60
Views: 65291

Re: What's the simple and safe way to do a "shutdown" button

Thanks, I did have the correct pin. However problem now solved - dry joint on the 1k resistor, so the pin was never getting pulled low.
by geekinthesticks
Fri May 17, 2013 9:14 am
Forum: General discussion
Topic: What's the simple and safe way to do a "shutdown" button?
Replies: 60
Views: 65291

Re: What's the simple and safe way to do a "shutdown" button

I am having some problems getting this to work. What happens is that pin 17 always seems to be high, so the shutdown command is always executed. I have double checked my wiring and am sure it is correct. I have also tried ommiting the switch completely, so pin 17 is connected to ground via the 1k an...
by geekinthesticks
Thu May 16, 2013 7:31 am
Forum: Media centres
Topic: Mediacenter in a car
Replies: 17
Views: 25750

Re: Mediacenter in a car

You must be very lucky! I have had quite a few corrupted SD's when powering off without shutting down properly. However, it's not difficult to restore a working image. Also, I'll be keeping a spare SD in the car in case the worst happens.
by geekinthesticks
Wed May 15, 2013 8:45 am
Forum: Media centres
Topic: Mediacenter in a car
Replies: 17
Views: 25750

Re: Mediacenter in a car

In addition to the hardware off switch, I have a simple nodejs app that just displays a "Shutdown" button, which lets me shut off the Pi using a browser on the phone.
by geekinthesticks
Tue May 14, 2013 5:33 pm
Forum: Media centres
Topic: Mediacenter in a car
Replies: 17
Views: 25750

Re: Mediacenter in a car

Thanks for sharing that. I am just finishing off a similar project. My project has a slightly different focus. It's main aim is to allow passengers to play media on their phone/tablets (think bored children on long car journeys). I have set up a WiFi hot spot, using hostapd and am streaming media us...
by geekinthesticks
Sun May 12, 2013 5:46 pm
Forum: Networking and servers
Topic: Communication between linux devices
Replies: 5
Views: 1163

Re: Communication between linux devices

You might want to look at zeromq http://www.zeromq.org/ I don't use it directly, but am using http://docs.saltstack.com/#reference , which uses zeromq as its network comms protocol.
by geekinthesticks
Sat May 11, 2013 12:16 pm
Forum: Automation, sensing and robotics
Topic: PHP to control Python scripts (for GPIO)
Replies: 2
Views: 1324

Re: PHP to control Python scripts (for GPIO)

It's probably a permissions problem. Your script will be running as whatever user apache runs under. I think that accessing GPIO generally requires root access.
by geekinthesticks
Tue May 07, 2013 8:14 pm
Forum: Automation, sensing and robotics
Topic: Timer: Photocell or Distance Sensor ?
Replies: 13
Views: 5817

Re: Timer: Photocell or Distance Sensor ?

I have probably had too many glasses of wine but... You can record a timestamp when your process requests information from hardware, then another timestamp when you get a reply. Similarly, you can record a timestamp when you send a packet via Wifi and then when you receive the packet back. This is s...
by geekinthesticks
Mon May 06, 2013 12:57 pm
Forum: Automation, sensing and robotics
Topic: Logging temperatures using RRDTool and Highcharts
Replies: 68
Views: 74062

Re: Logging temperatures using RRDTool and Highcharts

I am in the process of writing up my weather station stuff and putting it onto Github. It will be a few days yet before it's ready. I am using a BMP085 and a DSB1820 to do the measuring. The data is added to a MySQL database via a php script and http POST. I then use HighCharts to plot my data. I ha...
by geekinthesticks
Sun May 05, 2013 6:51 pm
Forum: Networking and servers
Topic: Using the Raspberry Pi as an overseas proxy
Replies: 7
Views: 16691

Re: Using the Raspberry Pi as an overseas proxy

If you want to be able to access streaming video in the US from Germany the most reliable options are probably rent a proxy server in the US, or set one up on a VPN. I use my Linode (in the UK) running Squid to access things like BBC iPlayer when I am abroad. As has already been mentioned your paren...
by geekinthesticks
Sun May 05, 2013 6:42 pm
Forum: Automation, sensing and robotics
Topic: Timer: Photocell or Distance Sensor ?
Replies: 13
Views: 5817

Re: Timer: Photocell or Distance Sensor ?

The Pi doesn't contain a real time clock, although you can buy add on boards. So as a minimum you would probably require an RTC board. You should be able to communicate between two Pi's using just a standard WiFi dongle, without requiring any other equipment. Essentially, you set one Pi up as an acc...
by geekinthesticks
Sun May 05, 2013 6:10 pm
Forum: Automation, sensing and robotics
Topic: Timer: Photocell or Distance Sensor ?
Replies: 13
Views: 5817

Re: Timer: Photocell or Distance Sensor ?

It might be simpler to use two Pi's. One at the start and one at the finish. I would guess that 100m in the open would be OK for WiFi comms between the two units. One approach would be to write the start and finish times either in a text file or in a database on one of the Pi's. If you have access t...
by geekinthesticks
Thu May 02, 2013 9:11 am
Forum: Networking and servers
Topic: Proxy school server
Replies: 7
Views: 5760

Re: Proxy school server

Probably what you need is a transparent proxy. Normally this would be on your default gateway. All traffic to port 80 will normally end up going through your gateway, so you set up an ip chains rule on the gateway to route all traffic to port 80 on the gateway via squid's port (3128 by default). Thu...
by geekinthesticks
Thu May 02, 2013 9:03 am
Forum: Automation, sensing and robotics
Topic: Lone Living Person Activity Monitor
Replies: 7
Views: 2191

Re: Lone Living Person Activity Monitor

If your relative doesn't mind being "watched" it's easy enough to setup a webcam that can be viewed remotely. I use motion, from the repos, to monitor things when I am out/away. Wireless webcams or an ip cam gives the most flexiblity. I find the main problem is the reliability of my broadband connec...
by geekinthesticks
Wed May 01, 2013 10:34 am
Forum: Automation, sensing and robotics
Topic: Weather Station now running
Replies: 159
Views: 79202

Re: Weather Station now running

Thanks for the information, especially the link to the datasheet. I have ordered them from Maplins, now I just need to find a pole of suitable diameter to mount them on.
by geekinthesticks
Mon Apr 29, 2013 5:34 pm
Forum: Automation, sensing and robotics
Topic: Weather Station now running
Replies: 159
Views: 79202

Re: Weather Station now running

Thanks, I'll order the rain gauge and anemometer. Any idea how accurate the rain gauge is? I have looked at quite a few tipping rain gauges and they are all > £100. I don't need it to be super accurate, but don't want to fiddle about setting one up if it's totally inaccurate.
by geekinthesticks
Mon Apr 29, 2013 8:41 am
Forum: Automation, sensing and robotics
Topic: Weather Station now running
Replies: 159
Views: 79202

Re: Weather Station now running

Does anyone happen to know how the Maplin rain gauge, etc work. I was thinking of just buying the cheap replacement ones, as I have everything else I need for my weather station, so don't need the full Maplin USB gizmo. I am assuming that they just generate a pulse each time the rain bucket tips, or...
by geekinthesticks
Sun Apr 28, 2013 10:25 am
Forum: Other projects
Topic: Case With Some Headroom
Replies: 3
Views: 1143

Re: Case With Some Headroom

I think I might have to resort to using a Tupperware box!
by geekinthesticks
Fri Apr 26, 2013 2:35 pm
Forum: Other projects
Topic: Case With Some Headroom
Replies: 3
Views: 1143

Case With Some Headroom

I have a project which uses a Slice of Pi board plus several jack sockets. Whilst most standard cases can accommodate the Slice of Pi, there isn't enough depth to mount the jack sockets on the case. So can anyone suggest a suitable case.
by geekinthesticks
Mon Apr 08, 2013 7:56 am
Forum: General discussion
Topic: Wifi dongle Ap
Replies: 6
Views: 5799

Re: Wifi dongle Ap

The one sold by PiHut works for me.
by geekinthesticks
Mon Mar 25, 2013 11:11 am
Forum: Troubleshooting
Topic: hostapd Seems to Have Disappeared from the repos
Replies: 7
Views: 3152

Re: hostapd Seems to Have Disappeared from the repos

Tried again this morning with apt-get update and it downloaded and installed fine. Previous problems must have been caused by some network strangeness, thanks for all the suggestions.
by geekinthesticks
Sun Mar 24, 2013 7:01 pm
Forum: Troubleshooting
Topic: hostapd Seems to Have Disappeared from the repos
Replies: 7
Views: 3152

Re: hostapd Seems to Have Disappeared from the repos

File system has loads of space.
by geekinthesticks
Sun Mar 24, 2013 11:46 am
Forum: Troubleshooting
Topic: hostapd Seems to Have Disappeared from the repos
Replies: 7
Views: 3152

Re: hostapd Seems to Have Disappeared from the repos

Thanks I have tried apt-get clean. Using various European mirrors, I either get no result doing an apt-cache search or: [email protected] /etc/apt $ sudo apt-get clean [email protected] /etc/apt $ sudo apt-get update Hit http://archive.mene.za.net wheezy InRelease Get:1 http://archive.mene.za.net wheezy/c...
by geekinthesticks
Sun Mar 24, 2013 9:57 am
Forum: Troubleshooting
Topic: hostapd Seems to Have Disappeared from the repos
Replies: 7
Views: 3152

Re: hostapd Seems to Have Disappeared from the repos

I got that before I did an apt-get update, but there was an error downloading the package. After my apt-get update I get:

Code: Select all

[email protected] ~ $ apt-cache search hostapd
[email protected] ~ $

Go to advanced search