Go to advanced search

by jbudd
Wed Jan 08, 2020 10:25 am
Forum: Troubleshooting
Topic: Shutdown via PHP
Replies: 10
Views: 840

Re: Shutdown via PHP

Can the browser create a file in /tmp?
A process running outside of the protected web server could watch for the presence of a file eg /tmp/shutmedown and run sudo shutdown -h now
by jbudd
Wed Jan 08, 2020 10:09 am
Forum: Troubleshooting
Topic: Can't log
Replies: 2
Views: 155

Re: Can't log

Do you have a USB SD card reader and another SD card? With those you can burn a fresh Raspbian card which will let you mount and edit your current setup on the Pi itself. If you only have a Windows PC you could boot it from a Linux Live CD/DVD or USB stick (I often use Linux Mint on a DVD). Then the...
by jbudd
Wed Jan 08, 2020 9:55 am
Forum: General discussion
Topic: Is there any resolution to protect GPIO pins of Raspberry Pi 3 B+?
Replies: 20
Views: 991

Re: Is there any resolution to protect GPIO pins of Raspberry Pi 3 B+?

DIY solution.....but not for the faint at heart.... But the OP had their gpio pins protected by a hat, so if there was a short it seems most likely to have occurred on the bottom of the board. Most of us know that if you connect 5V to a gpio pin or to the wifi can the Pi 3B+ dies but I haven't seen...
by jbudd
Sun Jan 05, 2020 11:56 am
Forum: General discussion
Topic: Fan Controller - Which way to do it?
Replies: 3
Views: 457

Re: Fan Controller - Which way to do it?

According to Noctua https://noctua.at/en/nf-s12a-pwm their PWM enabled fan(s) have "Noctua's novel, custom-designed NE-FD1 PWM IC that integrates Smooth Commutation Drive (SCD) technology. By providing smoother torque impulses, SCD suppresses PWM switching noises and thus makes the fan quieter at lo...
by jbudd
Sun Jan 05, 2020 1:01 am
Forum: General discussion
Topic: Connecting Raspberry Pi to Android Phone
Replies: 6
Views: 971

Re: Connecting Raspberry Pi to Android Phone

I just want to be able to send simple strings of text back and forth between the two devices. Maybe run an MQTT broker (Mosquitto) on the Pi and a client on the Android. There are various Android MQTT dashboard apps, eg "MQTT Dash", "MQTT Dashboard". So long as Pi and Android are connected to the s...
by jbudd
Fri Jan 03, 2020 12:27 am
Forum: Troubleshooting
Topic: Help installing Pi Hole on Raspbian
Replies: 5
Views: 243

Re: Help installing Pi Hole on Raspbian

Have you run sudo apt update and sudo apt upgrade?
by jbudd
Wed Jan 01, 2020 2:45 am
Forum: Beginners
Topic: Only red PWR light, no green ACT light even with no SD card
Replies: 5
Views: 426

Re: Only red PWR light, no green ACT light even with no SD card

clydefrogg wrote: I haven't been able to get it to boot up yet clydefrogg wrote: I initially got it to run Hassio for HA These two statements are incompatible. Maybe what clydefrogg meant us to understand is a) s/he hasn't been able to get it to boot up yet and b) s/he initially acquired it to run ...
by jbudd
Tue Dec 31, 2019 4:32 pm
Forum: Teaching and learning resources
Topic: Wifi Library
Replies: 3
Views: 1342

Re: Wifi Library

I seem to recall a project called "Internet in a box" which did something like that
by jbudd
Tue Dec 31, 2019 2:48 pm
Forum: Beginners
Topic: Running a python script in a terminal on boot?
Replies: 7
Views: 409

Re: Running a python script in a terminal on boot?

It's possible to do lxterminal --working-directory=/path/to/my/script but I suspect you will still need ./
by jbudd
Tue Dec 31, 2019 2:34 pm
Forum: Beginners
Topic: Running a python script in a terminal on boot?
Replies: 7
Views: 409

Re: Running a python script in a terminal on boot?

Edit - Sorry irrelevant, deleted!
by jbudd
Tue Dec 31, 2019 2:22 pm
Forum: Beginners
Topic: Running a python script in a terminal on boot?
Replies: 7
Views: 409

Re: Running a python script in a terminal on boot?

i thought i explained my problem, i can't do python3 /path/to/my/script/myscript.py because the script relies on other files in its directory and i can't do cd /path/to/my/script && python3 ./myscript.py using lxterminal -e as the cd command doesn't work with it apparently. What you said you tried ...
by jbudd
Tue Dec 31, 2019 10:32 am
Forum: Beginners
Topic: Running a python script in a terminal on boot?
Replies: 7
Views: 409

Re: Running a python script in a terminal on boot?

lxterminal -e cd /path/to/my/script && sudo python3 myscript.py but it looks like the cd command doesn't work cause it outputs "python3: can't open file 'myscript.py' : [Errno 2] No such file or directory." Python3 will look for myscript.py in the directories listed in [it's version of] the $PATH e...
by jbudd
Tue Dec 31, 2019 1:01 am
Forum: General discussion
Topic: Weather Fax - need hardware advice
Replies: 7
Views: 962

Re: Weather Fax - need hardware advice

Should I purchase a Raspberry Pi 4 or 3B? If a 4, should I purchase 1, 2, or 4 gigs of ram? Please remember I don't plan to use the pi for anything other than what is listed above and saving power is very important to me. I can't comment about downloading or converting your weather fax images, I ha...
by jbudd
Wed Dec 25, 2019 9:07 am
Forum: Troubleshooting
Topic: RPI4 not going up after reboot
Replies: 4
Views: 294

Re: RPI4 not going up after reboot

No one having a similar problem? I do have the same problem with my Pi 4B. sudo reboot causes the Pi to shut down (at least, it terminates ssh connections and the desktop) but not reboot. It runs Rabspbian and is fully updated. This is the only Pi I have connected to my router by Ethernet cable. It...
by jbudd
Wed Dec 18, 2019 1:30 pm
Forum: General discussion
Topic: PLEASE HELP!! /// SEEKING PROGRAMMING EXPERIENCE ADVICE!!
Replies: 90
Views: 4455

Re: PLEASE HELP!! /// SEEKING PROGRAMMING EXPERIENCE ADVICE!!

Python is a very nice language but frustrating for a beginner that program flow is invisibly affected by line indentation.

I guess it's an important lesson in any language though: computers are very picky about precise punctuation.
by jbudd
Wed Dec 18, 2019 12:13 pm
Forum: General discussion
Topic: how to run a script on startup
Replies: 5
Views: 347

Re: how to run a script on startup

What is your script for? "On startup" means run it when the operating system starts. (Cron is good for this) But some scripts need to start when you login to the command line (~/.bashrc) Or when the desktop starts... A big advantage to systemd is that you can make the script start up again if it die...
by jbudd
Mon Dec 16, 2019 11:32 pm
Forum: General discussion
Topic: New Raspberry Pi user
Replies: 7
Views: 421

Re: New Raspberry Pi user

I want to get really simple devices that work super easy with laptops (maybe wireless). The on-screen review must also be super simple. Does anyone have any ideas? For the on screen display, Node-Red with Node-Red dashboard. Easily display graphs, gauges etc on a web page. Send notifications at tri...
by jbudd
Mon Dec 16, 2019 6:34 pm
Forum: General discussion
Topic: PLEASE HELP!! /// SEEKING PROGRAMMING EXPERIENCE ADVICE!!
Replies: 90
Views: 4455

Re: PLEASE HELP!! /// SEEKING PROGRAMMING EXPERIENCE ADVICE!!

I have personally always been a big fan of learning from books, and I feel that works really well for me. One of my all time favourites is CODE by Charles Petzold. It’s simple, untangled explanations of how computer hardware works at it’s essence is (in my opinion) the gold standard for learning ma...
by jbudd
Mon Dec 16, 2019 1:59 am
Forum: Beginners
Topic: Create image from sd card?
Replies: 4
Views: 298

Re: Create image from sd card?

Win32DiskImager, which used to be the recommended tool to burn images to the SD card, can also be used to save an image of the card.
Just enter a filename that doesn't already exist and click Read
by jbudd
Sun Dec 15, 2019 5:06 am
Forum: Beginners
Topic: Limited Scope File Permission question
Replies: 3
Views: 210

Re: Limited Scope File Permission question

Have you got a PC with an SD card reader? You can edit files in the /boot partition from Windows.
by jbudd
Sun Dec 08, 2019 1:43 pm
Forum: Beginners
Topic: Wifi connectivity issue in Raspberry pi 4
Replies: 4
Views: 309

Re: Wifi connectivity issue in Raspberry pi 4

Is your Pi running Raspbian?

What part of the world are you in?
What country code do you have in /etc/wpa_supplicant/wpa_supplicant.conf?
Does your router have a country code setting?
by jbudd
Sat Nov 30, 2019 3:17 pm
Forum: Beginners
Topic: Setting Up Raspberry Pi 4 with ethernet cable
Replies: 2
Views: 333

Re: Setting Up Raspberry Pi 4 with ethernet cable

Why do you need the Pis IP address , name? Are you trying to set it up without a keyboard and monitor?
Where does the ethernet cable go to?
Did you load NOOBS or Raspbian onto your SD card?
by jbudd
Sat Nov 30, 2019 5:48 am
Forum: General discussion
Topic: Pi4 Performance testing
Replies: 5
Views: 596

Re: Pi4 Performance testing

In Node-Red: Hamburger menu | Manage Palette | Install tab. Search for node-red-dashboard and Install
by jbudd
Sat Nov 30, 2019 12:44 am
Forum: General discussion
Topic: Pi4 Performance testing
Replies: 5
Views: 596

Re: Pi4 Performance testing

Here is a simplified reconstruction of the graph in the blog - no moving average, frequency scaled to work with a common y axis, etc. A script to gather the statistics pi@RainbowPi:~ $ cat foo.py #! /usr/bin/env python import os import time time.sleep(1) # CPU frequency - do this first hoping to cat...
by jbudd
Fri Nov 29, 2019 12:52 am
Forum: General discussion
Topic: Pi4 Performance testing
Replies: 5
Views: 596

Re: Pi4 Performance testing

The line graphs look like fairly simple Node-Red time series charts using the node-red-dashboard functions.

I use it to draw a similar temperature and frequency graph for my Pi, will happily share the code if you want it

Go to advanced search