Go to advanced search

by DougieLawson
Tue Oct 17, 2017 7:29 am
Forum: General discussion
Topic: Pi + ESP8266 Communication
Replies: 19
Views: 800

Re: Pi + ESP8266 Communication

I had a look on my old hard disk root@apollo /mnt/etc/mosquitto/conf.d # cat tls.conf listener 1883 protocol mqtt listener 8883 protocol mqtt listener 9001 protocol websockets #listener 8883 #protocol mqtt # tls_version tlsv1 cafile /etc/mosquitto/ca_certificates/ca.crt certfile /etc/mosquitto/certs...
by DougieLawson
Tue Oct 17, 2017 7:14 am
Forum: Troubleshooting
Topic: MCP3008 with output all 0?
Replies: 2
Views: 82

Re: MCP3008 with output all 0?

It looks like the OP has used half of the SPI0 pins mixed with half of SPI1 ones.

https://pinout.xyz/pinout/spi
by DougieLawson
Mon Oct 16, 2017 9:47 pm
Forum: Troubleshooting
Topic: RasPi 3B freezing when not under any significant load
Replies: 3
Views: 87

Re: RasPi 3B freezing when not under any significant load

Have a look at the amount of RAM used for each new browser tab. When you get close to 1GB your Raspberry will turn to a brain-dead zombie wading through a vat of treacle. The system goes into swapping, swapping to SDCard doesn't work (it's also very bad for flash memory wear-levelling). The top comm...
by DougieLawson
Mon Oct 16, 2017 9:27 pm
Forum: General discussion
Topic: Pi + ESP8266 Communication
Replies: 19
Views: 800

Re: Pi + ESP8266 Communication

Sorry I don't know enough about WebSockets. I've only ever played with ws within my private LAN.
by DougieLawson
Mon Oct 16, 2017 9:01 pm
Forum: Astro Pi
Topic: Sense HAT pressure readings
Replies: 3
Views: 974

Re: Sense HAT pressure readings

Find your local airport code (for example: Heathrow is EGLL, Farnborough is EGLF). Feed that into http://www.aviationweather.gov/metar?gis=off (check the decoded box) that gives you the local "official" reading from your local national weather service. From the METAR you have a MSL value METAR for: ...
by DougieLawson
Mon Oct 16, 2017 9:45 am
Forum: Troubleshooting
Topic: Pi - Raspbian Apache2 Webhosting AJAX Error
Replies: 2
Views: 66

Re: Pi - Raspbian Apache2 Webhosting AJAX Error

Error 500 should log a message to /var/log/apache2/error.log go and take a look.
by DougieLawson
Mon Oct 16, 2017 9:44 am
Forum: General discussion
Topic: 24/7 powered Pi has lost its time again.
Replies: 3
Views: 154

Re: 24/7 powered Pi has lost its time again.

Which OS version? Is it Raspbian Jessie? Raspbian Stretch? or Jessie that's been upgraded to Stretch? Something else?

Is your network reliable?
Are you using systemd-timesyncd or good old ntpd?
by DougieLawson
Mon Oct 16, 2017 9:41 am
Forum: General discussion
Topic: Mosquitto MQTT question
Replies: 3
Views: 133

Re: Mosquitto MQTT question

Massi wrote:
Mon Oct 16, 2017 8:42 am
mosquitto configuration -> acl -> done
To expand on that http://www.steves-internet-guide.com/to ... iguration/

Which is another thing from Steve's Internet Guide that I need to try out on one of my Mosquitto systems.
by DougieLawson
Mon Oct 16, 2017 9:35 am
Forum: Advanced users
Topic: program_gpio_bootmode broken on pi3b
Replies: 17
Views: 512

Re: program_gpio_bootmode broken on pi3b

pietjepuk1001, I think you've found a bug. The code which handles program_gpio_bootmode ends up setting the wrong bits in the OTP. Bit 19 (0x00080000) at offset 17 (and 18 for redundancy) enables the GPIO bootmode selection, while bit 20 (0x00100000) selects the high bank (39-43). By setting bit 20...
by DougieLawson
Mon Oct 16, 2017 9:25 am
Forum: General discussion
Topic: Pi + ESP8266 Communication
Replies: 19
Views: 800

Re: Pi + ESP8266 Communication

The system where I did this was on a USB stick/hard drive or SDcard that got completely wiped when I went from Jessie to Stretch. I may have a copy of the hard-drive. http://www.steves-internet-guide.com/mosquitto-tls/ is slightly Windows biased, but should work on Linux. I'll have to take another l...
by DougieLawson
Sun Oct 15, 2017 6:35 pm
Forum: Troubleshooting
Topic: PI Strange behaviour
Replies: 2
Views: 99

Re: PI Strange behaviour

Get a new, factory fresh, SDCard and a USB SDCard reader. Build a copy of Raspbian on the new SDCard. Boot your RPi from that. Mount your unbootable SDCard in the USB reader, mount the reader in your RPi. You can then look at /var/log on the "broken" SDCard to see if you can determine what's gone wr...
by DougieLawson
Sun Oct 15, 2017 6:25 pm
Forum: Python
Topic: Differential Temperature
Replies: 7
Views: 148

Re: Differential Temperature

If you're going to post python code can you edit your post and wrap it in [ code] ... your code goes here ... [/code] tags. That makes the difference between if code_tags <> "used": print "Formatting & whitespace is lost" else: print "Python retains its whitespace syntax" And if code_tags <> "used":...
by DougieLawson
Sun Oct 15, 2017 6:23 pm
Forum: Troubleshooting
Topic: Ds18B20 stopped working after a night without power
Replies: 11
Views: 261

Re: Ds18B20 stopped working after a night without power

and in /etc/modules i have w1-gpio and w1-therm, i have not written modprobe anywhere ? Everything in /etc/modules gets automagically modprobe'd during startup. You don't need to explictly load those w1-* modules. Although I doubt that's your problem. Try the DS18B20 on another gpiopin. This will u...
by DougieLawson
Sun Oct 15, 2017 6:18 pm
Forum: General discussion
Topic: Have one rasp pi detect when another stops working
Replies: 6
Views: 187

Re: Have one rasp pi detect when another stops working

If you had the supply on a relay controlled circuit for the remote you could have the pinging RPi turn the power off and back on when a ping fails. Or get the remote RPi to send a heartbeat signal to the controller and when the heartbeat goes missing trip the circuit to restart it. (You'd probably w...
by DougieLawson
Sun Oct 15, 2017 6:14 pm
Forum: Troubleshooting
Topic: Audio Delay HDMI on Raspbian/Kodi (Pi3 model B)
Replies: 6
Views: 163

Re: Audio Delay HDMI on Raspbian/Kodi (Pi3 model B)

i try search but since yesterday i receive "WE ARE CURRENTLY EXPERIENCING HIGH TRAFFIC. WE'LL BE BACK SHORTLY." So i made a post because this is very anoying and i have no google answers for my problem. Give Google (or Bing or DuckDuck) a helping hand by adding "site:raspberrypi.org" to the tail en...
by DougieLawson
Sun Oct 15, 2017 6:12 pm
Forum: General discussion
Topic: Raspberry pi 2 backup
Replies: 3
Views: 148

Re: Raspberry pi 2 backup

There's a "Pi Clone" tool on the GUI menus. It assumes your USB device doesn't have anything you need to retain stored on it.

You can do stuff yourself with dd or rsync commands.
by DougieLawson
Sun Oct 15, 2017 5:38 pm
Forum: General discussion
Topic: Deleting posts
Replies: 5
Views: 283

Re: Deleting posts

gkaiseril wrote:
Sun Oct 15, 2017 5:15 pm
That would require a moderator to unlock the post before you or a moderator could delete the post.
Or a request to a moderator to delete stuff.

What thread? And why do you think it needs to go?
by DougieLawson
Sun Oct 15, 2017 5:37 pm
Forum: Advanced users
Topic: program_gpio_bootmode broken on pi3b
Replies: 17
Views: 512

Re: program_gpio_bootmode broken on pi3b

pietjepuk1001 wrote:
Sun Oct 15, 2017 9:33 am
Did you ever encounter a successful "boot decided by gpio" on this forum / anywhere ??
You're the first.

Create an issue at: https://github.com/raspberrypi/firmware/issues and the very kind folks at the RPF/RP(T)Ltd. in Cambridge should see it.
by DougieLawson
Sun Oct 15, 2017 5:34 pm
Forum: General discussion
Topic: VNC update
Replies: 24
Views: 1157

Re: VNC update

I left a hint at: https://mosquitto.org/2013/01/mosquitto ... epository/

It's not important, but you can change it to Stretch.
by DougieLawson
Sun Oct 15, 2017 5:30 pm
Forum: General discussion
Topic: Can't Install PHP / MySQL - php5-mysql : Depends: libmysqlclient18 but it is not installable
Replies: 5
Views: 2358

Re: Can't Install PHP / MySQL - php5-mysql : Depends: libmysqlclient18 but it is not installable

Either sudo -i cd /tmp wget http://archive.raspbian.org/raspbian/pool/main/m/mysql-5.5/libmysqlclient18_5.5.57-0+deb8u1_armhf.deb dpkg -i libmysqlclient18_5.5.57-0+deb8u1_armhf.deb exit Or sudo -i cd /tmp wget http://archive.raspbian.org/raspbian/pool/main/m/mariadb-10.1/libmariadbclient18_10.1.23-9...
by DougieLawson
Sun Oct 15, 2017 5:25 pm
Forum: Networking and servers
Topic: OpenVPN with IPv6 / IPv4 support
Replies: 7
Views: 5071

Re: OpenVPN with IPv6 / IPv4 support

Please, please, please can someone help me figure out how to get my openvpn working again? I too had a working vpn using ipv4 but my ISP has switched to ipv6 and I have followed the above but openvpn does not start on bootup. It seems to be that code line proto udp6 is somehow not valid. I am runni...
by DougieLawson
Sun Oct 15, 2017 5:24 pm
Forum: Beginners
Topic: USB 3.0 is backward compitible to Pi?
Replies: 5
Views: 147

Re: USB 3.0 is backward compitible to Pi?

My Toshiba Canvio USB 3.0 drive works perfectly in USB 2.0 compatibilty mode.
by DougieLawson
Sun Oct 15, 2017 5:19 pm
Forum: Troubleshooting
Topic: Trying to move MYSQL database to external NAS
Replies: 5
Views: 140

Re: Trying to move MYSQL database to external NAS

darrepac wrote:
Sun Oct 15, 2017 9:08 am
Ok, I have checked and unfortunately my NAS doesn't support NFS...
Then you're going to have to either buy a better one, or set a MASK on your mount command that allows the CIFS share to be world writeable.

What's your model of NAS? Even my ancient Zyxel 210 (from 2010) has NFS.
by DougieLawson
Sun Oct 15, 2017 9:10 am
Forum: General discussion
Topic: Wifi and blueTooth stopped working
Replies: 4
Views: 151

Re: Wifi and blueTooth stopped working

What kernel and bootcode version are you running?

Try sudo rpi-update to get the latest experimental 4.9.56+ kernel / bootcode (which I've got running on 12 out of 14 of my raspberries, so it isn't poisonous).
by DougieLawson
Sun Oct 15, 2017 9:04 am
Forum: C/C++
Topic: makefile error
Replies: 3
Views: 112

Re: makefile error

PeterO wrote:
Sun Oct 15, 2017 7:50 am
Make is fussy and only accepts tab characters (unless you specify something else).
Which is why I use cmake as it creates the Makefile for me from something written in plain text
(CMakeLists.txt) with a readable syntax and nothing complicated.

Go to advanced search