Go to advanced search

by markkuk
Mon Feb 17, 2020 9:14 am
Forum: Raspbian
Topic: Rasbpian Buster Lite - Default Password Issue
Replies: 1
Views: 52

Re: Rasbpian Buster Lite - Default Password Issue

vincelatz wrote:
Sun Feb 16, 2020 7:56 pm
4. I entered pi as username and then rasberry as password and get an access denied message every time.

5. I typed out rasberry in the user field once just to see that the keyboard was working properly - it’s not a keyboard issue.
The default password is raspberry.
by markkuk
Thu Feb 13, 2020 12:47 pm
Forum: General discussion
Topic: need to upgrade python
Replies: 11
Views: 456

Re: need to upgrade python

ankith26 wrote:
Thu Feb 13, 2020 12:30 pm
No one can read the original source.
Not true, the .exe file can be unpacked and the embedded byte codes decompiled:
https://blog.f-secure.com/how-to-decomp ... on-binary/
by markkuk
Tue Feb 04, 2020 11:10 am
Forum: General discussion
Topic: Raspberry Pi with digital audio output to amplifier using Spotify
Replies: 5
Views: 203

Re: Raspberry Pi with digital audio output to amplifier using Spotify

1. Can I do this on a Pi 3? As I said, I'm trying to do this as cheaply as possible. A Pi Zero W would probably be sufficient. 2. Must I get an expansion board for the digital audio output? I notice the Pi comes with a 3.5mm jack, is this just analogue? There's digital audio output on the HDMI conn...
by markkuk
Thu Jan 30, 2020 7:16 am
Forum: Advanced users
Topic: How best to log 12 volt lead acid battery voltage with a Raspberry Pi?
Replies: 3
Views: 497

Re: How best to log 12 volt lead acid battery voltage with a Raspberry Pi?

I think the simplest solution would be using an integrated voltage/current/power monitoring chip such as INA226 . You can get breakout boards from the usual sources, just check that the shunt resistor is suitable for your maximum current. Code examples for reading the chip on a RPi: https://github.c...
by markkuk
Tue Jan 28, 2020 7:54 am
Forum: Python
Topic: Trouble writing BME280 sensor data to mariadb
Replies: 8
Views: 359

Re: Trouble writing BME280 sensor data to mariadb

You already have the loop in your code, just move the code to read the sensor inside it: #!/usr/bin/python import mysql.connector as mariadb import bme280 import smbus2 from time import sleep mariadb_connection = mariadb.connect(user='pi', password='password', database='weather') cursor = mariadb_co...
by markkuk
Tue Jan 28, 2020 6:42 am
Forum: Python
Topic: Trouble writing BME280 sensor data to mariadb
Replies: 8
Views: 359

Re: Trouble writing BME280 sensor data to mariadb

1. You don't need the interval variable. Looks like you copied some Arduino code, busy looping with time comparision isn't the right approach for RPi/Linux code. 2. You're reading the sensor values once at the start of your program, then writing the same values to the database once per hour. If you ...
by markkuk
Mon Jan 27, 2020 7:03 pm
Forum: Python
Topic: Trouble writing BME280 sensor data to mariadb
Replies: 8
Views: 359

Re: Trouble writing BME280 sensor data to mariadb

There's a comma missing between the query string and the parameters. The statement should be:

Code: Select all

cursor.execute("INSERT INTO weather(AMBIENT_TEMPERATURE, AIR_PRESSURE, HUMIDITY) VALUES (%s,%s,%s);", (humidity, pressure, temperature))
by markkuk
Sun Jan 26, 2020 7:49 am
Forum: Beginners
Topic: SD card not formatting
Replies: 6
Views: 275

Re: SD card not formatting

jahboater wrote:
Sun Jan 26, 2020 2:35 am
Micro SD cards do not have that notch.
No, but MicroSD to SD adapters have one. If the OP is using such an adapter it could be the cause of the problem.
by markkuk
Sat Jan 25, 2020 8:51 am
Forum: General discussion
Topic: Running a script on autostart using rc.local
Replies: 3
Views: 197

Re: Running a script on autostart using rc.local

The script can't find the directory specified in the cd command and fails. Learn about the difference between relative and absolute paths: https://www.geeksforgeeks.org/absolute- ... ames-unix/, then fix your script to use absolute paths.
by markkuk
Thu Jan 23, 2020 7:50 am
Forum: Beginners
Topic: SPI simple question
Replies: 2
Views: 84

Re: SPI simple question

How I can use bcm2835 SPI Timer with python like in arduino? You can't. The timers on the SOC are under control of the operating system, and you use the defined APIs instead of accessing the hardware registers directly. If you really want to program on the "bare metal" level, Python isn't the right...
by markkuk
Wed Jan 22, 2020 5:47 am
Forum: Networking and servers
Topic: Two questions about using RPi 4 as an access point
Replies: 4
Views: 381

Re: Two questions about using RPi 4 as an access point

Your server code listens to address 127.0.0.1 which is the local loopback address. The server won't receive anything from external devices using that address. Try "0.0.0.0" instead.
by markkuk
Tue Jan 21, 2020 11:07 am
Forum: General discussion
Topic: Testing analog camera shutter speeds
Replies: 2
Views: 163

Re: Testing analog camera shutter speeds

Now I need to display the intensity of the light and display that value - I’ve been instructed to use a light to frequency counter but I don’t know how to input that information into the Raspberry Pi and display that information in EV (Exposure Value) instead of Lux. Lux to EV conversion formula ca...
by markkuk
Mon Jan 20, 2020 11:19 am
Forum: Networking and servers
Topic: Two questions about using RPi 4 as an access point
Replies: 4
Views: 381

Re: Two questions about using RPi 4 as an access point

1. The next step is choosing which protocol you want to use to communicate between the RPi and the sensor boards. MQTT is one popular option, but HTTP is also possible.

2. What kind of Arduino boards are you using? Have you been able to connect to other APs than the RPi-based one with them?
by markkuk
Sat Jan 18, 2020 9:25 am
Forum: Beginners
Topic: connecting to my Pi via WiFi directly, like a Hot Spot
Replies: 1
Views: 93

Re: Project Help

frankoprussian wrote:
Fri Jan 17, 2020 10:30 pm
Hello all,
Im looking to connecting to my Pi via WiFi directly, like a Hot Spot to control some LEDs via a webpage
See here: https://www.raspberrypi.org/documentati ... s-point.md
by markkuk
Sat Jan 18, 2020 9:22 am
Forum: Beginners
Topic: pymssql install command line ?
Replies: 3
Views: 3124

Re: pymssql install command line ?

Vink wrote:
Fri Jan 17, 2020 6:48 pm
Was this ever resolved?
Yes, the answer given by RaTTuS is correct. Notice that you need to install python3-pymssql for Python 3.
by markkuk
Wed Jan 15, 2020 11:15 am
Forum: Beginners
Topic: node.js vs flask vs both?
Replies: 2
Views: 104

Re: node.js vs flask vs both?

Flask can handle updating your web page,either through AJAX or by WebSockets. You will need some JS code on the client side in either case.
by markkuk
Fri Jan 03, 2020 12:38 pm
Forum: General discussion
Topic: Linux 32-bit apps on ARM
Replies: 12
Views: 776

Re: Linux 32-bit apps on ARM

According to the web site, "The GUI is a java program that can run on any PC windows/linux/mac computer". So it should work on a RPi with OpenJDK Java runtime installed.
by markkuk
Fri Dec 20, 2019 8:40 am
Forum: General discussion
Topic: File Manager program execution
Replies: 12
Views: 392

Re: File Manager program execution

Is it being run with the same version of Python? As far as I know there is only one version of Python on the system. By default Raspbian has both Python2 and Python3. If your program uses any add-on Python modules they must be installed for the correct Python version. Is it run with the same option...
by markkuk
Thu Dec 05, 2019 10:21 pm
Forum: Beginners
Topic: Adding RTC & NTP server to RPI 4 running PiHole & Unbound
Replies: 5
Views: 371

Re: Adding RTC & NTP server to RPI 4 running PiHole & Unbound

After enabling the RTC, the kernel will keep it updated without me needing to schedule anything. How does it know where to get the reference time from? NTPd adjusts the kernel time using the special adjtime and ntp_adjtime system calls. See "man ntp_adjtime" and https://www.eecis.udel.edu/~ntp/ntpf...
by markkuk
Thu Dec 05, 2019 7:27 pm
Forum: Beginners
Topic: Adding RTC & NTP server to RPI 4 running PiHole & Unbound
Replies: 5
Views: 371

Re: Adding RTC & NTP server to RPI 4 running PiHole & Unbound

1) What software is responsible to update the RTC chip with time from a remote NPD server (x.north-america.pool.ntp.org)? 3) How do I ensure the RTC chip gets updated when needed? My 2 systems run 24/7 with reboots only when I am updating stuff. The Linux kernel updates the RTC every 11 minutes whe...
by markkuk
Sun Dec 01, 2019 9:31 am
Forum: C/C++
Topic: UART Problem
Replies: 17
Views: 788

Re: UART Problem

Don't try to change the properties of the device, add your user to the "dialout" group instead. For example:

Code: Select all

sudo adduser pi dialout
by markkuk
Tue Nov 26, 2019 7:11 am
Forum: Beginners
Topic: Question on headless mode
Replies: 21
Views: 1028

Re: Question on headless mode

dcaccount wrote:
Tue Nov 26, 2019 5:34 am
- is it possible to run a GUI using Rpi only in headless mode?
Yes, you can use a remote desktop GUI on a headless Pi. It's up to you to decide if that is useful.
by markkuk
Thu Nov 21, 2019 1:04 pm
Forum: General programming discussion
Topic: Tatami Pi Fun.
Replies: 287
Views: 16851

Re: The Tatami-Free Rooms coding challenge.

If some kind soul has a Pi 4 I'd love to know how my latest effort, above, stacks up against the current performance leader. I likely won;t see a Pi 4 here until Christmas. Pi 4 4GB, Raspbian Buster (with GUI desktop), rustc 1.39.0: [email protected]:~/projects/tatami $ /usr/bin/time target/release/tatami T(...
by markkuk
Tue Nov 19, 2019 3:35 pm
Forum: Raspbian
Topic: How can I install a downloaded appimage?
Replies: 1
Views: 406

Re: How can I install a downloaded appimage?

https://docs.appimage.org/introduction/ ... n-appimage
AppImages are CPU architecture specific, an AppImage for Intel architecture processors won't run on a RPi.
by markkuk
Mon Nov 18, 2019 8:28 am
Forum: Beginners
Topic: Communication between RaspberryPi 2 and ESP32
Replies: 1
Views: 137

Re: Communication between RaspberryPi 2 and ESP32

alexdupond wrote:
Sun Nov 17, 2019 8:22 pm
Would it be possible to setup the RaspberryPi as an access point and setup a Mqtt broker on the raspberry and then connect to that access point from the ESP32 modules?
Yes, see: https://www.raspberrypi.org/documentati ... s-point.md

Go to advanced search