Go to advanced search

by DougieLawson
Sat Feb 24, 2018 6:38 pm
Forum: Troubleshooting
Topic: daemon/service failure how to troubleshoot.
Replies: 6
Views: 112

Re: daemon/service failure how to troubleshoot.

start with journalctl -xe

Then look at cat /var/log/messages and cat /var/log/syslog
by DougieLawson
Sat Feb 24, 2018 5:58 pm
Forum: Official Foundation Display
Topic: Touch is missing the lower part of the screen
Replies: 9
Views: 245

Re: Touch is missing the lower part of the screen

And then you read the readme on how to use xinput calibrator? I don't know if the sequence number is important, I also have a 10-evdev.conf in the same directory. Maybe the calibration data has to be after that in the sequence. The last time I did much with xorg.conf files they were all 1 file. ......
by DougieLawson
Sat Feb 24, 2018 8:06 am
Forum: Networking and servers
Topic: Install LISTSERV on Raspberry Pi
Replies: 3
Views: 104

Re: Install LISTSERV on Raspberry Pi

Use mailman it's ready to install with apt-get.
by DougieLawson
Sat Feb 24, 2018 7:57 am
Forum: Off topic discussion
Topic: Invalid desktop entry file
Replies: 6
Views: 2470

Re: Invalid desktop entry file

If you've found a bug, report it here: https://bugs.freedesktop.org/enter_bug. ... file-utils
by DougieLawson
Fri Feb 23, 2018 5:21 pm
Forum: Networking and servers
Topic: MQTT Broker on Home Network
Replies: 1
Views: 48

Re: MQTT Broker on Home Network

sudo apt install mosquitto mosquitto-client*
by DougieLawson
Fri Feb 23, 2018 1:44 pm
Forum: Beginners
Topic: Raspberry update shell script - error
Replies: 4
Views: 116

Re: Raspberry update shell script - error

The simple answer is remove that rpi-update stuff completely. It isn't needed for anyone other than the folks working the the Raspberry Pi Foundation on the leading edge kernel and firmware development.

Running rpi-update can (and has done with my systems) break your system and leave it not bootable.
by DougieLawson
Fri Feb 23, 2018 12:00 pm
Forum: Raspberry Pi Desktop for PC and Mac
Topic: Upgrade to kernel 4.14?
Replies: 5
Views: 129

Re: Upgrade to kernel 4.14?

Don't ever run rpi-update. It's not needed, it installs untested, experimental kernels and bootcode. If you can't repair an unbootable system in 20 minutes rather than 20 hours the rpi-update isn't for you.
by DougieLawson
Fri Feb 23, 2018 9:23 am
Forum: Beginners
Topic: Can't reach internet
Replies: 1
Views: 49

Re: Can't reach internet

Get the results from the following commands

ip addr show
ip route
ping -c3 $(ip route | awk '/default/ {print $3}')
ping -c3 8.8.8.8
ping -c3 google.com
cat /etc/resolv.conf


DO NOT blank out any of the results; those commands do not reveal any sensitive information.
by DougieLawson
Fri Feb 23, 2018 7:04 am
Forum: Automation, sensing and robotics
Topic: Pi to Pi communication over Local network
Replies: 2
Views: 44

Re: Pi to Pi communication over Local network

Code: Select all

os.system('modprobe w1-gpio')
os.system('modprobe w1-therm')
Remove those two lines.

Add

Code: Select all

dtoverlay=w1-gpio
to your /boot/config.txt file and reboot.
by DougieLawson
Fri Feb 23, 2018 6:40 am
Forum: General discussion
Topic: Pi 4 wish list.
Replies: 11
Views: 500

Re: Pi 4 wish list.

I would like the Pi 4 to include wheels. And a sandwich. Would your wheels and sandwiches work with the pink ponies and unicorns? I can see an interfacing problem. My guess! A Pi 3A+W The Pi3A exists. It just hasn't been released, for...reasons. Where's you evidence? There's no such thing as a Pi3A...
by DougieLawson
Thu Feb 22, 2018 10:50 pm
Forum: Weather station
Topic: It stopped uploading to Oracle
Replies: 3
Views: 148

Re: It stopped uploading to Oracle

Make the change to your crontab to include

Code: Select all

>> /home/pi/weather.log
on the end of the command.
by DougieLawson
Thu Feb 22, 2018 12:21 am
Forum: Beginners
Topic: Just got my pi, stumped on something
Replies: 2
Views: 164

Re: Just got my pi, stumped on something

sudo apt install python{,3}-mysql.connector
Job done.

https://dev.mysql.com/doc/connector-python/en/ tells you how to use it.
by DougieLawson
Wed Feb 21, 2018 6:09 am
Forum: Automation, sensing and robotics
Topic: Pi to Pi communication over Local network
Replies: 5
Views: 554

Re: Pi to Pi communication over Local network

lamaan wrote:
Tue Oct 31, 2017 4:10 pm
... want to achieve is that I want to send commands from one pi and recieve it on the other pi and also send some data of sensor readings from one Pi to another.
Take a look at MQTT with HiveMQ, Mosquitto or RabbitMQ
by DougieLawson
Wed Feb 21, 2018 5:55 am
Forum: General discussion
Topic: Snap7
Replies: 1
Views: 128

Re: Snap7

Are you using python2 or python3?

Use sudo pip ... to install for python2, use sudo pip3 ... to install for python3.
by DougieLawson
Wed Feb 21, 2018 5:37 am
Forum: Off topic discussion
Topic: Recommendations for a good, but cheap, multimeter
Replies: 26
Views: 3288

Re: Recommendations for a good, but cheap, multimeter

cesttonal wrote:
Tue Feb 20, 2018 5:37 pm
if anyone has used Mastech MS8268.
I'll let you know some time after early April. I've been meaning to upgrade from my own analog meter and that looks like the one my wife can get for my birthday.
by DougieLawson
Wed Feb 21, 2018 5:24 am
Forum: Weather station
Topic: It stopped uploading to Oracle
Replies: 3
Views: 148

Re: It stopped uploading to Oracle

Change your crontab entries to

Code: Select all

/home/pi
from

Code: Select all

~
so that you can be sure cron can find the programs.

Add some logging change

Code: Select all

weather-station/upload_to_oracle.py
to

Code: Select all

weather-station/upload_to_oracle.py >> /home/pi/oracle.log
by DougieLawson
Mon Feb 19, 2018 10:23 pm
Forum: Advanced users
Topic: Help Making a Clock
Replies: 3
Views: 253

Re: Help Making a Clock

Here's a python program that calculates sunrise/sunset import ephem from numpy import pi from datetime import date, time, datetime def time_string(et): et = et.tuple() d = date(et[0], et[1], et[2]) t = time(et[3], et[4], int(et[5])) dt = datetime.combine(d, t) return dt.strftime("%d %b %Y %H:%M:%S U...
by DougieLawson
Mon Feb 19, 2018 10:16 pm
Forum: Advanced users
Topic: What's the best way for setting up a server?
Replies: 3
Views: 181

Re: What's the best way for setting up a server?

Wemos D1 can do MQTT subscriptions and publishing with https://pubsubclient.knolleary.net
by DougieLawson
Mon Feb 19, 2018 9:45 pm
Forum: Off topic discussion
Topic: RPi4
Replies: 20
Views: 789

Re: RPi4

You do realise that anyone who knows about any future product would be gagged with a non-disclosure agreement. Therefore, as always, these "wish list" pink ponies and unicorn threads are entirely pointless and will never get details about "RPi Next", RPi4, RPi5, RPi73 or RPi99999999.
by DougieLawson
Sun Feb 18, 2018 12:12 pm
Forum: Beginners
Topic: What sould I do with Python version
Replies: 4
Views: 138

Re: What sould I do with Python version

All new code should be written in python3. As a new user forget python 2 ever existed.
by DougieLawson
Sat Feb 17, 2018 11:53 pm
Forum: Raspbian
Topic: /etc/inittab no longer present in Raspbian Jessie?
Replies: 34
Views: 67861

Re: /etc/inittab no longer present in Raspbian Jessie?

sudo raspi-config in an LXTerminal window runs a configuration program.
by DougieLawson
Sat Feb 17, 2018 10:35 pm
Forum: General discussion
Topic: Home Automation
Replies: 3
Views: 184

Re: Home Automation

Best starting point for MQTT is: http://hivemq.com/mqtt-essentials/

Easy way to get a broker installed is sudo apt install mosquitto mosquitto-client*

I've just built a system that will control 64 switches from a RPi, it's available as a bespoke commercial system if you'd like to buy a copy.
by DougieLawson
Sat Feb 17, 2018 10:28 pm
Forum: General discussion
Topic: Pi Access with Tablet/Smart Phone
Replies: 9
Views: 420

Re: Pi Access with Tablet/Smart Phone

I use JuiceSSH https://juicessh.com which I thought was so good I paid for the upgraded version.

The only practical way to make a connection using your existing WiFi network or to run your RPi as an access point.
by DougieLawson
Sat Feb 17, 2018 10:25 pm
Forum: Networking and servers
Topic: How to use NTP to sync two pi's clocks (don't care about accuracy)?
Replies: 12
Views: 478

Re: How to use NTP to sync two pi's clocks (don't care about accuracy)?

Run one ntpd as a master, run any other ntpd systems as a slave to that. Master /etc/ntp.conf driftfile /var/lib/ntp/ntp.drift statistics loopstats peerstats clockstats filegen loopstats file loopstats type day enable filegen peerstats file peerstats type day enable filegen clockstats file clockstat...

Go to advanced search