Go to advanced search

by DougieLawson
Sun Aug 19, 2018 8:16 am
Forum: Troubleshooting
Topic: Raspberry PI loads in emergency mode - always
Replies: 6
Views: 98

Re: Raspberry PI loads in emergency mode - always

Do you have a good enough power supply? Not a phone charger.
by DougieLawson
Sun Aug 19, 2018 12:14 am
Forum: Add-ons
Topic: ETA for Official POE Hat for 3B+
Replies: 50
Views: 1080

Re: ETA for Official POE Hat for 3B+

Have you run sudo apt update && sudo apt -y dist-upgrade to ensure you have the latest stable kernel and bootcode (which is required for the POE HAT)?
by DougieLawson
Sun Aug 19, 2018 12:02 am
Forum: Python
Topic: noobie needs help getting data from XML webpage
Replies: 4
Views: 70

Re: noobie needs help getting data from XML webpage

I hacked this python3 program together to parse some of the XML from the Aviation Weather Service (I've downloaded a sample XML file from EGLL (London Heathrow)). #!/usr/bin/python3 from bs4 import BeautifulSoup infile = open('egll.xml', 'r') # CHANGE ME to fetch the current URL contents = infile.re...
by DougieLawson
Sat Aug 18, 2018 9:59 pm
Forum: Troubleshooting
Topic: isc-dhcp-server doesn't start unless ethernet connected
Replies: 4
Views: 57

Re: isc-dhcp-server doesn't start unless ethernet connected

If you're not prepared to run a supported version of Raspbian then I'm out.
by DougieLawson
Sat Aug 18, 2018 9:55 pm
Forum: Troubleshooting
Topic: isc-dhcp-server doesn't start unless ethernet connected
Replies: 4
Views: 57

Re: isc-dhcp-server doesn't start unless ethernet connected

Start by upgrading to Raspbian Stretch.
by DougieLawson
Sat Aug 18, 2018 5:48 pm
Forum: General discussion
Topic: Ip resolves to local host
Replies: 5
Views: 117

Re: Ip resolves to local host

https://en.wikipedia.org/wiki/Private_network
https://en.wikipedia.org/wiki/Link-local_address

Your public address won't be in those address ranges. If your Wordpress site doesn't use a public internet address it won't work when a remote visitor tries to access it.
by DougieLawson
Sat Aug 18, 2018 3:14 pm
Forum: General discussion
Topic: Ip resolves to local host
Replies: 5
Views: 117

Re: Ip resolves to local host

You can't use 10.xxx.xxx.xxx/8 or 172.[16-31].xxx.xxx/16, 192.168.xxx.xxx/24 or 169.254.xxx.xxx/16 addresses on the WAN side of your network. Those four blocks are local only and not routed.
by DougieLawson
Sat Aug 18, 2018 12:17 pm
Forum: Français
Topic: Je n'arrive pas à extraire un fichier rar
Replies: 8
Views: 99

Re: Je n'arrive pas à extraire un fichier rar

Où se trouve le fichier?

Vous devriez voir quelque chose comme

Code: Select all

[email protected]:~$ file test.rar
test.rar: RAR archive data, v4, os: Win32
[email protected]:~$
by DougieLawson
Sat Aug 18, 2018 11:42 am
Forum: Français
Topic: Je n'arrive pas à extraire un fichier rar
Replies: 8
Views: 99

Re: Je n'arrive pas à extraire un fichier rar

Qu'est-ce que vous obtenez d'une commande file test.rar?
by DougieLawson
Sat Aug 18, 2018 10:59 am
Forum: Français
Topic: Je n'arrive pas à extraire un fichier rar
Replies: 8
Views: 99

Re: Je n'arrive pas à extraire un fichier rar

sudo apt install p7zip

7z fonctionne avec tout format de fichier: gz, bz2, rar, zip, etc.
by DougieLawson
Sat Aug 18, 2018 10:36 am
Forum: General programming discussion
Topic: Python, Java or both?
Replies: 12
Views: 1021

Re: Python, Java or both?

Warning. Language war alert! I'm sure the "collective" will have as many different views on this as there are members. Or at least as many as there are programming languages. You weren't wrong. The language wars have started. I'd say COBOL but the support on a Raspberry is a bit patchy (although yo...
by DougieLawson
Sat Aug 18, 2018 10:19 am
Forum: Beginners
Topic: Autostart Python script
Replies: 4
Views: 90

Re: Autostart Python script

Add a line item to /home/pi/.config/lxsession/LXDE-pi/autostart

Code: Select all

@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
@xscreensaver -no-splash
@point-rpi
@/usr/bin/python3 /home/pi/whatever_script_goes_here.py
by DougieLawson
Sat Aug 18, 2018 10:13 am
Forum: Troubleshooting
Topic: Raspberry Pi 3B+ keeps crashing
Replies: 7
Views: 183

Re: Raspberry Pi 3B+ keeps crashing

Log the output from a free command every minute. You may have a storage leak.

sudo crontab -e

Code: Select all

* * * * * /usr/bin/free >> /var/log/free.log
by DougieLawson
Sat Aug 18, 2018 9:10 am
Forum: Beginners
Topic: Raspberry Pi 3 - Jessie - Mosquitto 1.5 - Websocket Paho Client Connect Problem
Replies: 4
Views: 93

Re: Raspberry Pi 3 - Jessie - Mosquitto 1.5 - Websocket Paho Client Connect Problem

What's in your mosquitto config?

I've got

Code: Select all

#listener 1883
protocol mqtt

listener 9001
protocol websockets
I've got an example WS program at: https://github.com/DougieLawson/Wemos_Arduino_MQTT
by DougieLawson
Sat Aug 18, 2018 8:46 am
Forum: Troubleshooting
Topic: Timed Out Waiting For Device During Boot
Replies: 6
Views: 146

Re: Timed Out Waiting For Device During Boot

That's interesting. Something needs a longer timeout before assuming the fsck has failed.
by DougieLawson
Fri Aug 17, 2018 10:44 pm
Forum: General discussion
Topic: mariadb
Replies: 6
Views: 154

Re: mariadb

That's the way it works in DebIan stretch and derivatives. Yes, it's really bad and a massive security hole.

https://websiteforstudents.com/mariadb- ... 8-04-beta/
by DougieLawson
Fri Aug 17, 2018 9:36 pm
Forum: Add-ons
Topic: ETA for Official POE Hat for 3B+
Replies: 50
Views: 1080

Re: ETA for Official POE Hat for 3B+

Today's raspberrypi-kernel update is needed to get the drivers for the POE HAT.
by DougieLawson
Fri Aug 17, 2018 5:57 pm
Forum: Automation, sensing and robotics
Topic: Multiple inputs and outputs.
Replies: 4
Views: 133

Re: Multiple inputs and outputs.

Use an MCP23017 (or eight) each one gives you sixteen extra GPIOs.
by DougieLawson
Fri Aug 17, 2018 4:03 pm
Forum: Troubleshooting
Topic: Timed Out Waiting For Device During Boot
Replies: 6
Views: 146

Re: Timed Out Waiting For Device During Boot

What's in /boot/cmdline.txt?
by DougieLawson
Fri Aug 17, 2018 12:13 am
Forum: Troubleshooting
Topic: Let's Encrypt not working after installation
Replies: 8
Views: 156

Re: Let's Encrypt not working after installation

You're missing the rewrite rules in your virtual host config file for https://videobyzachary.tk

Code: Select all

RewriteEngine on
RewriteCond %{SERVER_NAME} =videobyzachary.tk
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]
by DougieLawson
Thu Aug 16, 2018 11:33 pm
Forum: Troubleshooting
Topic: Issues opening FTDI device with D2XX lib
Replies: 2
Views: 991

Re: Issues opening FTDI device with D2XX lib

mtortiz wrote:
Thu Aug 16, 2018 11:16 pm
I know this is dated post, but I'm responding for posterity. This issue may be resolved by running the application as root.

Code: Select all

sudo ./appname
.
If your userid is in the dialout group (like pi is) then sudo won't be needed.
by DougieLawson
Thu Aug 16, 2018 11:27 pm
Forum: Troubleshooting
Topic: Let's Encrypt not working after installation
Replies: 8
Views: 156

Re: Let's Encrypt not working after installation

Is port 443 open to the public internet?

What happens at httpS://www.[domainname].tk?
by DougieLawson
Thu Aug 16, 2018 8:59 pm
Forum: Python
Topic: Adding inputs to existing tkinter stopwatch code
Replies: 10
Views: 210

Re: Adding inputs to existing tkinter stopwatch code

Stop using sudo. You don't need it.
by DougieLawson
Thu Aug 16, 2018 6:59 pm
Forum: Other projects
Topic: Raspberry Pi Zero (no wifi) + touchscreen, how to communicate?
Replies: 1
Views: 29

Re: Raspberry Pi Zero (no wifi) + touchscreen, how to communicate?

Why not WiFi? You could have an RPi3 running http://piwall.co.uk and a WiFi access point as a private wireless LAN.
by DougieLawson
Thu Aug 16, 2018 6:56 pm
Forum: Python
Topic: noobie needs help getting data from XML webpage
Replies: 4
Views: 70

Re: noobie needs help getting data from XML webpage

If you need to parse HTML or XML, you'll need to use BeautifulSoup4.

Go to advanced search