Go to advanced search

by DougieLawson
Sat Aug 18, 2018 10:36 am
Forum: General programming discussion
Topic: Python, Java or both?
Replies: 11
Views: 988

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

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

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

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: 5
Views: 111

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

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: 31
Views: 786

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

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: 5
Views: 111

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

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

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: 8
Views: 165

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: 3
Views: 47

Re: noobie needs help getting data from XML webpage

If you need to parse HTML or XML, you'll need to use BeautifulSoup4.
by DougieLawson
Thu Aug 16, 2018 2:01 pm
Forum: Troubleshooting
Topic: Timed Out Waiting For Device During Boot
Replies: 5
Views: 111

Re: Timed Out Waiting For Device During Boot

It means the UUID/PARTUUID in your /etc/fstab doesn't match the ID on your /boot partition. You're probably not going to be able to fix it with the emergency console. So you'll need a new SDCard, a copy of Raspbian, a copy of Etcher (to write Raspbian to the new SDCard) and a USB reader. Boot the ne...
by DougieLawson
Thu Aug 16, 2018 1:45 pm
Forum: Troubleshooting
Topic: User name and password
Replies: 23
Views: 261917

Re: User name and password

What's your keyboard layout? Is it a UK keyboard?

Try typing the password in the userid box (only so you can see what comes out and whether any keys on your keyboard generate the wrong code).

https://en.wikipedia.org/wiki/British_a ... _keyboards
by DougieLawson
Thu Aug 16, 2018 1:33 pm
Forum: Troubleshooting
Topic: Two IP addresses on eth0 and wlan0, can't disable wifi
Replies: 1
Views: 25

Re: Two IP addresses on eth0 and wlan0, can't disable wifi

sudo killall wpa_supplicant
sudo ifconfig wlan0 0
sudo ifconfig wlan0 down
by DougieLawson
Thu Aug 16, 2018 1:31 pm
Forum: Troubleshooting
Topic: 2.4GHz wifi not appearing on 3 B+
Replies: 1
Views: 26

Re: 2.4GHz wifi not appearing on 3 B+

What security does your 2.4GHz network use? Raspbian will only see WPA/WPA2 networks, it ignores WEP.
by DougieLawson
Thu Aug 16, 2018 1:14 pm
Forum: Beginners
Topic: Move ssh key to other builds?
Replies: 18
Views: 266

Re: Move ssh key to other builds?

The reason it's not a good idea is that if one system gets compromised then all systems sharing the keys are compromised. That's the flaw Raspbian have attempted to solve by generating new keys on first boot.
by DougieLawson
Thu Aug 16, 2018 1:11 pm
Forum: Beginners
Topic: Syncing Current IP
Replies: 7
Views: 169

Re: Syncing Current IP

At least eight ways crontab -e sudo crontab -e sudo nano /etc/cron.d/xxxx sudo nano /etc/cron.hourly/xxxx sudo nano /etc/cron.daily/xxxx sudo nano /etc/cron.weekly/xxxx sudo nano /etc/cron.monthly/xxxx sudo nano /etc/crontab The crontabs in /etc/cron*/xxxx have a slightly different format to usual a...
by DougieLawson
Thu Aug 16, 2018 12:48 pm
Forum: Beginners
Topic: No connectivity to internet
Replies: 7
Views: 134

Re: No connectivity to internet

Undo your changes to /etc/network/interfaces and /etc/dhcpcd.conf. Then reboot your RPi.
by DougieLawson
Thu Aug 16, 2018 6:54 am
Forum: Beginners
Topic: No connectivity to internet
Replies: 7
Views: 134

Re: No connectivity to internet

Start by rebooting your router.
by DougieLawson
Thu Aug 16, 2018 6:50 am
Forum: Python
Topic: connecting raspberry to ms sql server via ethernet
Replies: 3
Views: 69

Re: connecting raspberry to ms sql server via ethernet

You'll need unixodbc.

Try searching google for "raspberry unixodbc mssql site:raspberrypi.org" to find lots of old posts about doing that.

Go to advanced search