Go to advanced search

by DougieLawson
Sat May 26, 2018 2:37 pm
Forum: General programming discussion
Topic: Mosquito Error:Address already in use
Replies: 12
Views: 705

Re: Mosquito Error:Address already in use

Remove

Code: Select all

listener 1883
from your config files. It's a feechur of 1.5 that crept in when they built that buggy version.
by DougieLawson
Sat May 26, 2018 2:35 pm
Forum: Troubleshooting
Topic: Stuck on the Rainbow Screen - with IOT only
Replies: 3
Views: 116

Re: Stuck on the Rainbow Screen - with IOT only

If it's a Raspberry Pi 3B+ and Win10IoT then you have an OS that is not compatible with your hardware. You have to wait until Microsoft release the next version (or see if there's a 3B+ ready beta).
by DougieLawson
Fri May 25, 2018 9:10 pm
Forum: Python
Topic: Merging two python scripts into one
Replies: 18
Views: 287

Re: Merging two python scripts into one

Roger that. Thanks for clearing that up. Giving me this now tho end = time.time + (light_on_delay * 60) TypeError: unsupported operand type(s) for +: 'builtin_function_or_method' and 'int' The maths you're doing gives you a time object (when you fix your syntax problems). #!/usr/bin/python3 import ...
by DougieLawson
Fri May 25, 2018 8:18 pm
Forum: Python
Topic: 7 segment 4 digit display - python code
Replies: 6
Views: 111

Re: 7 segment 4 digit display - python code

rishitghosh wrote:
Fri May 25, 2018 4:09 pm
The link which you gave has a raspberry pi which has 26 pins, but my raspberry pi 3 has 40 pins . So , can you provide me with the pin mapping for pi 2(26 pins ) to pi 3 ?
To add to Dirk's answer.

https://pinout.xyz
by DougieLawson
Fri May 25, 2018 3:52 pm
Forum: Off topic discussion
Topic: What people want from a Pi 4
Replies: 6
Views: 228

Re: What people want from a Pi 4

I want ponies & unicorns. They must be pink ponies. I also want 100GB of RAM, terrabyte ethernet, WiFi that uses a radar transmitter with 100Km range. I also want folks to stop posting threads like this on the forum, because they're tedious in the extreme and they're an insult to the very clever fol...
by DougieLawson
Fri May 25, 2018 1:40 pm
Forum: Networking and servers
Topic: Migrating from IPv4 server to IPv6
Replies: 5
Views: 162

Re: Migrating from IPv4 server to IPv6

Use dsnmasq rather than isc-dhcp-server if possible as it's an order of magnitude easier.

The 2A02::/16 block is globally unique
The FD8A::/8 block is unique local https://en.wikipedia.org/wiki/Unique_local_address
by DougieLawson
Fri May 25, 2018 9:34 am
Forum: Beginners
Topic: Raspberry pi 3 b+ with powerbank
Replies: 16
Views: 269

Re: Raspberry pi 3 b+ with powerbank

It'll be less than four hours because you can't drain a powerbank flat, it's not 100% efficient and the voltage will drop below 5V as the cells are depleted. But your basic theory is correct.
by DougieLawson
Fri May 25, 2018 9:32 am
Forum: Troubleshooting
Topic: i2c Problem
Replies: 3
Views: 97

Re: i2c Problem

Have you got Raspbian Stretch with the dtoverlay line in /boot/config.txt?
by DougieLawson
Fri May 25, 2018 9:22 am
Forum: General discussion
Topic: Release: Multiple 64Bit OS 3bplus desktop&lite
Replies: 35
Views: 1451

Re: Release: Multiple 64Bit OS 3bplus desktop&lite

How about: "Raspbian/XA" - that's a homage to MVS/XA - Multiple Virtual Storage / Extended Architecture (from 1981 onwards) which was IBM's switch from 24-bit mainframes to 31-bit mainframes (they used to 32nd bit as a 24/31 bit mode indicator). "Raspbian64" works because it's not quite Raspbian.
by DougieLawson
Fri May 25, 2018 9:10 am
Forum: Beginners
Topic: Raspberry pi 3 b+ with powerbank
Replies: 16
Views: 269

Re: Raspberry pi 3 b+ with powerbank

The variable you're missing is the processor load. If the processor is running 20% busy it uses less power than if it's running flat out at 100% (note: I'm carefully ignoring things like HDMI, ethernet, WiFi and USB). That makes the maths just about as impossible as Slatibartfast's "Bistro Math". It...
by DougieLawson
Fri May 25, 2018 8:49 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Can I "passthrough" a keyboard (act as keyboard) on an Rpi
Replies: 4
Views: 157

Re: Can I "passthrough" a keyboard (act as keyboard) on an Rpi

Not possible. The USB ports on a RPi are all host ports. To be a HID device you need a USB slave.

Use ssh with port forwarding.
by DougieLawson
Thu May 24, 2018 7:50 pm
Forum: General discussion
Topic: Why does the RPF care about how many desktops I have ?
Replies: 12
Views: 652

Re: Why does the RPF care about how many desktops I have ?

As I've said before no other distribution takes this approach. PeterO Debian has the "the configuration changed, would you like to keep your version or install then maintainers update". That's why the filesystem gets littered with *dpkg* configuration files. This arbitrary overwrite of "my" configu...
by DougieLawson
Thu May 24, 2018 7:39 pm
Forum: Add-ons
Topic: Outlier Temperature readings
Replies: 2
Views: 71

Re: Outlier Temperature readings

97°F (36.1°C) is not an outlier - it's normal.
by DougieLawson
Thu May 24, 2018 5:39 pm
Forum: Beginners
Topic: Want to know what does w1-gpio and w1-therm does
Replies: 1
Views: 48

Re: Want to know what does w1-gpio and w1-therm does

The modprobe for those two modules was the old Jessie way of getting 1-wire sensors running.

The config.txt way with the overlay is the modern Stretch way. The old way is deprecated.

Both enable the same thing - they let you read 1-wire sensors in userspace.
by DougieLawson
Wed May 23, 2018 10:33 pm
Forum: Beginners
Topic: Mounting SMB/Plex
Replies: 14
Views: 205

Re: Mounting SMB/Plex

Add a line in /etc/fstab for the filesystem you need mounted at boot.
by DougieLawson
Wed May 23, 2018 9:06 pm
Forum: Troubleshooting
Topic: i2c Problem
Replies: 3
Views: 97

Re: i2c Problem

Add dtoverlay=i2c-sensor,bmp180 to /boot/config.txt and reboot. That gives you the BMP180 data on two virtual filesystems (/sys/bus/iio/devices/iio:device*/in_pressure_input & /sys/bus/iio/devices/iio:device*/in_temp_input) that are easy to read with a simple python program. #!/usr/bin/python class ...
by DougieLawson
Wed May 23, 2018 7:53 pm
Forum: Troubleshooting
Topic: RPi won't boot after first shutdown
Replies: 7
Views: 878

Re: RPi won't boot after first shutdown

The first thing to try to get over the "won't boot after shutdown" bug is sudo rpi-update; sudo poweroff pull power and reboot. That gets the 4.14.42-v7+ kernel with new bootcode that solves that boot problem. It's been out for a couple of days and is running on 13 out of 15 of my raspberries.
by DougieLawson
Wed May 23, 2018 7:41 pm
Forum: Networking and servers
Topic: Migrating from IPv4 server to IPv6
Replies: 5
Views: 162

Re: Migrating from IPv4 server to IPv6

My IPv6 is a 6to4 tunnel (as Plusnet don't do native IPv6, unlike BT & Sky who do). I use my globally unique 6to4 address which is a /64 prefix. 6to4 is quite interesting as it's 2002:ipip:ipip:nnnn where ipip:ipip is your 32-bit IPv4 address in hex and nnnn is a randomly assigned 16-bit subnet. I'm...
by DougieLawson
Wed May 23, 2018 6:48 pm
Forum: Python
Topic: Can I use MySQL as a way to store and edit python variables
Replies: 4
Views: 128

Re: Can I use MySQL as a way to store and edit python variables

I thought that using a cursor and "SELECT * FROM" would recheck the database each time, but have just found out that it doesn't actually reload the data from the row each cycle (unless the connection is closed or something like a 'commit' order is sent) . The only way I've found at the moment is to...
by DougieLawson
Tue May 22, 2018 9:46 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: "sudo i2cdetect -y 1" shows full table
Replies: 2
Views: 141

Re: "sudo i2cdetect -y 1" shows full table

That means your SDA line is connected to GND. It's either going to be a bad cable or a solder bridge between SDA & GND
by DougieLawson
Tue May 22, 2018 7:02 pm
Forum: Networking and servers
Topic: Migrating from IPv4 server to IPv6
Replies: 5
Views: 162

Re: Migrating from IPv4 server to IPv6

Enable radvd or dhcpv6 on your router and your Raspberry will get a IPv6 address. It's got some already that you'll see with an ip -6 addr command. pi@hitchhiker:~ $ ip -6 addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 state UNKNOWN qlen 1000 inet6 ::1/128 scope host valid_lft forever preferred_lft fo...
by DougieLawson
Tue May 22, 2018 6:45 pm
Forum: Beginners
Topic: raspberry pi jessie Mosquitto configuration
Replies: 7
Views: 152

Re: raspberry pi jessie Mosquitto configuration

Remove

Code: Select all

listener 1883
from your /etc/mosquitto/*.conf or /etc/mosquitto/conf.d/*.conf files and that solves the problem. It's a "feechur" of 1.5 that was introduced this week.
by DougieLawson
Mon May 21, 2018 8:33 pm
Forum: General programming discussion
Topic: Forcing GPIO2 state after shutdown
Replies: 8
Views: 197

Re: Forcing GPIO2 state after shutdown

I don't know because I've never had a desire to test gpio-poweroff (because all 15 of my raspberries run 24/365.25). I was just giving general advice to start from pin#29 and upwards as those pins are less likely to conflict with other pin uses.

Go to advanced search