Go to advanced search

by DougieLawson
Sat Sep 21, 2019 6:34 pm
Forum: Device Tree
Topic: dtoverlay disable from command line
Replies: 5
Views: 82

Re: dtoverlay disable from command line

PhilE wrote:
Sat Sep 21, 2019 1:46 pm
Either my eyesight is failing or the after looks a lot like the before - should there have been a # comment character at the start of the edited version?
The postie delivered my new glasses this afternoon.
by DougieLawson
Sat Sep 21, 2019 10:15 am
Forum: Device Tree
Topic: dtoverlay disable from command line
Replies: 5
Views: 82

Re: dtoverlay disable from command line

You can't do that.

The way to disable it is edit /boot/config.txt and change

Code: Select all

dtoverlay=mcp23017
to

Code: Select all

#dtoverlay=mcp23017
then reboot. To re-enable it reverse that change.
by DougieLawson
Sat Sep 21, 2019 9:28 am
Forum: General discussion
Topic: Looking for a good open source data dashboard project.
Replies: 3
Views: 86

Re: Looking for a good open source data dashboard project.

You'll need to use ODBC or JDBC to access MSSQL from a Linux system.
by DougieLawson
Sat Sep 21, 2019 7:29 am
Forum: Python
Topic: USB Writing Loop Problem
Replies: 4
Views: 101

Re: USB Writing Loop Problem

There's an eject icon on the RPi desktop taskbar.

Or sudo apt install eject gets a command line program to eject USB devices.
by DougieLawson
Fri Sep 20, 2019 8:57 pm
Forum: Raspbian
Topic: Raspbian Buster to Bullseye?
Replies: 5
Views: 196

Re: Raspbian Buster to Bullseye?

WolfRamiO wrote:
Thu Sep 19, 2019 6:54 pm
its is safe to use the repos of Bullseye on a Pi 4 with Buster??? i always want the latest software... can i just upgrade the distro or i will break it? Thanks
I think you're about eighteen months too early. Bullseye isn't due to emerge as a stable version (forgive the pun) until 2021.
by DougieLawson
Fri Sep 20, 2019 6:31 pm
Forum: General discussion
Topic: Strange - MQTT Offline
Replies: 5
Views: 181

Re: Strange - MQTT Offline

ERRNO110 means connection refused. The cause of that are 1. Wrong IP address 2. Right IP address wrong port 3. Right IP address right port, listener not listening Check that with sudo netstat -tlnpu dougie@apollo:~$ sudo netstat -tlnpu | grep mosq tcp 0 0 0.0.0.0:1883 0.0.0.0:* LISTEN 552/mosquitto ...
by DougieLawson
Fri Sep 20, 2019 5:30 pm
Forum: General discussion
Topic: VNC problem after update
Replies: 5
Views: 153

Re: VNC problem after update

Ti85 wrote:
Thu Sep 19, 2019 6:00 pm
yes...it's Jessie, but I'm not sure that is the problem.
Jessie is two versions ago. It's been end of life for FOUR YEARS.

Create a new SDCard with Raspbian Buster and try again.
by DougieLawson
Fri Sep 20, 2019 2:15 pm
Forum: Camera board
Topic: Camera controlled automatic PT approach for a landing capturing
Replies: 2
Views: 95

Re: Camera controlled automatic PT approach for a landing capturing

Get yourself a RTL-SDR USB radio and a copy of PiAware. From that you can get JSON for every aircraft in your local area - with speed, heading, altitude and lat/lon.
by DougieLawson
Fri Sep 20, 2019 1:33 pm
Forum: Python
Topic: Pynmea2 output Decimal Degrees. (Solved)
Replies: 20
Views: 207

Re: Pynmea2 output Decimal Degrees. (Solved)

def parseGPS(myStr): global Latitude, Longitude if myStr.find('GGA') > 0: msg = pynmea2.parse(myStr) Alt = (msg.altitude_units) time.sleep(15) if Alt == 'M': I don't know what you're trying to achieve with that prolog code in your parseGPS() function. If you want to be sure you've got a good fix yo...
by DougieLawson
Thu Sep 19, 2019 1:51 pm
Forum: Python
Topic: Pynmea2 output Decimal Degrees. (Solved)
Replies: 20
Views: 207

Re: Pynmea2 output Decimal Degrees.

What happens if you simply wrap a

Code: Select all

myString = STR(myFloating)
function round your float variable?
by DougieLawson
Thu Sep 19, 2019 1:24 pm
Forum: Python
Topic: Pynmea2 output Decimal Degrees. (Solved)
Replies: 20
Views: 207

Re: Pynmea2 output Decimal Degrees.

If you convert everthing to a string then concatenation is trivial.

That gets easier if you convert your float to a decimal
https://docs.python.org/3/library/decimal.html
by DougieLawson
Thu Sep 19, 2019 12:42 pm
Forum: Advanced users
Topic: Raspberry Pi 4 WiFi connection on Enterprise network
Replies: 6
Views: 178

Re: Raspberry Pi 4 WiFi connection on Enterprise network

Call your network helpdesk. Tell them you're having a problem with getting "a small Linux machine" connected to their network. The folks in the helpdesk are paid to know the rules, paid to know their network infrastructure and paid to help folks get connected.
by DougieLawson
Thu Sep 19, 2019 12:18 pm
Forum: Python
Topic: Pynmea2 output Decimal Degrees. (Solved)
Replies: 20
Views: 207

Re: Pynmea2 output Decimal Degrees.

I usually overwrite the last three digits with zero. That moves my position about 500m away. Or switch the S to N and E to W to arrive in your antipode (somewhere in the North Atlantic). $GPGLL,3805.70???,S,14704.27???,E,115120.00,A,A*?? $GPGGA,115121.00,3805.70???,S,14704.27???,E,1,06,1.34,2.8,M,0....
by DougieLawson
Thu Sep 19, 2019 11:43 am
Forum: Python
Topic: Pynmea2 output Decimal Degrees. (Solved)
Replies: 20
Views: 207

Re: Pynmea2 output Decimal Degrees.

If it's ddmm.mmmmss you can split it with maths You can get the degrees by int(dms/100) subtract (degrees * 100) and you get mm.mmmmss multiply mm.mmmmss by 10000 and the integer portion is minutes and the decimal is seconds. What's the raw NMEA sentence you're getting? Can you get that and parse it...
by DougieLawson
Thu Sep 19, 2019 11:23 am
Forum: Python
Topic: Pynmea2 output Decimal Degrees. (Solved)
Replies: 20
Views: 207

Re: Pynmea2 output Decimal Degrees.

It's not hard to do in a simple python function

Code: Select all

def decTodms(deg):
     d = int(deg)
     md = abs(deg - d) * 60
     m = int(md)
     s = (md - m) * 60
     return [d, m, s]
Or the other way round

Code: Select all

def dmsTodec(d, m, s):
    decd = d + float(m)/60 + float(s)/3600
    return decd
by DougieLawson
Thu Sep 19, 2019 10:34 am
Forum: Other
Topic: [ubuntu] Getting CPU tempature on Ubuntu
Replies: 8
Views: 182

Re: [ubuntu] Getting CPU tempature on Ubuntu

Take the prime number divide by 1000, multiply by 1.8 and add 32. You'l then get the temperature on the scale of that really bad physicist Mr. F. I'm surprised nobody has suggested getting the userland (https://GitHub.com/raspberrypi/userland) pieces installed on Ubuntu. To add some of the missing p...
by DougieLawson
Wed Sep 18, 2019 11:00 pm
Forum: Compute Module
Topic: Compute Module 4
Replies: 8
Views: 441

Re: Compute Module 4

Note that the CM3+ is considerably more powerful than the original CM. That may well be enough until a CM4 comes out (it's some way away) . Oooh, James has made an inadvertant product announcement. I know someone who got sued by IBM Corp. for pre-announcing IMS V1.3 (which included a feature in the...
by DougieLawson
Wed Sep 18, 2019 5:32 pm
Forum: Advanced users
Topic: Moving Linux kernel to 4.19
Replies: 261
Views: 79387

Re: Moving Linux kernel to 4.19

Does the problem persist if you run sudo rpi-update && sudo reboot?

If it does open an issue at https://GitHub.com/raspberrypi/linux with details of how to recreate it.
by DougieLawson
Wed Sep 18, 2019 7:43 am
Forum: General discussion
Topic: latest rpi-update 2.5ghz with 4B 4g
Replies: 26
Views: 1610

Re: latest rpi-update 2.5ghz with 4B 4g

scaramonga wrote:
Wed Sep 18, 2019 2:20 am
pi-tastic wrote:
Mon Sep 16, 2019 7:05 pm
facebook pops up alot faster now scroll seems smoother.

I'd be 'under-clocking' it then :lol:
I'd be installing PiHole and blocking all of their domains with it.
by DougieLawson
Wed Sep 18, 2019 7:40 am
Forum: Media centres
Topic: What would be the right OS for streaming with ffmpeg on a RPi4b?
Replies: 2
Views: 127

Re: What would be the right OS for streaming with ffmpeg on a RPi4b?

If you have to ask the general answer is usually Raspbian. Or for a media centre with Kodi it's always LibreElec.
by DougieLawson
Wed Sep 18, 2019 7:38 am
Forum: General discussion
Topic: stuck in wifi - Debian wheezy
Replies: 11
Views: 348

Re: stuck in wifi - Debian wheezy

You are running something that's SIX YEARS out of date and 100% unsupported and unsupportable.

Upgrade to Raspbian Buster and folks may be willing to help. You won't find anyone else running Debian Wheezy (or Raspbian Wheezy) on here.
by DougieLawson
Tue Sep 17, 2019 9:19 pm
Forum: Advanced users
Topic: GUI shutdown options
Replies: 2
Views: 120

Re: GUI shutdown options

I've found a solution that disables the [SHUTDOWN] button on the lightdm greeter screen and forces the menu->shutdown->reboot to require authorisation. Create /etc/polkit-1/localauthority/50-local.d/restrict-login-powermgmt.pkla (needs sudo nano to do that). [Disable lightdm PowerMgmt] Identity=unix...
by DougieLawson
Tue Sep 17, 2019 8:53 pm
Forum: Beginners
Topic: Starting with the pi
Replies: 3
Views: 75

Re: Starting with the pi

This https://www.raspberrypi.org/magpi/issues/85/ is probably a good starting point for you.
by DougieLawson
Tue Sep 17, 2019 4:39 pm
Forum: Troubleshooting
Topic: Clock?
Replies: 13
Views: 436

Re: Clock?

It's highly likely that the first attempt for timesyncd to get the time could fail. I've not looked at the dependencies as I've disabled it in favour of good old NTP on all of my systems.

Go to advanced search