Go to advanced search

by DougieLawson
Sun Dec 17, 2017 5:26 pm
Forum: C/C++
Topic: Problem with voltage measure with MCP3424 in c++
Replies: 11
Views: 154

Re: Problem with voltage measure with MCP3424 in c++

that's a pity, because it would help a lot if Google on Windows could find your ressources, too! That's exactly why always people ask here in this forum about drivers, although wiringPi provides them already - but they don't find anything! https://git.drogon.net/?p=wiringPi;a=blob;f=wiringPi/mcp342...
by DougieLawson
Sun Dec 17, 2017 5:21 pm
Forum: Python
Topic: Remotely shutting down a pi with another pi
Replies: 4
Views: 100

Re: Remotely shutting down a pi with another pi

My Tkinter page looks a bit like class PageThree(tk.Frame): def __init__(self, parent, controller): tk.Frame.__init__(self, parent) self.controller = controller mypid = os.getpid() client_uniq = "shutdown_"+str(mypid) self.broker="pi-home-control" self.port = 1883 self.mqttc = mqtt.Client(client_uni...
by DougieLawson
Sun Dec 17, 2017 5:16 pm
Forum: Graphics, sound and multimedia
Topic: TUTORIAL: Play or Encode High-Quality Video and Audio – with FFmpeg and mpv
Replies: 9
Views: 346

Re: TUTORIAL: Play or Encode High-Quality Video and Audio – with FFmpeg and mpv

fruitoftheloom wrote:
Sun Dec 17, 2017 5:09 pm
RPi_Mike please can you edit your posts and put text back to standard size for this forum :roll: :roll:
You can always fix it the other way with [CTRL] & [-] to reduce RPi_Mike's antisocial font size to something more readable.
by DougieLawson
Sun Dec 17, 2017 5:08 pm
Forum: General discussion
Topic: RTSP..user, pswd, ip
Replies: 3
Views: 58

Re: RTSP..user, pswd, ip

It depends on what's checking credentials and whether they're checking against the standard PAM shadow file. You'll need to look in the documentation for your RTSP server.

Having clear text passwords in URLs is a terrible security exposure and should be deprecated/removed where possible.
by DougieLawson
Sun Dec 17, 2017 5:00 pm
Forum: Beginners
Topic: Running python script on startup
Replies: 2
Views: 19

Re: Running python script on startup

Systemd is the most reliable. Create a file with sudo /etc/systemd/system/IMS.service [Unit] Description=Get IMS service running at boot After=mosquitto.service mysql.service [Service] ExecStart=/home/pi/IMS/launch.py Restart=always StandardOutput=syslog StandardError=syslog SyslogIdentifier=IMS Use...
by DougieLawson
Sun Dec 17, 2017 4:12 pm
Forum: General discussion
Topic: RTSP..user, pswd, ip
Replies: 3
Views: 58

Re: RTSP..user, pswd, ip

For any URL with a format of
protocol://user:password@some_ip_address:port_number/some_directory_or_service
the user:password is passed to the credentials mananger at some_ip_address for verification. Any network router won't see that nor care about it.
by DougieLawson
Sun Dec 17, 2017 4:06 pm
Forum: Graphics, sound and multimedia
Topic: TUTORIAL: Play or Encode High-Quality Video and Audio – with FFmpeg and mpv
Replies: 9
Views: 346

Re: TUTORIAL: Play or Encode High-Quality Video and Audio – with FFmpeg and mpv

You really don't need to use [ size=140] , just get your browser to magnify the text if you can't read it using [CTRL] and [+] keys. Anyone suggesting that brand new users run sudo rpi-update is irresponsible. It can (and has done) break your system so that it's not bootable. If you don't know what...
by DougieLawson
Sun Dec 17, 2017 12:22 pm
Forum: Python
Topic: open python in python
Replies: 7
Views: 131

Re: open python in python

Sorry, I don't have the first faintest clue what you mean by that.
by DougieLawson
Sun Dec 17, 2017 12:21 pm
Forum: Advanced users
Topic: Changing IP config without rebooting
Replies: 6
Views: 202

Re: Changing IP config without rebooting

Don't bother trying, it only generates the same internal commands as sudo ip addr change ..., so in my view it's a million times easier to just use that ip addr change command rather than mucking about wasting time trying to hack dhcpcd into submission.
by DougieLawson
Sun Dec 17, 2017 12:15 pm
Forum: Raspberry Pi Desktop for PC and Mac
Topic: cross compile c fro RPi on x86 Debian for PC
Replies: 3
Views: 55

Re: cross compile c fro RPi on x86 Debian for PC

Can one cross compile C for the Raspberry Pi on the x86 PC desktop as is with the current ISO image or would a package need to be installed? What would be the switches required on the command line to have gcc cross compile rather than compile for x86? You can, but it's a pain to set-up. Instruction...
by DougieLawson
Sun Dec 17, 2017 10:34 am
Forum: Advanced users
Topic: Changing IP config without rebooting
Replies: 6
Views: 202

Re: Changing IP config without rebooting

It's this boot only, you need to change /etc/dhcpcd.conf if you want to make the changes permanent.
by DougieLawson
Sun Dec 17, 2017 10:33 am
Forum: Beginners
Topic: Missing Libraries?...?
Replies: 9
Views: 140

Re: Missing Libraries?...?

Quit IDLE. run the commands in an LXTerminal window.
by DougieLawson
Sun Dec 17, 2017 10:08 am
Forum: Python
Topic: TKinter display temperature
Replies: 3
Views: 109

Re: TKinter display temperature

Here's my final version. It shows you how to read a 1-wire device without knowing the device serial number (using glob) and how to update a TKinter window every two seconds. #!/usr/bin/python3 from tkinter import * import glob import time import datetime time1 ='' sysDir = '/sys/bus/w1/devices/' w1D...
by DougieLawson
Sun Dec 17, 2017 8:24 am
Forum: Beginners
Topic: Managing System Time on RPI
Replies: 2
Views: 59

Re: Managing System Time on RPI

Take a look at the man page for timedatectl with a man timedatectl command. As soon as the network reconnects your RPi should sync to an internet time server. You can add a RTC board if you need the time to be set when the network isn't available. https://cdn-learn.adafruit.com/downloads/pdf/adding-...
by DougieLawson
Sun Dec 17, 2017 7:31 am
Forum: General discussion
Topic: RSP heating up !
Replies: 10
Views: 252

Re: RSP heating up !

Don't put a finger on a chip running at 85°C as that will scald causing 1st or 2nd degree burns.
by DougieLawson
Sun Dec 17, 2017 7:29 am
Forum: Beginners
Topic: Dead SD Card?
Replies: 8
Views: 160

Re: Dead SD Card?

Is your power supply delivering a steady 5V @ 2500mA?
Do you see the yellow lightning bolt on the screen?

SDCards going bad can be caused by lousy power supplies.
by DougieLawson
Sun Dec 17, 2017 7:21 am
Forum: Troubleshooting
Topic: Pi 3 B won't boot, audible squealing coming from pi
Replies: 4
Views: 147

Re: Pi 3 B won't boot, audible squealing coming from pi

Does anything (like the big black chip) on your Raspberry get very hot (hot enough to scald), very quickly?
Have you let the magic blue smoke escape?
by DougieLawson
Sun Dec 17, 2017 7:18 am
Forum: Beginners
Topic: Connecting rpi3 to a usb keyboard via GPIO?
Replies: 2
Views: 57

Re: Connecting rpi3 to a usb keyboard via GPIO?

yoshistr wrote:
Sat Dec 16, 2017 11:12 pm
Is it possible to connect a pi to a usb keyboard using GPIO cables ...?
No.
by DougieLawson
Sun Dec 17, 2017 7:16 am
Forum: Weather station
Topic: Connecting wind and rain sensors (build your own station)
Replies: 189
Views: 34642

Re: Connecting wind and rain sensors (build your own station)

The standard WS code uses MySQL as a database. Below is I've shown you the database name, database schema and a select of the latest records in my database. pi@beaufort:/usr/local/bin/weather-station$ mysql -u weather -p weather Enter password: Reading table information for completion of table and c...
by DougieLawson
Sat Dec 16, 2017 10:51 pm
Forum: Advanced users
Topic: MQTT Python broker instead of Mosquitto in Stretch
Replies: 4
Views: 106

Re: MQTT Python broker instead of Mosquitto in Stretch

mattmiller wrote:
Sat Dec 16, 2017 10:30 pm
I think at one stage you said you were going to make a guide to the whole process?
It isn't needed.

Follow the instructions on Mosquitto.org to get the broker.
Run sudo aptitude install mosquitto-client then pick the dependencies resolution option that gets it installed.
by DougieLawson
Sat Dec 16, 2017 10:36 pm
Forum: Python
Topic: open python in python
Replies: 7
Views: 131

Re: open python in python

You need to explain what you're trying to achieve, because python's threading may be needed.
by DougieLawson
Sat Dec 16, 2017 10:34 pm
Forum: General programming discussion
Topic: VS17 Help
Replies: 18
Views: 347

Re: VS17 Help

I use Windows because I can't find a usable/feature rich IBM3270 emulator for Linux and I need that for my day job. Real 3270's were a joy to use IMO (30+ years ago), but I never found any emulator that was any good by comparison. Tom Brennan's Vista is the best USD$30 3270 emulator you can buy. It...
by DougieLawson
Sat Dec 16, 2017 8:24 pm
Forum: General programming discussion
Topic: VS17 Help
Replies: 18
Views: 347

Re: VS17 Help

You're always decrying Microsoft products, stop it - it's a waste of time, Microsoft aren't going away. If folks choose to use VS2017 (which is a decent and serviceable product) then that's their choice. The "Linux is best, Microsoft is evil" argument got very stale a number of years ago. VS2017 is ...
by DougieLawson
Sat Dec 16, 2017 8:16 pm
Forum: Troubleshooting
Topic: Raspberry Pi with PN532 NFC/RFID chip - can't read or write to chip?
Replies: 4
Views: 140

Re: Raspberry Pi with PN532 NFC/RFID chip - can't read or write to chip?

Since you're not using the super cheapo eBay MFRC522 reader with the commonly used code from https://github.com/mxgxw/MFRC522-python with the SPI library from https://github.com/lthiery/SPI-Py then you tend to be in a minority. The libnfc stuff doesn't work for those super cheapo SPI readers. If you...

Go to advanced search