Go to advanced search

by Jeffrey.j
Sun May 27, 2018 10:28 pm
Forum: Beginners
Topic: GPU & CPU Temp in Fahrenheit
Replies: 28
Views: 9439

Re: GPU & CPU Temp in Fahrenheit

Yes, in one form or another, but what advantage do you think that would have? Well I plan on checking the temperature every once in a while, so instead of typing this all in/copy and pasting it, I could just type in a simple command that is an alias to simplify it. Update: I played around with it a...
by Jeffrey.j
Sun May 27, 2018 7:14 pm
Forum: Beginners
Topic: GPU & CPU Temp in Fahrenheit
Replies: 28
Views: 9439

Re: GPU & CPU Temp in Fahrenheit

#!/bin/bash gpu=$(/opt/vc/bin/vcgencmd measure_temp | awk -F "[=\']" '{print $2}') cpu=$(</sys/class/thermal/thermal_zone0/temp) cpu=$(echo "$cpu / 100 * 0.1" | bc) cpuf=$(echo "(1.8 * $cpu) + 32" |bc) gpuf=$(echo "(1.8 * $gpu) + 32" |bc) echo "$(date) @ $(hostname)" echo "-------------------------...
by Jeffrey.j
Sun May 27, 2018 12:05 am
Forum: Beginners
Topic: GPU & CPU Temp in Fahrenheit
Replies: 28
Views: 9439

Re: GPU & CPU Temp in Fahrenheit

This is NOT a Device Tree question, so you're in the wrong forum - beginners might have been better - but here you go: #!/bin/bash gpu=$(/opt/vc/bin/vcgencmd measure_temp | awk -F "[=\']" '{print $2}') cpu=$(</sys/class/thermal/thermal_zone0/temp) cpu=$(echo "$cpu / 100 * 0.1" | bc) cpuf=$(echo "(1...
by Jeffrey.j
Mon Nov 27, 2017 12:44 am
Forum: Python
Topic: How to code a button to turn on a light for a second.
Replies: 6
Views: 1858

Re: How to code a button to turn on a light for a second.

update: i have switched from gpio pin 2 as the output to gpio pin 26 and gpio pin 3 as the input to gpio pin 20. This seemed to solve all of the problems and the code works now. but now i have a follow up question: why does it work with these pins but not the other ones? are the earlier gpio pins re...
by Jeffrey.j
Mon Nov 27, 2017 12:02 am
Forum: Python
Topic: How to code a button to turn on a light for a second.
Replies: 6
Views: 1858

Re: How to code a button to turn on a light for a second.

Nothing happens and that's why I don't understand. Even before I run the program, the led is dim but already on and nothing happens when I start the program and press the button. The program also seems to be finished immediately after starting it. When I took the else statement out and run the progr...
by Jeffrey.j
Sun Nov 26, 2017 10:54 pm
Forum: Python
Topic: How to code a button to turn on a light for a second.
Replies: 6
Views: 1858

How to code a button to turn on a light for a second.

I'm fairly new to programming and i was trying to light an led for a few seconds with the push of a button and then turn off. I have had next to no success and would like some help. I have double and triple checked my wiring and it seems to be correct.This is my code so far. Thank you! import RPi.GP...
by Jeffrey.j
Sun Apr 30, 2017 2:06 am
Forum: General discussion
Topic: Pi 3 does not keep time.
Replies: 7
Views: 2449

Pi 3 does not keep time.

My Raspberry Pi 3 does not keep time. I'm not talking about the occasional minute here and there, I'm talking about hours overnight. This keeps me from going onto Chromium because it can't establish a connection. Because this does not work over wifi, I have to go into the other room, with the power ...
by Jeffrey.j
Sun Mar 19, 2017 6:56 pm
Forum: Beginners
Topic: Will there be presets for overclocking Raspberry Pi 3?
Replies: 3
Views: 1492

Will there be presets for overclocking Raspberry Pi 3?

Will there be any preset overclocking for the Raspberry Pi 3 in Raspi-config in the future?

Go to advanced search