Go to advanced search

by DougieLawson
Fri Sep 20, 2019 8:57 pm
Forum: Raspbian
Topic: Raspbian Buster to Bullseye?
Replies: 5
Views: 177

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: 169

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 [email protected]:~$ 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: 149

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: 1
Views: 65

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: 199

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: 199

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: 199

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: 163

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: 199

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: 199

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: 199

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: 179

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: 426

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: 79286

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: 1566

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: 116

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: 342

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: 119

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: 74

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: 431

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.
by DougieLawson
Tue Sep 17, 2019 7:19 am
Forum: General discussion
Topic: Damaged pi
Replies: 13
Views: 1310

Re: Damaged pi

It can't be fixed.
by DougieLawson
Mon Sep 16, 2019 4:03 pm
Forum: Raspbian
Topic: Linux Kernel 5.3
Replies: 1
Views: 230

Re: Linux Kernel 5.3

So, it's a good job the Raspberry Pi Foundation folks are sticking with V4.19 for regular users and their experimental 64-bit kernel.

I suspect it will be 2020 before we see a move to the V5 kernel.
by DougieLawson
Mon Sep 16, 2019 3:59 pm
Forum: Automation, sensing and robotics
Topic: Monitoring and Controls
Replies: 1
Views: 63

Re: Monitoring and Controls

Look at MQTT in the guise of Mosquitto or RabbitMQ or HiveMQ. That's the protocol for command and control. Run the broker on your RPi, run Nick O'Lleary's pubsubclient library on your Arduino or ESP8266/ESP01/ESP12 to connect to your MQTT broker. You can use python3 with the paho.mqtt library to wri...
by DougieLawson
Mon Sep 16, 2019 3:50 pm
Forum: Advanced users
Topic: Switch two kernel image in raspberry pi using UBoot
Replies: 11
Views: 249

Re: Switch two kernel image in raspberry pi using UBoot

You're more likely to get an answer by posting your question to the u-boot mailing list.

https://www.denx.de/wiki/U-Boot has the details and archive for that mailing list.

Go to advanced search