Go to advanced search

by markkuk
Tue Jan 29, 2019 4:17 pm
Forum: General discussion
Topic: Shutting down raspberry pi automatically using UPS
Replies: 4
Views: 366

Re: Shutting down raspberry pi automatically using UPS

Install the UPS monitoring software included in Raspbian:

Code: Select all

sudo apt update
sudo apt install nut
Read the documentation: https://networkupstools.org/documentation.html
by markkuk
Fri Jan 25, 2019 11:02 pm
Forum: General discussion
Topic: Just some questions :D
Replies: 2
Views: 221

Re: Just some questions :D

1. Yes. 2. An operating system, a compiler or interpreter for your chosen programming language, an Integrated Development Environment (IDE) or separate programs for each development function, some libraries/frameworks for standard functions, a version management system, etc. There are several altern...
by markkuk
Sat Jan 19, 2019 10:56 pm
Forum: General discussion
Topic: computer power supply
Replies: 26
Views: 1590

Re: computer power supply

Hmm. Several people seem to disagree with me so I guess either I've misread the labels or I'm looking at the crappiest power supplies I've come across xD I guess you were looking at the spec for the 5V Standby line, which is always powered on even if the main outputs are off. 5VSB is typically 2-3 ...
by markkuk
Fri Jan 18, 2019 12:32 pm
Forum: Beginners
Topic: I have the following devices and cables and don't know what to do
Replies: 7
Views: 398

Re: I have the following devices and cables and don't know what to do

What is the optimal way to run my first boot. First boot of what? You didn't list any Raspberry Pi devices. Is it possible to carry out with an HDMI enabled TV? Yes, Raspberry Pi computers are designed to be used with TVs with HDMI connections. See: https://projects.raspberrypi.org/en/projects/rasp...
by markkuk
Wed Jan 16, 2019 10:27 am
Forum: Beginners
Topic: Multiple partitions on SD card that came with RPi2?
Replies: 56
Views: 2154

Re: Multiple partitions on SD card that came with RPi2?

Not one of the tutorials I have seen even mentions this let alone explains where I am supposed to mount Raspbian. Do I format the F and G partitions the way my PC tells me I need to? On which one do I mount Raspbian? You can't mount Raspbian partitions on a PC running Windows. What you can do is wr...
by markkuk
Fri Jan 11, 2019 9:44 am
Forum: Beginners
Topic: Make my pi secure
Replies: 4
Views: 394

Re: Make my pi secure

Start by reading the "Securing your Raspberry Pi" guide: https://www.raspberrypi.org/documentati ... ecurity.md
by markkuk
Mon Dec 31, 2018 11:28 am
Forum: General discussion
Topic: Question about selling my code on a RP
Replies: 7
Views: 496

Re: Question about selling my code on a RP

All those imports are code written--and licensed--by someone else. That mans your probably don't have any right to *sell* those modules to anyone else If the modules are licensed under GPL or other Free Software licenses you are free to sell them (as long as you follow the license rules): https://w...
by markkuk
Fri Dec 28, 2018 9:45 am
Forum: Beginners
Topic: My raspberry pi 3 can t exit from the boot page
Replies: 3
Views: 225

Re: My raspberry pi 3 can t exit from the boot page

Have you gone through the checks on the Boot Problems Sticky theread on the Troubleshooting forum? What exactly do you mean by "the boot screen"? Which OS are you using?
by markkuk
Thu Dec 27, 2018 11:58 am
Forum: Advanced users
Topic: config.txt file kernel reading procedure
Replies: 9
Views: 1170

Re: config.txt file kernel reading procedure

The Linux kernel doesn't read config.txt. The bootloader running on the Videocore GPU reads the config.txt file and builds the kernel command line based on config.txt and cmdline.txt.
by markkuk
Sun Dec 23, 2018 10:11 am
Forum: Python
Topic: NameError: name 'ws' is not defined *Please HELP*
Replies: 3
Views: 784

Re: NameError: name 'ws' is not defined *Please HELP*

Check that the package was installed correctly with:

Code: Select all

pip3 show Adafruit-WS2801
Note the use of dash instead of underscore.

Python language is case sensitive. You must type the command exactly as in the example with correct capitalization:

Code: Select all

import Adafruit_WS2801
import Adafruit_GPIO.SPI as SPI
by markkuk
Sat Dec 22, 2018 9:49 pm
Forum: Python
Topic: NameError: name 'ws' is not defined *Please HELP*
Replies: 3
Views: 784

Re: NameError: name 'ws' is not defined *Please HELP*

WS2801 LEDs aren't NeoPixels, both your physical connection and the software are wrong. See this tutorial for connecting WS2801 strips: https://tutorials-raspberrypi.com/how-t ... led-strip/
by markkuk
Wed Dec 12, 2018 9:17 pm
Forum: General discussion
Topic: PIGPIO REMOTE FROM WINDOWS
Replies: 3
Views: 326

Re: PIGPIO REMOTE FROM WINDOWS

You will likely need to design your program running on your PC (Windows) as a "Client" and design a program on the Pi with network socket / server functionality in mind. No, the pigpio library and pigpiod service will take care of all that automatically. Just specify at library initialisation time ...
by markkuk
Tue Dec 04, 2018 12:07 pm
Forum: Automation, sensing and robotics
Topic: Reading sensor
Replies: 1
Views: 608

Re: Reading sensor

Install the Adafruit DHT library. AM2302 is not a Dallas 1-wire sensor, it's a DHT22 in a different package.
by markkuk
Tue Nov 27, 2018 9:25 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Muliple I2C Slaves: Resistors Needed?
Replies: 4
Views: 1364

Re: Muliple I2C Slaves: Resistors Needed?

No, no, no, no, no and none.
by markkuk
Wed Nov 21, 2018 10:45 am
Forum: General discussion
Topic: New to this - connecting Pi to home stereo
Replies: 2
Views: 459

Re: New to this - connecting Pi to home stereo

AV receivers like your NAD typically convert any analog input signals to digital for internal processing, so it would be best to use a digital connection to the AVR. Either use the builtin HDMI output on the Pi or get the Hifiberry Digi+ instead of Dac+. If ease of use is most important, then I woul...
by markkuk
Wed Nov 14, 2018 10:56 am
Forum: General discussion
Topic: how to set date and time to Raspberrypi Module
Replies: 5
Views: 238

Re: how to set date and time to Raspberrypi Module

Which "example programs" are you using and what is the error you are getting? Please post the actual command line you entered and all responses that were displayed.
by markkuk
Mon Nov 05, 2018 8:35 pm
Forum: Python
Topic: [solved] Python SQL variable question
Replies: 2
Views: 240

Re: Python SQL variable question

The documentation for MySQLCursor.execute() has the following note:
In Python, a tuple containing a single value must include a comma. For example, ('abc') is evaluated as a scalar while ('abc',) is evaluated as a tuple.
Try defining the single parameter value as:

Code: Select all

(dayID,)
by markkuk
Sat Nov 03, 2018 9:31 pm
Forum: Networking and servers
Topic: Let NTPd defer to PCF8523 RTC when no active network
Replies: 5
Views: 404

Re: Let NTPd defer to PCF8523 RTC when no active network

The reason for asking is that the PCF8523 drifts a bit consistently and I'd prefer to nudge it back on track during the moments there is network access but would like it to happen automatically rather than manually. The Linux kernel does that automatically, you don't need to do anything other than ...
by markkuk
Thu Nov 01, 2018 8:50 pm
Forum: Beginners
Topic: flow control & branching,
Replies: 4
Views: 240

Re: flow control & branching,

You should read chapter 4 of the Python tutorial. There's no "goto" in Python.
by markkuk
Sun Oct 28, 2018 9:49 am
Forum: General discussion
Topic: How do you build entire Raspberian from sources
Replies: 10
Views: 1048

Re: How do you build entire Raspberian from sources

There was a paper written that discussed just how far down this problem extends. It is--at least in theory--possible to create a modified compiler that injects "holes" into anything compiled, including the compiler itself, and then restore the compiler source code so that the "injection" code isn't...
by markkuk
Sat Oct 27, 2018 12:13 pm
Forum: Advanced users
Topic: Using available kernel driver instead of user-space driver?
Replies: 5
Views: 1125

Re: Using available kernel driver instead of user-space driver?

Thanks for your quick reply! I will try it out later. Where would I have to search if I want to find documentation about the driver's interface, i.e. how to get the data out of the device and how to configure it? It's an Industrial IO (IIO) device: https://wiki.analog.com/software/linux/docs/iio/ii...
by markkuk
Tue Oct 16, 2018 4:12 pm
Forum: Beginners
Topic: Raspberry pi 3 b+ / Java
Replies: 1
Views: 260

Re: Raspberry pi 3 b+ / Java

Swing is part of the Java standard library (Java Foundation Classes), so it doesn't need any separate installation. If you have installed a JDK you can compile and run Swing programs.
by markkuk
Wed Oct 10, 2018 6:57 am
Forum: General discussion
Topic: Use pigs to control led strip
Replies: 4
Views: 403

Re: Use pigs to control led strip

The led strip shut down, I can't power up the three color in same time, I can power up 2 color at the same time, when I power up the third color, every led shut down. The first thing you should check is the LED power supply. It could be overloading and shutting down when you try to use all three co...
by markkuk
Sun Oct 07, 2018 9:42 am
Forum: Beginners
Topic: OS names / current / latest vesrion ?
Replies: 7
Views: 537

Re: OS names / current / latest vesrion ?

AnneCreek wrote:
Sun Oct 07, 2018 12:34 am
Are there any current issues / resolved issues published - like in Github?
The Raspberry Pi Foundation has a GitHub page: https://github.com/raspberrypi/
The Raspbian Linux distribution uses Launchpad for issue tracking: https://bugs.launchpad.net/raspbian
by markkuk
Wed Oct 03, 2018 10:18 am
Forum: Automation, sensing and robotics
Topic: LC Technologies BME280
Replies: 2
Views: 505

Re: LC Technologies BME280

You need four wires: 3.3V, ground, SDA and SCL. The breakout connections appear clearly labeled, see pinout.xyz for Raspberry Pi connections. The picture shows that you are missing the SDA wire to RPi pin 3.

Go to advanced search