Search found 126 matches
- Sat Sep 28, 2013 4:08 pm
- Forum: Raspberry Pi OS
- Topic: Cron problems in sending periodic email
- Replies: 6
- Views: 2315
Re: Cron problems in sending periodic email
Superb. I've learnt a lot with your help. Thank you
- Sat Sep 28, 2013 3:25 pm
- Forum: Raspberry Pi OS
- Topic: Cron problems in sending periodic email
- Replies: 6
- Views: 2315
Re: Cron problems in sending periodic email
Thanks folks I agree that sudo was not required within the crontab, it was put in to eliminate any permissions issues. I did make a few changes at the same time, so it may be the case that the location of Python may not have needed to be explicity included, but I wasn't sure if PATH was a per-user c...
- Sat Sep 28, 2013 2:52 pm
- Forum: Raspberry Pi OS
- Topic: Cron problems in sending periodic email
- Replies: 6
- Views: 2315
Re: Cron problems in sending periodic email
Well. That worked!
Thank you very much indeed
Thank you very much indeed

- Sat Sep 28, 2013 1:59 pm
- Forum: Raspberry Pi OS
- Topic: Cron problems in sending periodic email
- Replies: 6
- Views: 2315
Cron problems in sending periodic email
Hi I have a Python script which finds the latest jpg in a directory and then emails it out. It is used with a Python motion detect routine, but because of false alarms I don't want the latter script to email every instance of motion it detects: I want a reassuring image every so often. The emailer s...
- Sun Sep 22, 2013 4:42 pm
- Forum: Python
- Topic: Periodic cron job to email latest jpg from raspistill
- Replies: 3
- Views: 1733
Re: Periodic cron job to email latest jpg from raspistill
Ok, I'm making progress thanks to your help The script below finds the latest jpg and I have it printed to the console just to check prior to composing the email. My script is as follows: import subprocess import smtplib from email.mime.multipart import MIMEMultipart from email.mime.text import MIME...
- Sun Sep 22, 2013 4:19 pm
- Forum: Python
- Topic: Periodic cron job to email latest jpg from raspistill
- Replies: 3
- Views: 1733
Re: Periodic cron job to email latest jpg from raspistill
This almost works, but at the end of the "head" pipe is a carriage return "/n" which spoils the filename variable. How can I chop the final "/n" from the variable?
- Fri Sep 20, 2013 3:41 pm
- Forum: Python
- Topic: Periodic cron job to email latest jpg from raspistill
- Replies: 3
- Views: 1733
Periodic cron job to email latest jpg from raspistill
Hi everyone I have a need to periodically (say once an hour) email the latest picture taken by raspistill in timelapse mode (or the many motion capture scripts which use the MMAL module) My question is not in setting raspistill to do timelapse, but instead how to email the very latest completed imag...
- Sun Sep 15, 2013 8:10 am
- Forum: Beginners
- Topic: GPIO Thru Connector?
- Replies: 1
- Views: 481
Re: GPIO Thru Connector?
I had exactly the same regrets when I built my Adafruit LCD module: I wished I had installed a stacking header.
It was almost impossible for me to desolder the existing header - the end result was me purchasing a new kit and a bunch of stacking headers to use on ever future project!
It was almost impossible for me to desolder the existing header - the end result was me purchasing a new kit and a bunch of stacking headers to use on ever future project!
- Sun Aug 18, 2013 1:35 pm
- Forum: Networking and servers
- Topic: Tested and reliable 3G Dongle Setup
- Replies: 0
- Views: 671
Tested and reliable 3G Dongle Setup
Given the Sakis3g code has disappeared (although it is available via some mirrors, I'd rather not) I've followed the steps on the post below http://www.raspberrypi.org/phpBB3/viewtopic.php?t=18996 and can confirm this works with a number of 3G Dongles. The latest Thee Huawei 3231 can even be powered...
- Sun Aug 18, 2013 1:30 pm
- Forum: Networking and servers
- Topic: Huawei E3131 on Wheezy
- Replies: 44
- Views: 189013
Re: Huawei E3131 on Wheezy
This works so well, especially given the Sakis3g link no longer works! I would rather download the tools from the official repository (i.e. the tool you describe) than install some code from a third party I really can't vouch for. The latest Thee Huawei 3231 can even be powered directly from the Mod...
- Sat Aug 10, 2013 8:22 pm
- Forum: Networking and servers
- Topic: Odd open connections
- Replies: 0
- Views: 374
Odd open connections
I've just installed iftop to get an idea of the bandwidth used whilst streaming with vlc. iftop is a great tool. However, I've noticed multiple strange servers connected to my ntp port (identifiable when pressing "p" within iftop). These are constantly exchanging a small amount of data (in...
- Fri Aug 09, 2013 8:04 pm
- Forum: Raspberry Pi OS
- Topic: Strange connections on ntp port (using iftop)
- Replies: 0
- Views: 1064
Strange connections on ntp port (using iftop)
I've just installed iftop to get an idea of the bandwidth used whilst streaming with vlc. iftop is a great tool. However, I've noticed multiple strange servers connected to my ntp port (identifiable when pressing "p" within iftop). These servers are with "hu" (Hungary) and "...
- Mon Aug 05, 2013 6:58 pm
- Forum: Python
- Topic: How to run a python or bash command from Apache
- Replies: 4
- Views: 2191
Re: How to run a python or bash command from Apache
Thanks for this. By way of expansion: What I'm after a way of calling a python script which I already have. This script takes a photo using the rasp camera module and then emails it to a defined email address. I want to make this "on-demand", so from an external location I can point toward...
- Mon Aug 05, 2013 11:28 am
- Forum: Python
- Topic: How to run a python or bash command from Apache
- Replies: 4
- Views: 2191
How to run a python or bash command from Apache
Forgive my request which may have been answered a thousand times over, but in searching I haven't found anything that I can successfully implement. Please can someone offer a step by step example of getting an arbitrary python and bash script to execute either through a url request or a button press...
- Sun Jul 21, 2013 9:00 pm
- Forum: For sale
- Topic: 2.8" TFT + Touch Shield Board
- Replies: 206
- Views: 95953
Re: 2.8" TFT + Touch Shield Board
Before I PM you with my order....
... is there any conceivable way of having access to the GPIO pins with this shield in place?
... is there any conceivable way of having access to the GPIO pins with this shield in place?
- Sun Jul 21, 2013 8:39 pm
- Forum: Python
- Topic: Nokia Pi LCD
- Replies: 253
- Views: 121646
Re: Nokia Pi LCD
I've just posted the part of the code that outputs to the LCD initially, prior to polling the DHT22 (since that's not relevant). I did try to create an LCD class that existed in a seperate module which could be imported, but it proved unreliable. Thus I've crudely pasted the full code straight into ...
- Sun Jul 21, 2013 7:51 pm
- Forum: Python
- Topic: Nokia Pi LCD
- Replies: 253
- Views: 121646
Re: Nokia Pi LCD
Got this working - and so easy it was thanks to everyone's contributions. Below is a photo of the LCD displaying humidity and temperature data from a DHT 22. 2013-07-21 20.42.12.jpg I'm using the wiringpi code which appeared early in this thread. The problem I have is I don't seem to be able to swit...
- Thu Jul 18, 2013 9:55 pm
- Forum: Advanced users
- Topic: How to disable monitor power saving option in Raspberry PI?
- Replies: 8
- Views: 68771
Re: How to disable monitor power saving option in Raspberry
Yes. That makes sense. The clue is in the name: Xdotool.
I think it worked for me because I SSHd into Ubuntu whilst the X Session was running, with its resultant grip on the power saving features. This is not how Raspberry Pi users normally access the console.
I think it worked for me because I SSHd into Ubuntu whilst the X Session was running, with its resultant grip on the power saving features. This is not how Raspberry Pi users normally access the console.
- Mon Jul 15, 2013 8:40 pm
- Forum: Advanced users
- Topic: How to disable monitor power saving option in Raspberry PI?
- Replies: 8
- Views: 68771
Re: How to disable monitor power saving option in Raspberry
I had the same problem on Ubuntu. I couldn't find an adequate fix so I used Xdotool to send a benign keystroke every 5 minutes using cron.
Can't check at this moment whether Xdotool is available on Wheezy, but if so that will be a solution to both Console and X screen blanking and screensavers.
Can't check at this moment whether Xdotool is available on Wheezy, but if so that will be a solution to both Console and X screen blanking and screensavers.
- Sat Jul 13, 2013 1:25 pm
- Forum: Automation, sensing and robotics
- Topic: Motion Emails Snapshots
- Replies: 1
- Views: 804
Re: Motion Emails Snapshots
Follow this tutorial (I've made reference to it elsewhere): http://through-the-interface.typepad.com/through_the_interface/2012/09/creating-a-motion-detecting-security-cam-with-a-raspberry-pi-part-2.html For Raspbian you need change one of the steps slightly to: sudo apt-get install python-gdata
- Sat Jul 13, 2013 1:22 pm
- Forum: Automation, sensing and robotics
- Topic: How Do I Set Motion to Email Snapshots to Me
- Replies: 5
- Views: 12498
Re: How Do I Set Motion to Email Snapshots to Me
Or try this great tutorial:
http://through-the-interface.typepad.co ... art-2.html
If using Raspian you need python-gdata.
http://through-the-interface.typepad.co ... art-2.html
If using Raspian you need python-gdata.
- Sat Jul 13, 2013 1:16 pm
- Forum: Automation, sensing and robotics
- Topic: Adafruit_DHT 2302 4
- Replies: 6
- Views: 2485
Re: Adafruit_DHT 2302 4
You need to use the Python script which Adafruit publish. This scripts checks for nonsense values and only reports the good values. Because of the communication timing issues with using a RPi with these sensors, you will get a lot of garbage out. The Python script tries (and tries again) until it is...
- Sat Jul 13, 2013 1:10 pm
- Forum: Troubleshooting
- Topic: Prevent SD-Card Corruption
- Replies: 243
- Views: 268963
Re: Prevent SD-Card Corruption
I've never (9 months of owning 2 RPi's) corrupted my SD card despite frequently switching off the power without initiating a shut down command; so complacent have I become that everything functions fine afterwards that I rarely do the soft shutdown. I know it's neither elegant or good practice. I do...
- Sat Jul 13, 2013 1:03 pm
- Forum: General discussion
- Topic: Motion Package: not working properly with bash script
- Replies: 5
- Views: 1930
Re: Motion Package: not working properly with bash script
Can you take a different approach with Python and Motion thus:
http://through-the-interface.typepad.co ... art-2.html
The above worked well for me
http://through-the-interface.typepad.co ... art-2.html
The above worked well for me
- Sat Jul 13, 2013 8:33 am
- Forum: Beginners
- Topic: Execute commands via Apache/web interface
- Replies: 5
- Views: 9907
Re: Execute commands via Apache/web interface
Maybe you can now tell us about your webcam setup using Apache 
