Go to advanced search

by DougieLawson
Sat Nov 17, 2018 6:14 pm
Forum: Weather station
Topic: Total noob here. Personal WS
Replies: 20
Views: 372

Re: Total noob here. Personal WS

On my system that stuff is in /etc/apache2/mods-available/php7.0.conf

so sudo a2enmod php7.0 should activate it. I've added that to my pull request for the new version of the weather-station-www code.
by DougieLawson
Sat Nov 17, 2018 5:48 pm
Forum: Weather station
Topic: Total noob here. Personal WS
Replies: 20
Views: 372

Re: Total noob here. Personal WS

Then I can't see how your web site is failing, that log looks normal.
by DougieLawson
Sat Nov 17, 2018 5:11 pm
Forum: Troubleshooting
Topic: RPIZW - Wifi Chip.
Replies: 24
Views: 271

Re: RPIZW - Wifi Chip.

ShiftyRP wrote:
Sat Nov 17, 2018 3:43 pm
So how did NOOBS be able to detect my network then?
No idea, because my crystal ball went offline in the "Great Crystal Ball Disaster of 1989" and you're not telling us everything that you've tried and failed to do to resolve things.
by DougieLawson
Sat Nov 17, 2018 5:09 pm
Forum: General discussion
Topic: mysql -u root
Replies: 5
Views: 81

Re: mysql -u root

You're probably better off running sudo mysqld_safe to get it to repair damaged tables and restart.
by DougieLawson
Sat Nov 17, 2018 3:39 pm
Forum: Troubleshooting
Topic: RPIZW - Wifi Chip.
Replies: 24
Views: 271

Re: RPIZW - Wifi Chip.

I think it's safe to assume that you've broken your hardware and need the £10 fix.
by DougieLawson
Sat Nov 17, 2018 3:16 pm
Forum: Off topic discussion
Topic: What do you want from this Black Friday/cyber Monday?
Replies: 2
Views: 72

Re: What do you want from this Black Friday/cyber Monday?

What I'd like is all United Kingdom based retailers to forget Black Friday ever existed and send it back over to the pond to where it originated. We don't do Thanksgiving here, we don't need Black Friday here. To the OP, don't forget this is an international forum and not everyone gives a hoot about...
by DougieLawson
Sat Nov 17, 2018 1:27 pm
Forum: General discussion
Topic: priveleges
Replies: 6
Views: 112

Re: priveleges

by DougieLawson
Sat Nov 17, 2018 12:43 pm
Forum: General discussion
Topic: priveleges
Replies: 6
Views: 112

Re: priveleges

sudo mysql -u root
will get you a MySQL (aka MariaDB) command line (no password needed on DebIan/Raspbian Stretch).
by DougieLawson
Sat Nov 17, 2018 10:20 am
Forum: Camera board
Topic: live stream camera from python file?
Replies: 2
Views: 44

Re: live stream camera from python file?

It's probably easier to use the picamera python library rather than spawning raspivid.

https://picamera.readthedocs.io/en/rele ... ipes1.html
by DougieLawson
Sat Nov 17, 2018 9:59 am
Forum: Troubleshooting
Topic: omxplayer plays over HDMI but not alsa nor pulseaudio
Replies: 1
Views: 33

Re: omxplayer plays over HDMI but not alsa nor pulseaudio

Try building a new SDCard with Raspbian 2018-11-13 or NOOBS 3.0.0 (which has a mass of updates for multimedia stuff).
by DougieLawson
Sat Nov 17, 2018 9:57 am
Forum: Weather station
Topic: Total noob here. Personal WS
Replies: 20
Views: 372

Re: Total noob here. Personal WS

Look in the logs at /var/log/apache2
by DougieLawson
Sat Nov 17, 2018 9:35 am
Forum: Off topic discussion
Topic: forum: attached additinal image gone lost
Replies: 1
Views: 67

Re: forum: attached additinal image gone lost

Put images on https://imgur.com put the BBCode link on here.

The forum image / attachments stuff is a pile of stinking brown stuff that's not fit for purpose.
by DougieLawson
Sat Nov 17, 2018 3:01 am
Forum: Troubleshooting
Topic: RPIZW - Wifi Chip.
Replies: 24
Views: 271

Re: RPIZW - Wifi Chip.

You've not set your country code. The rfkill program will have disabled your WiFi interface.

Try a sudo rfkill list all command.
by DougieLawson
Sat Nov 17, 2018 2:48 am
Forum: Python
Topic: How to filter out letters from strings and only keep numbers
Replies: 6
Views: 103

Re: How to filter out letters from strings and only keep numbers

helpthepi wrote:
Fri Nov 16, 2018 9:17 pm
Input is something like: temp=33.6C which is string. I need the output to be just 33.6

Code: Select all

[0-9]+\.[0-9]+
will match that.

Code: Select all

#!/usr/bin/python3

import re

inputstr = "temp=33.6C"
regex = "[0-9]+\.[0-9]+"

x = re.search(regex, inputstr)

print (x.group(0))
by DougieLawson
Sat Nov 17, 2018 2:29 am
Forum: Advanced users
Topic: Raspberry Pi hosting public website
Replies: 2
Views: 74

Re: Raspberry Pi hosting public website

I have set up my Pi to host a local web server using the Apache2 download. Now I want to move this web page to the public internet for everyone to see. Is there any way for this to be done without setting up a port forward. Bad luck. If you're behind a NAT router then it can't be done unless you ca...
by DougieLawson
Fri Nov 16, 2018 8:04 pm
Forum: General discussion
Topic: 3A+ usbboot/rpiboot
Replies: 25
Views: 500

Re: 3A+ usbboot/rpiboot

At the moment the USBboot OTP bit is set in the factory on the production boards.
by DougieLawson
Fri Nov 16, 2018 8:01 pm
Forum: Troubleshooting
Topic: RPIZW - Wifi Chip.
Replies: 24
Views: 271

Re: RPIZW - Wifi Chip.

Time to plug in a TV, keyboard and mouse. You need to be sure the Raspberry has booted. Then you can look deeper with things like ssh [email protected], ifconfig, iwconfig and iwlist scan commands.
by DougieLawson
Fri Nov 16, 2018 6:37 pm
Forum: General discussion
Topic: Multiple Frame buffer beta testers wanted
Replies: 317
Views: 14907

Re: Multiple Frame buffer beta testers wanted

I'd suggest installing the new Raspbian stuff with sudo apt update; sudo apt -y dist-upgrade then revert to 4.14.79 or 4.19.1 with sudo rpi-update 2267b32 or sudo rpi-update c91b784. Then re-install James' kernel and bootcode.

That gets you the best of both worlds.
by DougieLawson
Fri Nov 16, 2018 6:11 pm
Forum: AIY Projects
Topic: Google Calendar Permissions
Replies: 2
Views: 45

Re: Google Calendar Permissions

You should be able to do that at: https://console.developers.google.com/a ... q=calendar [Note: I have not tried this.]
by DougieLawson
Fri Nov 16, 2018 6:02 pm
Forum: Raspberry Pi Desktop for PC and Mac
Topic: SSH connection failure
Replies: 13
Views: 89

Re: SSH connection failure

So your sshd_config file has password authentication disabled.

Change these lines

Code: Select all

PasswordAuthentication no
UsePAM no
to

Code: Select all

#PasswordAuthentication yes
UsePAM yes
then restart your sshd server with sudo systemctl restart ssh
by DougieLawson
Fri Nov 16, 2018 5:48 pm
Forum: Troubleshooting
Topic: RPIZW - Wifi Chip.
Replies: 24
Views: 271

Re: RPIZW - Wifi Chip.

My intent after is to install Raspbian LITE. Then start with Raspbian Lite 2018-11-13 and stop wasting your time with NOOBS. Before you boot your system add f:\ssh.txt [empty file] and f:\wpa_supplicant.conf country=GB ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network=...
by DougieLawson
Fri Nov 16, 2018 5:43 pm
Forum: Raspberry Pi Desktop for PC and Mac
Topic: SSH connection failure
Replies: 13
Views: 89

Re: SSH connection failure

Man in a van wrote:
Fri Nov 16, 2018 5:41 pm

Code: Select all

sudo nano /home/pi/.ssh/authorized_keys 
gives

Directory does not exist
That's bound to be true since you're not trying to use public/private keys.
by DougieLawson
Fri Nov 16, 2018 5:41 pm
Forum: Troubleshooting
Topic: RPIZW - Wifi Chip.
Replies: 24
Views: 271

Re: RPIZW - Wifi Chip.

NOOBS Installation is on the Pi. that means NO OS is installed. I was attempting to connect the NOOBS installer to the wifi network. Oh dear, don't bother. Do you really need NOOBS? What's wrong with plain Raspbian? If you insist on using NOOBS for multi-boot switch to NOOBS 3.0.0 or (better) switc...
by DougieLawson
Fri Nov 16, 2018 5:38 pm
Forum: Raspberry Pi Desktop for PC and Mac
Topic: SSH connection failure
Replies: 13
Views: 89

Re: SSH connection failure

What happens with ssh [email protected] in an LXTerminal?

What OS version are you using? Have you tried today's fresh new downloads?
by DougieLawson
Fri Nov 16, 2018 5:35 pm
Forum: Troubleshooting
Topic: RPIZW - Wifi Chip.
Replies: 24
Views: 271

Re: RPIZW - Wifi Chip.

NOOBS is a software installer, it is not an OS. [PINN is a better forked version of NOOBS.]

You need to be more specific about what's running on your Raspberry.

Go to advanced search