Go to advanced search

by DougieLawson
Tue Nov 21, 2017 10:36 pm
Forum: Troubleshooting
Topic: SFTP - Not receiving files from the Pi to my computer of a specific timestamp, how come?
Replies: 1
Views: 27

Re: SFTP - Not receiving files from the Pi to my computer of a specific timestamp, how come?

Try using:
sftp some.ip.addr.here
cd /somedirectory/somesubdirectory
bin
get 2017-11*\.jpg


That's using a regex to map the filenames.
by DougieLawson
Tue Nov 21, 2017 10:25 pm
Forum: Troubleshooting
Topic: apt-udate stuck 0% [Connecting to archive.raspberrypi.org (2a00:1098:0:82:1000:13:0:9)]
Replies: 6
Views: 68

Re: apt-udate stuck 0% [Connecting to archive.raspberrypi.org (2a00:1098:0:82:1000:13:0:9)]

There's some evidence that may be the case. But who cares if you've solved the transient failure.
by DougieLawson
Tue Nov 21, 2017 7:56 pm
Forum: General discussion
Topic: Raspberry pi 2 Bluetooth
Replies: 3
Views: 82

Re: Raspberry pi 2 Bluetooth

https://redbear.cc/product/iot-phat.html
is what I use on my RPi2B1. It works with Raspbian with no special configuration needed.
by DougieLawson
Tue Nov 21, 2017 6:53 pm
Forum: General discussion
Topic: iic ports availability
Replies: 1
Views: 44

Re: iic ports availability

Only i2c1 (pin#3 & #5) is intended for end-user use.

i2c0 (pin#27 & #28) is only for HAT use.
by DougieLawson
Tue Nov 21, 2017 6:49 pm
Forum: Troubleshooting
Topic: apt-udate stuck 0% [Connecting to archive.raspberrypi.org (2a00:1098:0:82:1000:13:0:9)]
Replies: 6
Views: 68

Re: apt-udate stuck 0% [Connecting to archive.raspberrypi.org (2a00:1098:0:82:1000:13:0:9)]

Try
apt-get -o Acquire::ForceIPv4=true update
apt-get -o Acquire::ForceIPv4=true -y dist-upgrade
by DougieLawson
Tue Nov 21, 2017 1:08 pm
Forum: General discussion
Topic: Linear Actuator Recommendations
Replies: 5
Views: 142

Re: Linear Actuator Recommendations

OutoftheBOTS wrote:
Tue Nov 21, 2017 8:23 am
Your video is not viewable check that it is not set to private.
Because the URL has been mushed with copy'n'paste.
by DougieLawson
Tue Nov 21, 2017 1:06 pm
Forum: Troubleshooting
Topic: MariaDB instead MySQL on Raspberry Pi ?!?!
Replies: 6
Views: 154

Re: MariaDB instead MySQL on Raspberry Pi ?!?!

You can easily revert to the old configuration.

mysql -u root < revert.sql

With this stuff in ~/revert.sql

Code: Select all

use mysql;
update user set plugin='' where User='root';
flush privileges;
by DougieLawson
Tue Nov 21, 2017 12:55 pm
Forum: Troubleshooting
Topic: MySQL server
Replies: 1
Views: 41

Re: MySQL server

It's changed with MariaDB, it now uses normal Linux credentials for database access.

Just run a mysql command from a command line and you'll be connected to your database server.
by DougieLawson
Tue Nov 21, 2017 7:34 am
Forum: Beginners
Topic: Callback function
Replies: 2
Views: 71

Re: Callback function

That's called switch bouncing. You need to de-bounce it.

https://www.cl.cam.ac.uk/projects/raspb ... _switches/
by DougieLawson
Tue Nov 21, 2017 7:22 am
Forum: Python
Topic: how to add tag and upload to album using Facebook graph API.
Replies: 4
Views: 99

Re: how to add tag and upload to album using Facebook graph API.

shramik wrote:
Tue Nov 21, 2017 7:21 am
thank you sir,
i have a album "xyx" on my facebook page "abc". so i need to upload all photos in xyx album on my abc page.
I don't know. I don't use Faceborg (I gave up in 2013 for a happier life).
by DougieLawson
Tue Nov 21, 2017 7:21 am
Forum: General discussion
Topic: Scripts saying every night at 0:00-01:00'ish
Replies: 5
Views: 146

Re: Scripts saying every night at 0:00-01:00'ish

What's in the logs? /var/log/syslog & /var/log/messages? Put some print() or logging calls in your code so you can see what it's doing when it dies. Here's a banal example of how to write stuff from a python program to /var/log/syslog import syslog import random syslog.syslog('Processing started') e...
by DougieLawson
Tue Nov 21, 2017 7:15 am
Forum: Beginners
Topic: Do Pi model A's support internet & ethernet connection
Replies: 5
Views: 147

Re: Do Pi model A's support internet & ethernet connection

bensimmo wrote:
Mon Nov 20, 2017 9:48 pm
Don't get the A+ if this is your first Pi.
It's not very good for your use.
That confirms what I was trying to say.

You really want the ZW, 2B2 or 3B.
by DougieLawson
Tue Nov 21, 2017 7:11 am
Forum: Troubleshooting
Topic: raspberry don't want to start
Replies: 4
Views: 254

Re: raspberry don't want to start

Pull all the wires off, back to a bare board. Try booting plain Raspbian.

Touch the main chips, does anything get too hot to touch very quickly?
by DougieLawson
Tue Nov 21, 2017 7:09 am
Forum: General discussion
Topic: Couldn't get past libreelec
Replies: 1
Views: 65

Re: Couldn't get past libreelec

I'd guess that's a bug in NOOBS where it's hardware detection code doesn't recognise the CM3L.

Two options:
1. Ditch NOOBS, it buys you nothing, costs 1.3GB of space - go with plain Raspbian
2. Report the bug in NOOBS at: https://github.com/raspberrypi/noobs/issues
by DougieLawson
Tue Nov 21, 2017 6:58 am
Forum: General discussion
Topic: Scripts saying every night at 0:00-01:00'ish
Replies: 5
Views: 146

Re: Scripts saying every night at 0:00-01:00'ish

What's your timezone is it Central European Time? Because in that case 01:00 CET is 00:00 UTC.

What language are you using? Does your script have a memory leak? Are there any messages for the oom (out of memory) killer in /var/log/syslog?
by DougieLawson
Tue Nov 21, 2017 6:55 am
Forum: Python
Topic: how to add tag and upload to album using Facebook graph API.
Replies: 4
Views: 99

Re: how to add tag and upload to album using Facebook graph API.

https://developers.facebook.com/docs/graph-api/reference/user/photos#publish album_path - A path representing where the image should be uploaded. Defaults to /me/photos which creates/uses a custom album for each Facebook application. Looks like you can leave it blank to get some automagically genera...
by DougieLawson
Tue Nov 21, 2017 12:45 am
Forum: Troubleshooting
Topic: [SOLVED]Problem with python script contains mysql running in rc.local
Replies: 6
Views: 145

Re: [SOLVED]Problem with python script contains mysql running in rc.local

You DO NOT need sudo in /etc/rc.local it's running as root with UID=0 already.
by DougieLawson
Mon Nov 20, 2017 5:41 pm
Forum: Python
Topic: Piface python not working anymore
Replies: 17
Views: 340

Re: Piface python not working anymore

You need to re-install https://github.com/piface/pifacecommon as there's an update 9 days ago to make it work on new Linux kernels.
by DougieLawson
Mon Nov 20, 2017 4:15 pm
Forum: General discussion
Topic: Display port to HDMI
Replies: 2
Views: 90

Re: Display port to HDMI

Most DP to HDMI adapters assume you have a DP output and an HDMI input.

Your RPi is an HDMI output, so you need a converter, not an adapter. Best of luck finding that at an affordable price.
by DougieLawson
Mon Nov 20, 2017 4:11 pm
Forum: Advanced users
Topic: Set MYSQL DB on a separate read-write partition
Replies: 1
Views: 56

Re: Set MYSQL DB on a separate read-write partition

It's trivial.

Close MySQL (or MariaDB if you use that).
Update every occurence of "/var/lib/mysql" in ANY file in /etc/mysql with the new location.
Move every file and subdirectory from /var/lib/mysql to the new location.
Restart MySQL.
by DougieLawson
Mon Nov 20, 2017 4:08 pm
Forum: Beginners
Topic: /var/www/html permissions
Replies: 12
Views: 11326

Re: /var/www/html permissions

rpiuser2016 wrote:
Mon Nov 20, 2017 11:43 am

Code: Select all

*/5 * * * *  root /home/pi/smartdacha/localsnap.bash
Like this?
That works if you create it in /etc/cron.d
by DougieLawson
Mon Nov 20, 2017 4:01 pm
Forum: Python
Topic: scanner control
Replies: 2
Views: 69

Re: scanner control

https://pypi.python.org/pypi/python-sane/2.8.2

SANE is the standard scanner (scanner access now easy) driver.
by DougieLawson
Mon Nov 20, 2017 3:54 pm
Forum: Troubleshooting
Topic: UART sending garbage after a succesfull message
Replies: 3
Views: 131

Re: UART sending garbage after a succesfull message

Have you disabled the 115200 baud serial console?
What happens if you connect at that baud rate? Do you still get garbage?
by DougieLawson
Mon Nov 20, 2017 3:48 pm
Forum: Beginners
Topic: Do Pi model A's support internet & ethernet connection
Replies: 5
Views: 147

Re: Do Pi model A's support internet & ethernet connection

The currently available models are: £35 3B, £30 2B2, £25 B+, £20 A+, £5 Z or £10 ZW The original A is no longer available - so you must mean an A+. Why are you considering a £20 A+ it has no on-board networking and only one full-sized USB? Networking is possible with ESP8266, ENC28J60 or any USB WiF...

Go to advanced search