Go to advanced search

by chorlton2080
Sat Aug 02, 2014 2:07 pm
Forum: Python
Topic: Run command embedded in GMail mail
Replies: 7
Views: 2283

Run command embedded in GMail mail

Is anyone able to suggest a script which will check for emails from a nominated GMail account and parse a command contained within?

Commands will be limited to 'take picture and email back' and 'restart pi'.

Scratching head all day on this!

Thank you
by chorlton2080
Fri Aug 01, 2014 10:20 am
Forum: Troubleshooting
Topic: B+ External Hard Drives
Replies: 10
Views: 16375

Re: B+ External Hard Drives

Something else to consider. Do you not need to do the following to enable maximum power to the B+ USB?

Code: Select all

sudo nano /boot/config.txt
.....
safe_mode_gpio=4
by chorlton2080
Wed Jul 30, 2014 2:40 pm
Forum: General discussion
Topic: RasPi power usage measurements ALL Models
Replies: 156
Views: 295954

Re: RasPi power usage measurements ALL Models

Interesting thread. What is the most achievable configuration to minimise power consumption whilst still have the GPIO and SD card available for data logging? I note the methods for disabling the USB and Ethernet chip, can the video/audio subsystem be similarly disabled with tangible benefits on pow...
by chorlton2080
Sun Jun 08, 2014 9:38 am
Forum: Python
Topic: Data insertion point using GSpread
Replies: 0
Views: 627

Data insertion point using GSpread

Hi Folks I have been using the excellent GSpread for some time now to append data to a Google Sheet. However, now that a large amount of data has been collected it has become unwieldy to use from within Google apps; to access the last data that is appended can sometimes take minutes as the app loads...
by chorlton2080
Thu Feb 27, 2014 12:04 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: USB to printer without cups
Replies: 3
Views: 3817

Re: USB to printer without cups

Can someone provide usage guidance on this to provide a route to print from a Win7 computer using the Raspberry as the interface to the printer? Clearly it must be possible since my Asus router, running linux, is able to print to my Canon LBP2900i using LPD techniques (but has USB security issues wh...
by chorlton2080
Mon Feb 03, 2014 6:27 pm
Forum: Other programming languages
Topic: Basic thumbnail gallery view
Replies: 1
Views: 1122

Basic thumbnail gallery view

Hi all Does anyone have a very quick implementation of a jpg gallery web page for all images within a given directory? I'm guessing that a periodic cron job to run a Python script (using PIL perhaps) to create the thumbnails may work, but I've no idea on the next steps in getting the resultant batch...
by chorlton2080
Sun Feb 02, 2014 12:18 pm
Forum: Raspberry Pi OS
Topic: Use of hostname in directing connections
Replies: 2
Views: 749

Use of hostname in directing connections

Hi folks I've quickly realised that the effort I went to to provide static IPs for my RPi's was a little over-the-top. I can SSH, connect via HTTP and complete other command line tasks (such as rsync) using the hostnames I have uniquely applied. However, I'm a little uneasy as I'm not sure why this ...
by chorlton2080
Mon Jan 27, 2014 10:04 am
Forum: Raspberry Pi OS
Topic: Unable to connect via wireless n
Replies: 3
Views: 1583

Re: Unable to connect via wireless n

Hi

Yes. Other devices connect to 5G. The router confirms the Pi is connected as 802.11g.

The improved range of n is likely more due to less crowding on 5GHz than compared to 2.4GHz and better channel control.
by chorlton2080
Sun Jan 26, 2014 12:33 pm
Forum: Raspberry Pi OS
Topic: Unable to connect via wireless n
Replies: 3
Views: 1583

Unable to connect via wireless n

Hi folks I've been using my RPi for a while now with an Edimax EW-7811UN nano adapter. The adapter works fine, if slowly, on 802.11g (2.4GHz) mode, but it is a 802.11n capable adapter. Running "iwconfig" confirms that Wheezy recognises the 802.11n capabilities, but insists on connecting to...
by chorlton2080
Sun Jan 19, 2014 11:40 pm
Forum: Raspberry Pi OS
Topic: Controlling access to wpa_supplicant
Replies: 1
Views: 517

Controlling access to wpa_supplicant

Hi folks I'm somewhat concerned that wpa_supplicant stores WPA2 passphrases in plain text. Whilst I can prevent users logged onto the Pi from accessing the file unless they are root (using chmod 0600), a theoretical possibility but an unlikely need on the Pi, I am concerned that the file is easily r...
by chorlton2080
Thu Jan 09, 2014 6:35 pm
Forum: Advanced users
Topic: SD Card Backup and Custom Image...
Replies: 48
Views: 47038

Re: SD Card Backup and Custom Image...

There is no restore. It generates a usable and bootable SD Card
by chorlton2080
Fri Jan 03, 2014 11:54 am
Forum: Graphics, sound and multimedia
Topic: Raspberry Pi - OLED Displays
Replies: 2
Views: 3500

Re: Raspberry Pi - OLED Displays

Superb tutorial. I've just placed an order.

Do you know (or can you measure) the power consumption when displaying full screen text or graphics?
by chorlton2080
Thu Jan 02, 2014 12:24 am
Forum: Advanced users
Topic: SD Card Backup and Custom Image...
Replies: 48
Views: 47038

Re: SD Card Backup and Custom Image...

If you have a USB card reader to plug your SD cards into, you can try a script I wrote that does backups entirely on the Pi. It backs up a booted Pi SD card to a card plugged into a Pi USB port. I use it to maintain backups of several SD cards I have and the backup SD cards can be a different size ...
by chorlton2080
Wed Jan 01, 2014 11:31 pm
Forum: Beginners
Topic: Windows 7, win32diskimager not working!
Replies: 64
Views: 126690

Re: Windows 7, win32diskimager not working!

As the current maintainer of Win32 Disk Imager (aka Win32 Image Writer), I am surprised to find people reporting issues with this program anywhere but in the program's bug tracking system (currently Launchpad.net but moving to SourceForge by the end of the year). I am currently looking into reports...
by chorlton2080
Wed Jan 01, 2014 10:39 am
Forum: HATs and other add-ons
Topic: 2.8" TFT + Touch Shield Board v1 a/b/c
Replies: 383
Views: 234487

Re: 2.8" TFT + Touch Shield Board

You could use omxplayer. If GUI customisation was important then write a Python script to wrap around it and make an OS call to the player.

There's a tutorial for Pandora on learn.adafruit.com, but the service no longer works in the UK
by chorlton2080
Fri Dec 27, 2013 6:34 pm
Forum: HATs and other add-ons
Topic: 2.8" TFT + Touch Shield Board v1 a/b/c
Replies: 383
Views: 234487

Re: 2.8" TFT + Touch Shield Board

For those of us who really want this, but are equally wary about installing patched kernels, can anyone offer any reassurances that everything is benign?
by chorlton2080
Fri Dec 27, 2013 12:14 am
Forum: Raspberry Pi OS
Topic: Update-rc won't remove links to user daemon
Replies: 2
Views: 1818

Re: Update-rc won't remove links to user daemon

Hi Richard Given you've been using UNIX since '85 (I was at my C64 at that time having persuaded my parents of its 'educational value', which really meant playing Commodore Soccer) you clearly know what you're doing - but I fail to grasp how "exit 0" gets me to a solution with this. You'll...
by chorlton2080
Thu Dec 26, 2013 10:53 pm
Forum: Raspberry Pi OS
Topic: Update-rc won't remove links to user daemon
Replies: 2
Views: 1818

Update-rc won't remove links to user daemon

I have created a daemon using the Debian init.d skeleton which successfully runs as a service. I've also used: sudo update-rc.d /etc/init.d/pirservice.sh defaults to get the daemon running at boot and closing nicely when issuing a shutdown command.However, I have since tried to remove the start at b...
by chorlton2080
Mon Dec 16, 2013 10:47 pm
Forum: Camera board
Topic: Python web interface for raspistill
Replies: 21
Views: 8525

Re: Python web interface for raspistill

I had been wondering why following a recent update my motion detection routine no longer functioned: I had set 't 0' in the parameters for raspistill. If I hadn't stumbled across the above post I'm sure my Raspberry would be sharing a tip with a hard drive full of bitcoins. How could I have realised...
by chorlton2080
Mon Dec 16, 2013 12:31 am
Forum: Python
Topic: Python error logs
Replies: 3
Views: 5216

Re: Python error logs

Excellent! Haven't tried it but I've seen something similar before with bash so I'm sure it'll work.

The problem with being new to Linux is that there is so much to remember - and forget!
by chorlton2080
Sun Dec 15, 2013 9:41 pm
Forum: Python
Topic: Python error logs
Replies: 3
Views: 5216

Python error logs

Hello folks I run my Raspberries headless and my SSH sessions are usually brief. Too brief to encounter the intermittent errors that seem to stop my Python scripts: I'm therefore in the dark as to the root causes sometimes. I think, though I'm not sure, it may be due to file access conflicts. The sc...
by chorlton2080
Sun Dec 01, 2013 8:04 pm
Forum: Python
Topic: Issue commands via email
Replies: 10
Views: 2448

Re: Issue commands via email

I agree. But I struggled for hours to get key authentication to work: and it doesn't exclude a client trying to log in under password based authentication as a fallback it seems.

How high would you need to set the SSH port to have a good chance of it not normally being discovered by port scanning?
by chorlton2080
Sun Dec 01, 2013 4:43 pm
Forum: Python
Topic: Issue commands via email
Replies: 10
Views: 2448

Re: Issue commands via email

Ok. Perhaps I need to use the feedparser library. I was searching for the answer using the SMTP lib.

Searching for the former does yield a few examples.
by chorlton2080
Sun Dec 01, 2013 4:38 pm
Forum: Python
Topic: Issue commands via email
Replies: 10
Views: 2448

Re: Issue commands via email

Any idea where?
by chorlton2080
Sun Dec 01, 2013 4:21 pm
Forum: Python
Topic: Issue commands via email
Replies: 10
Views: 2448

Re: Issue commands via email

Thanks for the comprehensive reply. I of course realise that this is not Pi specific and is something one could accomplish with python on any OS. However, I did search around prior on Ubuntu and general linux forums but could not find anything appropriate. Perhaps it is the way I am searching. Altho...

Go to advanced search