Go to advanced search

by geektechstuff.com
Wed Oct 14, 2020 9:51 pm
Forum: Troubleshooting
Topic: Visual studio code ssh to Pi fails
Replies: 22
Views: 609

Re: Visual studio code ssh to Pi fails

I installed VSC version The complete error message is remote-ssh@0.47.2 [01:29:08.607] Install terminal quit with output: Failed to get SSH credentials: Error in request: socket hang up ["/usr/share/code/code","/home/uma/.vscode/extensions/ms-vscode-remote.remote-ssh-0.47.2/out/askpass-main.js","Wa...
by geektechstuff.com
Wed Aug 26, 2020 4:14 pm
Forum: Troubleshooting
Topic: Unable to run a Python script
Replies: 21
Views: 519

Re: Unable to run a Python script

It does read like the Pi may be losing connectivity - could you leave a ping command running and see if any packets drop?

Also, can you post the Python script on here using the Code option?
by geektechstuff.com
Tue Aug 04, 2020 3:37 pm
Forum: Beginners
Topic: Pi-hole Setup
Replies: 4
Views: 280

Re: Pi-hole Setup

Have you configured devices to point to the Pi-Hole device for DNS or configured your home router to point to the Pi-Hole device for DNS (so that devices should automatically go to it for DNS)?
by geektechstuff.com
Mon Jul 27, 2020 6:18 pm
Forum: General discussion
Topic: Install Python IDE on Raspberry pi 4
Replies: 10
Views: 670

Re: Install Python IDE on Raspberry pi 4

From the terminal, if you ping raspbian.raspberrypi.org does it resolve to an IP address and respond?
by geektechstuff.com
Fri Jul 17, 2020 4:25 pm
Forum: Python
Topic: CRON: Pyscreenshot all backends failed
Replies: 2
Views: 240

Re: CRON: Pyscreenshot all backends failed

pcmanbob's answer is probably correct, but out of curiosity you are running the Python with sudo, are you using the regular users crontab or the sudo crontab (i.e. crontab -e or sudo crontab -e)?
by geektechstuff.com
Thu Jun 25, 2020 11:23 pm
Forum: Python
Topic: No sound with VLC using Python script
Replies: 1
Views: 231

Re: No sound with VLC using Python script

Does it work if you use:

Code: Select all

 python3 /home/pi/Documents/myScript.py 
by geektechstuff.com
Wed Jun 10, 2020 6:24 pm
Forum: Ubuntu
Topic: VS code - Python NOT compile
Replies: 3
Views: 293

Re: VS code - Python NOT compile

Hello.I have a strange problem with VS code and Python 3.7.5 . I have written a program ,but when I change something and and run it (python3 program.py) it doesn't change anything... (the path is correct) I use Linux Ubuntu. What is happening? VSCode generally has a green play button in the top rig...
by geektechstuff.com
Wed Jun 10, 2020 12:41 pm
Forum: Python
Topic: "No such file or directory"
Replies: 6
Views: 434

Re: "No such file or directory"

Hello, For the first project which is the LED Blinking project, I tried python program but after I put in the "cd ~/Freenove_Kit/Code/Python_Code/01.1.1_Blink", and ran the program. The result says "No such file or directory" a number of times. I checked to make sure I downloaded the file with the ...
by geektechstuff.com
Fri Jun 05, 2020 1:37 pm
Forum: Beginners
Topic: log file access
Replies: 9
Views: 311

Re: log file access

How are you opening the script at start up?
by geektechstuff.com
Thu Jun 04, 2020 8:51 am
Forum: Python
Topic: Errors while connecting 2 pi as server & client
Replies: 8
Views: 487

Re: Errors while connecting 2 pi as server & client

Hi your client is trying to send a string, but sockets will require it to be encoded before it is sent, try adjusting your client program with the following lines replacing your sock.send line.

Code: Select all

command_encoded = command.encode(‘utf-8’)
sock.send(command_encoded)
by geektechstuff.com
Wed Jun 03, 2020 8:37 am
Forum: Beginners
Topic: cronjob no access to mounted directory
Replies: 2
Views: 153

Re: cronjob no access to mounted directory

Hi, after a lot of try and error I was able to solve this. The mounted drive is owned by user pi, so I startet crontab for user pi with this command: sudo crontab -e -u pi Is there a reason you are using sudo to create crontabs? If you are logged in as pi and just use crontab -e it will create/use ...
by geektechstuff.com
Sun May 31, 2020 5:05 pm
Forum: Python
Topic: how to transfer data from sensor results to a text file
Replies: 5
Views: 450

Re: how to transfer data from sensor results to a text file

Im running light sensors and they are giving me data on how dark or bright it is. Is there anything i can do to make the results of the data copy onto a text file automatically? I did something similar a while ago. I defined a few functions to get sensor readings from a BMP280 sensor (temp and pres...
by geektechstuff.com
Wed May 20, 2020 4:53 pm
Forum: Python
Topic: Moving data between file
Replies: 3
Views: 228

Re: Moving data between file

I have a simple program (python.. Rpi ZERO) that collects data. Ever now and then I would like to write a few bits of data to a text file for later research. I have figured out the data collection part (after a few HOURS) but I would like to know how to write the results to a text file... Could som...
by geektechstuff.com
Tue May 05, 2020 12:09 pm
Forum: Advanced users
Topic: Elasticsearch (ELK)
Replies: 11
Views: 5848

Re: Elasticsearch (ELK)

Has anyone installed Elasticsearch (ELK) on a Raspberry pi 4 successfully? If so, would you happen to have the steps/procedure? Thanks GW The whole ELK stack or just ElasticSearch and Kibana? An older version of ElasticSearch can be installed using: sudo apt-get update sudo apt-get upgrade sudo apt...
by geektechstuff.com
Sun Mar 15, 2020 6:45 pm
Forum: Advanced users
Topic: Can I cache downloaded updates for multiple PIs?
Replies: 15
Views: 1321

Re: Can I cache downloaded updates for multiple PIs?

I've been using an apt-cache on my Raspberry Pi devices since the end of January. I'm a fan of how easy it was to set up:

https://geektechstuff.com/2020/01/20/us ... pberry-pi/
by geektechstuff.com
Wed Jan 22, 2020 12:33 pm
Forum: Beginners
Topic: Please Help, Locked Out
Replies: 18
Views: 1396

Re: Please Help, Locked Out

To start, I would like to mention that I am new, really new, like days old. Anyways, I accidentally logged out of my raspberry pi. Now it has taken me to bash. It just says raspberrypi login: pi (automatic login) it also says Raspbian GNU/Linux 10 raspberrypi tty1 at the top. I have tried logging i...
by geektechstuff.com
Wed Jan 22, 2020 12:30 pm
Forum: General discussion
Topic: Putty Alternative For Mac User
Replies: 11
Views: 1285

Re: Putty Alternative For Mac User

I'm using Mac system and now i'm looking the alternative Putty software and detailed review on different software. Here i came to get to know the best list of alternative Putty software for mac. I echo the use of Terminal on Mac. Is there a reason you are going towards PuTTY type software other tha...
by geektechstuff.com
Tue Jan 21, 2020 8:33 pm
Forum: Troubleshooting
Topic: apt-get upgrade raspberrypi-kernel -> rpi-update ritual
Replies: 18
Views: 2856

Re: apt-get upgrade raspberrypi-kernel -> rpi-update ritual

I'm using several Raspberry Pis since years and I had to develop what I'm calling "apt-get upgrade raspberrypi-kernel -> rpi-update ritual" over the years, as the pattern doesn't change and occurs yearly 2-3 times, today with raspberrypi-kernel:armhf (1.20190925+1-1, 1.20200114-1) on both a 3B and ...
by geektechstuff.com
Tue Jan 21, 2020 3:55 pm
Forum: Gaming
Topic: How do I create game for the Raspberry Pi?
Replies: 29
Views: 3618

Re: How do I create game for the Raspberry Pi?

I echo james' suggestion of Code The Classics (I did an overview of the book here: https://geektechstuff.com/2020/01/01/co ... ew-python/), but would also suggest Wireframe magazine (they have monthly Python coding bits).
by geektechstuff.com
Mon Jan 20, 2020 10:52 pm
Forum: Troubleshooting
Topic: ValueError: Could not find a format to read the specified file in mode 'i'
Replies: 2
Views: 342

Re: ValueError: Could not find a format to read the specified file in mode 'i'

I might be wrong, but it looks like your program is trying to read a file type that it cannot handle. The link you provided is using a try/except to work around this, with something similar to the below: for d in directories: try: label_directory = os.path.join(data_directory,d) file_names = [os.pat...
by geektechstuff.com
Thu Jan 16, 2020 1:03 pm
Forum: Beginners
Topic: Opening ports in Raspbian Buster Full
Replies: 3
Views: 865

Re: Opening ports in Raspbian Buster Full

UFW can be installed and configured with a few lines in the terminal.

https://geektechstuff.com/2019/06/22/in ... pberry-pi/ <-may help.
by geektechstuff.com
Tue Jan 14, 2020 12:14 pm
Forum: General discussion
Topic: Raspberry pi 4 not booting after plugin camera ribbon in wrong side
Replies: 5
Views: 487

Re: Raspberry pi 4 not booting after plugin camera ribbon in wrong side

Hello! i mistakenly inserted camera cable in wrong side.The pi suddenly restarted after that and has been stuck on rainbow screen. I also purchased a new sd card but still it has been stuck on rainbow screen. Before that my pi was working fine. Please help me if you got any solution. I have tried m...
by geektechstuff.com
Mon Jan 13, 2020 10:16 pm
Forum: Java
Topic: good java IDE with Intellisense
Replies: 5
Views: 1581

Re: good java IDE with Intellisense

https://geektechstuff.com/2019/06/08/in ... pberry-pi/

Intellij was a no go for me on the Pi3 (write up on above link). Personally I use Visual Studio Code running over SSH to the Pi.

Does Eclipse generate any errors?
by geektechstuff.com
Mon Dec 30, 2019 4:12 pm
Forum: General discussion
Topic: Search terms Need Help
Replies: 4
Views: 299

Re: Search terms Need Help

I want to set up a way for an end user to be able to modify elements of a python file through a GUI. I would like something like a web interface that would load up the elements we want them to define values for and when they submit the file it makes those changes in the python file. I've been looki...
by geektechstuff.com
Sun Nov 10, 2019 1:53 pm
Forum: Python
Topic: No Heartbeat found in pulse sensor
Replies: 6
Views: 815

Re: No Heartbeat found in pulse sensor

Have you tried running it in Python3 rather than Python 2?

Go to advanced search