Go to advanced search

by geekinthesticks
Fri Jul 12, 2013 8:34 am
Forum: General discussion
Topic: Micro UPS
Replies: 5
Views: 3792

Re: Micro UPS

If you use a conventional UPS most of them support apcupsd. This is a daemon that monitors the UPS and fires events on power loss. You can hook the events with shell scripts to do whatever you want. Documentation is at http://www.apcupsd.com/
by geekinthesticks
Thu Jul 04, 2013 10:56 am
Forum: Beginners
Topic: Using a mirco USB car charger with the Raspberry Pi
Replies: 13
Views: 11043

Re: Using a mirco USB car charger with the Raspberry Pi

The other approach which requires a bit of DIY wiring is to use a UBEC (google eBay). This converts the car's 12v to 5v and does some regulation. You can wire it to one of the plugs that fits into your car's cigarette adaptor and then put a micro usb adaptor on the other end. I have got one in my ca...
by geekinthesticks
Thu Jul 04, 2013 10:50 am
Forum: Troubleshooting
Topic: Postfix send mail error
Replies: 6
Views: 4247

Re: Postfix send mail error

Most isp's won't let you use their smtp server to relay mail, for obvious anti spam reasons. There is a good tutorial on how to set up Postfix to use Google's mail servers http://blog.bigdinosaur.org/postfix-gmail-and-you/ However, I think that this probably only works if you are using Google Apps f...
by geekinthesticks
Wed Jul 03, 2013 7:47 am
Forum: Networking and servers
Topic: Accounts: www-data vs. pi
Replies: 8
Views: 1280

Re: Accounts: www-data vs. pi

Regarding your startup problem. Have a look at http://www.debian.org/doc/manuals/debian-reference/ch03.en.html#_the_runlevel_management_example which explains how to create init scripts that run after a particular service is ready. I am using ArcgLinux at the moment, which uses systemd not BSD style...
by geekinthesticks
Tue Jul 02, 2013 5:07 pm
Forum: Networking and servers
Topic: Accounts: www-data vs. pi
Replies: 8
Views: 1280

Re: Accounts: www-data vs. pi

The normal way would be to get your daemon to output stuff to a log file, usually in /var/log. Groups/permissions/etc are there because Linux/Unix was built from the ground up to be a secure multi user operating system. As such users are normally confined to writing things in their home directory. G...
by geekinthesticks
Tue Jul 02, 2013 3:26 pm
Forum: Networking and servers
Topic: Accounts: www-data vs. pi
Replies: 8
Views: 1280

Re: Accounts: www-data vs. pi

No you really don't want everything run by root, that's the way to disaster. You could make your program and user members of the www-data group. Just make sure that the group has write permissions in your directory.
by geekinthesticks
Tue Jul 02, 2013 10:07 am
Forum: Networking and servers
Topic: SMTP Server DNS error
Replies: 8
Views: 1673

Re: SMTP Server DNS error

Have a look at https://wiki.archlinux.org/index.php/SSMTP . It's for ArchLinux, but should give you the information you need.
by geekinthesticks
Mon Jul 01, 2013 2:48 pm
Forum: Networking and servers
Topic: SMTP Server DNS error
Replies: 8
Views: 1673

Re: SMTP Server DNS error

I meant which SMTP server are you using on the Pi e.g. Postfix. If it's sendmail compatible, as most mailservers tend to be, my suggestion above would work.
by geekinthesticks
Mon Jul 01, 2013 12:18 pm
Forum: Networking and servers
Topic: SMTP Server DNS error
Replies: 8
Views: 1673

Re: SMTP Server DNS error

You didn't say which smtp server you were using. However, the following works for most:

Create /etc/aliases

Add:
Update the alias file:

Code: Select all

newaliases
by geekinthesticks
Thu Jun 27, 2013 7:58 am
Forum: Networking and servers
Topic: Bridging
Replies: 22
Views: 4169

Re: Bridging

I am not 100% sure exactly what you are tying to do. However, if you want to route your Skype phone on eth0 to the internet and have an access point on wlan0 one way of doing this is to: * set up eth0 on one network eg 192.168.0.1 * setup wlan0 on another network eg 10.0.0.0. Make the wlan adapter 1...
by geekinthesticks
Tue Jun 25, 2013 7:25 am
Forum: General discussion
Topic: STICKY: Introduce yourself!
Replies: 3518
Views: 103822

Re: Introduce yourself!

I am Ian, who sometimes goes by the alias geekinthesticks. I have been tinkering around with computers since the 1980's. I have been through various careers including medical research, IT (networking, databases and accounting software) and have finally returned to farming which is where I started! I...
by geekinthesticks
Tue Jun 25, 2013 6:12 am
Forum: Media centres
Topic: Convert Mpeg2 to Mpeg4/h.264 [SOLVED]
Replies: 7
Views: 3277

Re: Convert Mpeg2 to Mpeg4/h.264

There are a number of options: HandbrakeCLI - uses ffmpeg internally. Easy to use with a useful range of presets. ffmpeg - ultimate flexibility. Expect to waste the rest of your life figuring out the constantly changing command line syntax and range of options. Produces very good results. mencoder -...
by geekinthesticks
Sun Jun 23, 2013 9:12 am
Forum: Automation, sensing and robotics
Topic: Logging data to a web server
Replies: 17
Views: 36505

Re: Logging data to a web server

The way I do it is to host the MySQL database on another server and use the Pi python script to add to data using a bit of php on the server via POST.
by geekinthesticks
Sat Jun 08, 2013 1:05 pm
Forum: Networking and servers
Topic: Viewing MJPEG raspberry pi motion stream
Replies: 1
Views: 797

Re: Viewing MJPEG raspberry pi motion stream

Like most things "It depends...". I use motion with Chrome and it displays the mjpeg stream from my camera. So I would try three things: - See if it works using Chrome. - Try using an internal network, rather than using a 3 g connection in case your isp is doing some clever bandwidth limiting. - If ...
by geekinthesticks
Sat Jun 08, 2013 7:31 am
Forum: Automation, sensing and robotics
Topic: Running into issues with Motion webcam service
Replies: 6
Views: 6795

Re: Running into issues with Motion webcam service

The motion user probably doesn't have write permission to /var/www. You need to add your motion user to whatever group owns /var/www. Something like: sudo useradd -G groupname motion groupname should be whatever apache is running under. In Debian I think this is http. You should also make sure that ...
by geekinthesticks
Sun Jun 02, 2013 4:33 pm
Forum: Automation, sensing and robotics
Topic: Weather Station now running
Replies: 159
Views: 79499

Re: Weather Station now running

Depends on how you are monitoring your temp. I read my sensors every 5min using a python script run via cron. It would be easy to add a check for temp > 35 and fire off an email.
by geekinthesticks
Sat Jun 01, 2013 4:03 pm
Forum: General programming discussion
Topic: How to commit with Git
Replies: 8
Views: 10626

Re: How to commit with Git

The normal way to do this would be to fork the project on Github. Clone this fork to your own computer and make a branch: git clone my_github_fork git branch local git checkout local Make your changes and commit to your local branch: git commit -a -m "My changes." git push origin local # pushes your...
by geekinthesticks
Sat Jun 01, 2013 3:57 pm
Forum: General programming discussion
Topic: Mapping my GPS data
Replies: 8
Views: 7165

Re: Mapping my GPS data

Not sure exactly what you want to do. However, something like GPS Prune will show you a map of your gps track. Not tried it on the Pi, but it's a java app, so should work. The other possibility is installing a web server on the Pi and using the OpenLayers javascript library to show your track on a m...
by geekinthesticks
Tue May 28, 2013 8:26 am
Forum: Networking and servers
Topic: Installing NodeJS forever.
Replies: 1
Views: 887

Installing NodeJS forever.

I am trying to use the forever package with nodejs. The version of nodejs shipped with raspbian is too old to work with forever. I have downloaded the source for nodejs, compiled and installed it and it works. I have installed forever via npm. However, when I try to run it I get he following error: ...
by geekinthesticks
Sun May 26, 2013 1:06 pm
Forum: Automation, sensing and robotics
Topic: Lead Acid Accumulator Voltage
Replies: 2
Views: 1122

Re: Lead Acid Accumulator Voltage

Thanks for the link. I'll shut the Pi down when the battery gets to around 10.7v. I'll also measure the current a shutoff Pi uses, but I don't think that's going to be a problem, as I will normally be around to replace the battery fairly quickly.
by geekinthesticks
Sun May 26, 2013 8:27 am
Forum: Automation, sensing and robotics
Topic: Lead Acid Accumulator Voltage
Replies: 2
Views: 1122

Lead Acid Accumulator Voltage

I want to power a Pi using a sealed 12v lead acid battery, which I happen to have lying about. I can use a UBEC to power the Pi. I have tested this and it works OK. However, I am aware of the dangers of discharging lead acid batteries too deeply. I can monitor the voltage and get the Pi to notify me...
by geekinthesticks
Fri May 24, 2013 10:08 am
Forum: General discussion
Topic: What's the simple and safe way to do a "shutdown" button?
Replies: 60
Views: 65688

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

That's very interesting. There are a number of Python frameworks that allow you to turn multi threaded apps into an event driven app. You don't have to worry about managing threads, but write an event handler, so when your button gets pressed it runs the code in your event handler. Possibly the best...
by geekinthesticks
Wed May 22, 2013 5:46 pm
Forum: Media centres
Topic: Mediacenter in a car
Replies: 17
Views: 25822

Re: Mediacenter in a car

Here is a link to the UK supplier I used http://www.ebay.co.uk/itm/350790816031?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1497.l2649 . I would be surprised if you can't get something similar in Finland. I plug mine into one of the car cigarette lighter outputs, which is a 12V feed. The box with the Pi...
by geekinthesticks
Tue May 21, 2013 6:05 pm
Forum: Troubleshooting
Topic: Pi Crashing after a few minutes
Replies: 17
Views: 1549

Re: Pi Crashing after a few minutes

Have you got a spare UPS, you could try running it from in the Club. Years ago I had a customer that ran aluminium arc welders just on the other side of the wall to his computer and wondered why his computer kept breaking.
by geekinthesticks
Mon May 20, 2013 1:07 pm
Forum: Media centres
Topic: Mediacenter in a car
Replies: 17
Views: 25822

Re: Mediacenter in a car

I have published a blog post about my setup at http://ian-barton.com/posts/2013/May/12/a-dlna-server-on-a-raspberry-pi/ . The code is also available on GitHub at https://github.com/geekinthesticks/raspberry-pi-dlnaserver Unfortunately, GitHub has somewhat messed up the formatting of the instructions...

Go to advanced search