Go to advanced search

by DougieLawson
Thu Jul 19, 2018 11:58 pm
Forum: Troubleshooting
Topic: Raspberry Pi 3B+ overheating during zero activity or low activity (PiAware & Dump1090-fa Installed)
Replies: 20
Views: 336

Re: Raspberry Pi 3B+ overheating during zero activity or low activity (PiAware & Dump1090-fa Installed)

You do NOT need a heatsink on a 3B+. No matter what you're running, they're purely cosmetic.
by DougieLawson
Thu Jul 19, 2018 10:33 pm
Forum: Troubleshooting
Topic: DPI Difficulties after upgrading to Raspian Stretch
Replies: 2
Views: 42

Re: DPI Difficulties after upgrading to Raspian Stretch

You should lose all that overscan stuff and add

Code: Select all

dtoverlay=vga666
by DougieLawson
Thu Jul 19, 2018 9:59 pm
Forum: Troubleshooting
Topic: Raspberry Pi 3B+ overheating during zero activity or low activity (PiAware & Dump1090-fa Installed)
Replies: 20
Views: 336

Re: Raspberry Pi 3B+ overheating during zero activity or low activity (PiAware & Dump1090-fa Installed)

I don't think so, as it's constantly decoding the mode-S and ADS-B messages from any aircraft in view. It's a CPU hog. The USB RTL-SDR is a power hog (it don't half run hot).
by DougieLawson
Thu Jul 19, 2018 9:57 pm
Forum: Python
Topic: Adafruit DHT22 pass sensor value dynamically
Replies: 1
Views: 43

Re: Adafruit DHT22 pass sensor value dynamically

Sensortype needs to be a simple string: SENSORS = [DHT11, DHT22, AM2302]

You can read the code at: https://github.com/adafruit/Adafruit_Py ... /common.py
by DougieLawson
Thu Jul 19, 2018 9:27 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Setting register bit
Replies: 4
Views: 89

Re: Setting register bit

Benno, You're not going to be able to just write one bit, the smbus "write_byte_data" method expects you to write at least one byte...hence the name of the method. Furthermore, it looks like your device expects more than one byte. Yes you can. Read the register first. Use logicial OR to set a bit. ...
by DougieLawson
Thu Jul 19, 2018 6:11 pm
Forum: Beginners
Topic: Installation of Mysql connector on Pi
Replies: 11
Views: 187

Re: Installation of Mysql connector on Pi

That's an improvement, you're past the authentication error. You now need to ensure that your userid is allowed to make remote connections and can access your "temp1" database.

https://stackoverflow.com/questions/162 ... ote-access
by DougieLawson
Thu Jul 19, 2018 6:07 pm
Forum: Troubleshooting
Topic: Raspberry Pi 3B+ overheating during zero activity or low activity (PiAware & Dump1090-fa Installed)
Replies: 20
Views: 336

Re: Raspberry Pi 3B+ overheating during zero activity or low activity (PiAware & Dump1090-fa Installed)

Hello there, I purchased this Raspberry Pi 3B+ from RS Malaysia (Sent out from RS Global [UK Warehouse]). OS of course is the latest version of the Raspbian Stretch either Desktop or Lite tested. FYI, this Pi only need to run very light weight of deb package from FlightAware Dump1090-fa as well as ...
by DougieLawson
Thu Jul 19, 2018 5:56 pm
Forum: Troubleshooting
Topic: [SOLVED] - Pi3 Wifi not working (genuine hardware fault)
Replies: 34
Views: 21257

Re: Pi3 Wifi not working Possible Solution

I don't know if anyone has checked but I went into the network interfaces sudo nano /etc/network/interfaces and found that there was no configurations for any interface. I had to literally add the following : auto lo iface lo inet loopback iface eth0 inet manual auto wlan0 iface wlan0 inet dhcp wpa...
by DougieLawson
Thu Jul 19, 2018 5:50 pm
Forum: Off topic discussion
Topic: install MicroPython on ESP32 - fail to load rshell
Replies: 3
Views: 86

Re: install MicroPython on ESP32 - fail to load rshell

W. H. Heydt wrote:
Thu Jul 19, 2018 4:55 pm
Ummm.... Relevance to the Raspberry Pi?
Asymptotically close to zero.

Probably a more suitable question for https://forum.micropython.org/viewforum.php?f=16
by DougieLawson
Thu Jul 19, 2018 5:47 pm
Forum: Advanced users
Topic: New SSD
Replies: 2
Views: 54

Re: New SSD

You may want to boot a GParted Live CD on your laptop, plug in the USB drive and shrink the partitions down to the nearest MB over their used space. That will make the copy run quicker as you won't be reading/writing lots of X'00's. You could do that with a Raspberry booted from an SDCard with GPart...
by DougieLawson
Thu Jul 19, 2018 5:25 pm
Forum: General discussion
Topic: A new level of seasickness
Replies: 22
Views: 539

Re: A new level of seasickness

That stuff doesn't make the website any prettier or any easier to use, it just increases the load time for no apparent benefit (and is therefore 100% pointless). If I can adblock the Javascript I'll do that, else I'll have to look at coding a Greasemonkey/Tampermonkey script to knacker it.
by DougieLawson
Thu Jul 19, 2018 5:14 pm
Forum: Beginners
Topic: I can not start motion as daemon
Replies: 3
Views: 68

Re: I can not start motion as daemon

Since it's still using the old sysvinit stuff you need to run
sudo update-rc.d motion defaults
sudo update-rc.d motion enable

that should get it running a boot time.
by DougieLawson
Thu Jul 19, 2018 5:09 pm
Forum: Beginners
Topic: Installation of Mysql connector on Pi
Replies: 11
Views: 187

Re: Installation of Mysql connector on Pi

Try
sudo apt purge python{,3}-mysql*
sudo pip install mysql-connector-python
sudo pip3 install mysql-connector-python
# if using python3.

The old junk in DebIan Stretch doesn't support the new authentication scheme.
by DougieLawson
Thu Jul 19, 2018 5:05 pm
Forum: Other programming languages
Topic: PHP5 mysqli.so
Replies: 5
Views: 174

Re: PHP5 mysqli.so

Dougie Lawson we need to tell the Squirrelmail developers to pull their fingers out and switch from PHP5 to PHP7. No I don't, because I'm not even the slightest bit interested in running it. If you want that you've got to ask for it. Or re-write their code and give it back to them with a pull reque...
by DougieLawson
Thu Jul 19, 2018 3:57 pm
Forum: Troubleshooting
Topic: RS Raspberry PI 3B+ GPIO pins possibly defective
Replies: 5
Views: 139

Re: RS Raspberry PI 3B+ GPIO pins possibly defective

Simple precaution. Don't allow 6V (from 4*AA) anywhere near the GPIO (which are only 3.3V tolerant). Use an LM239D to control your motor. https://tutorials-raspberrypi.com/how-to-control-a-stepper-motor-with-raspberry-pi-and-l293d-uln2003a/ https://learn.adafruit.com/adafruit-raspberry-pi-lesson-9-c...
by DougieLawson
Thu Jul 19, 2018 3:53 pm
Forum: Beginners
Topic: Raspberry Pi not connecting with Brick Pi
Replies: 3
Views: 83

Re: Raspberry Pi not connecting with Brick Pi

Since all the code is available at: https://github.com/DexterInd/BrickPi you may be able to hack that and get it working on Stretch. Then send your changes back as a pull request. One thing that sticks out is the serial devices changed. So this line in BrickPi.py may need a tweak ser.port='/dev/ttyA...
by DougieLawson
Thu Jul 19, 2018 3:34 pm
Forum: Troubleshooting
Topic: MAX6675 GPIO input python issue
Replies: 4
Views: 100

Re: MAX6675 GPIO input python issue

Try this sample program #!/usr/bin/python # -*- coding: utf-8 -*- import spidev from time import sleep m6675 = spidev.SpiDev(0,1) m6675.max_speed_hz=1000000 def c_to_f(temp): f = ((temp/5)*9)+32 return f def readTempC(): m6675.writebytes([0x00,0x00]) tempRead = m6675.readbytes(2) temp = (tempRead[0]...
by DougieLawson
Thu Jul 19, 2018 2:59 pm
Forum: General discussion
Topic: A new level of seasickness
Replies: 22
Views: 539

A new level of seasickness

What's with all the wibbly wobbly things on https://raspberrypi.org? Can I have a big red switch to turn off that new CSS crap? I don't like wibbly wobbly web pages they make me feel seasick.
by DougieLawson
Thu Jul 19, 2018 2:51 pm
Forum: Beginners
Topic: Installation of Mysql connector on Pi
Replies: 11
Views: 187

Re: Installation of Mysql connector on Pi

Stop using MySQLdb switch to mysql.connector. sudo apt install python{,3}-mysql.connector https://dev.mysql.com/doc/connector-python/en/connector-python-examples.html It works much the same as MySQLdb. import mysql.connector db = mysql.connector.connect(user='vajra', password='vajra11', host='192.16...
by DougieLawson
Thu Jul 19, 2018 8:22 am
Forum: Other programming languages
Topic: PHP5 mysqli.so
Replies: 5
Views: 174

Re: PHP5 mysqli.so

On Stretch php5 is removed. You need to replace all the php pieces with php7.0 equivalents.
by DougieLawson
Thu Jul 19, 2018 7:43 am
Forum: Raspbian
Topic: systemd service won't run at startup
Replies: 4
Views: 89

Re: systemd service won't run at startup

It's the systemd way of doing plumbing. You're sending the standard output (stdout) from the raspivid process through the socket process into the standard input (stdin) of the netcat process. It's ugly but you can stop and restart the three processes without breaking things.
by DougieLawson
Wed Jul 18, 2018 11:32 pm
Forum: Raspbian
Topic: apt-get dist-upgrade vs flash with new version of OS
Replies: 6
Views: 146

Re: apt-get dist-upgrade vs flash with new version of OS

New Raspbian versions arrive about every two years. There's usually a direct upgrade path (by editing files in /etc/apt to change from Wheezy to Jessie, Jessie to Stretch (and next time from Stretch to Buster)). In between times there's regular modification levels of the existing Raspbian version, t...
by DougieLawson
Wed Jul 18, 2018 11:21 pm
Forum: General programming discussion
Topic: What Does Hiding the Details of I/O in Library Calls Teach?
Replies: 58
Views: 1083

Re: What Does Hiding the Details of I/O in Library Calls Teach?

What I see is loads of software "engineers" (if you can call programming by trial and error engineering), but nobody who knows how to make anything. I would say that's a problem. It depends how you define "software engineer" and how many years of experience are needed to go with that definition. I ...
by DougieLawson
Wed Jul 18, 2018 9:00 pm
Forum: General programming discussion
Topic: What Does Hiding the Details of I/O in Library Calls Teach?
Replies: 58
Views: 1083

Re: What Does Hiding the Details of I/O in Library Calls Teach?

Of course the second one chooses Python to tackle a problem one has given up all hope of small size and performance. You can say that again. I rewrote a python program (it reads a BMP180 using the /sys interface and writes SQLite3 every three minutes) in C++ and the working set of the program goes ...

Go to advanced search