Go to advanced search

by pfletch101
Thu Sep 13, 2018 5:20 pm
Forum: Troubleshooting
Topic: Auto Running Scratch Script
Replies: 4
Views: 279

Re: Auto Running Scratch Script

I'm trying to automatically run a Scratch 1.4 program that uses GPIO pins to control switches and LEDs. I am not sure that is possible. You can probably automatically launch the Scratch 1.4 graphical IDE environment, perhaps even get it to load a specific Scratch 1.4 program when it starts, but I'm...
by pfletch101
Thu Sep 13, 2018 2:04 pm
Forum: Beginners
Topic: Illuminated push button
Replies: 43
Views: 5322

Re: Illuminated push button

3. I ran it again for 5 hours and the metal casing stayed stone cold - it is all metal and very small, so I would have expected some warming up to occur if it contained a filament lamp. It depends on how sensitive your temperature measuring instrument was. "Not hot to the touch" might not be a suff...
by pfletch101
Thu Sep 13, 2018 12:04 am
Forum: Advanced users
Topic: Raspberry pi zero nas dongle
Replies: 2
Views: 724

Re: Raspberry pi zero nas dongle

Could you expand a little on what you are trying to do? My WD MyCloud natively emulates a (networked) HD on my Windows systems and can (again natively, though requiring a bit more setup) also do so on my Pis.
by pfletch101
Thu Sep 13, 2018 12:00 am
Forum: Troubleshooting
Topic: Auto Running Scratch Script
Replies: 4
Views: 279

Re: Auto Running Scratch Script

One common way of starting (what would otherwise be) user jobs on boot is to use crontab to add a line to the cron table: @reboot /home/pi/my_folder/myprogram There are a few caveats - you sometimes need to put in a pause (typically 10-20 seconds is enough) at the start of the program to allow the s...
by pfletch101
Wed Sep 12, 2018 4:14 pm
Forum: Beginners
Topic: Illuminated push button
Replies: 43
Views: 5322

Re: Illuminated push button

It could conceivably have a diode 'bridge' surrounding an LED to make it insensitive to supply polarity, though that is more complexity than I would expect from a cheap device, and would introduce two extra diode voltage drops, which one would normally expect to cause problems in practice. Your gues...
by pfletch101
Tue Sep 11, 2018 9:22 pm
Forum: Beginners
Topic: Pi 3B+ V1.2 extremely slow
Replies: 18
Views: 3061

Re: Pi 3B+ V1.2 extremely slow

Hi, HawaiianPi! That was really bad news. The kernel 4.14.50-v7 is the one I use and the latest I have found available on official place for download. There are evidently newer kernels but 14.14.50 should be as OK as 4.14.62 if the problem it is about the hardware in use. I bought my Pi 3B+ V1.2 on...
by pfletch101
Tue Sep 11, 2018 9:18 pm
Forum: General programming discussion
Topic: raspi taking photo on boot every day at 10past and 50past
Replies: 13
Views: 3874

Re: raspi taking photo on boot every day at 10past and 50past

Be aware also that cron runs with its own somewhat cut down environment. All file paths (e.g. for your saved pictures) should be specified explicitly (e.g. /home/pi/images/snap1.jpg).
by pfletch101
Mon Sep 10, 2018 3:34 pm
Forum: Beginners
Topic: Pushing data to MySQL using Pi
Replies: 5
Views: 728

Re: Pushing data to MySQL using Pi

The ID and password you are using to connect to the remote database has to have INSERT permission granted for the table in question. Then you build a string with all the values you need to write the table row. Call the database using the string you've built. Check for errors. I don't know much abou...
by pfletch101
Fri Sep 07, 2018 2:27 pm
Forum: Troubleshooting
Topic: Protection against short (<1s) voltage drops?
Replies: 12
Views: 1176

Re: Protection against short (<1s) voltage drops?

Okay, I see that you would entirely recommed UPSs. Let's assume that I buy an UPS. What would you think, which flaws would cheaper UPS have compared to more expensive ones? The most important determinant of price for UPSes is the capacity of the device in Watts (determined by the current which its ...
by pfletch101
Fri Sep 07, 2018 12:07 am
Forum: Troubleshooting
Topic: Need help with no permissions in PhpMyAdmin
Replies: 8
Views: 7303

Re: Need help with no permissions in PhpMyAdmin

Thanks!

I think that the installation of Apache and its most common appendages (including MariaDB) on the Pi needs a sticky here somewhere that is kept updated. Things change, and there are a lot of traps for the unwary, and even some for the moderately wary!
by pfletch101
Thu Sep 06, 2018 9:48 pm
Forum: Troubleshooting
Topic: Need help with no permissions in PhpMyAdmin
Replies: 8
Views: 7303

Re: Need help with no permissions in PhpMyAdmin

Thanks! Man.. I hope you are right.. (although I feel rather silly not catching that... this whole Raspbian/CLI stuff is throwing me for a loop!.. and I'm not sure why!.. Like I shoudl have known/spotted a syntax error.. but I feel so 'green' here... Im constantly second guessing myself!) I will re...
by pfletch101
Thu Sep 06, 2018 8:37 pm
Forum: Troubleshooting
Topic: Need help with no permissions in PhpMyAdmin
Replies: 8
Views: 7303

Re: Need help with no permissions in PhpMyAdmin

See my last response in your original thread ( https://www.raspberrypi.org/forums/viewtopic.php?f=91&t=221858#p1362276 ). I noticed, when I followed what seem to be the same instructions as you did, that there was no semi-colon (;) printed after the last of the three MySQL commands ('GRANT ALL PRIVI...
by pfletch101
Thu Sep 06, 2018 3:43 pm
Forum: Beginners
Topic: Tried to add wifi account/settings after set-up, and stopped responding...why?
Replies: 18
Views: 1626

Re: Tried to add wifi account/settings after set-up, and stopped responding...why?

Thanks.. all information is welcome! (but yes.. I do hope someone with some direct exposure similar to my install/problems does chime in!) LOL I did some experimenting on my development system. After a routine install of MariaDB ("sudo apt-get install mariadb-server"), I was simply returned to the ...
by pfletch101
Thu Sep 06, 2018 1:41 pm
Forum: Beginners
Topic: Tried to add wifi account/settings after set-up, and stopped responding...why?
Replies: 18
Views: 1626

Re: Tried to add wifi account/settings after set-up, and stopped responding...why?

MariaDB was a Debian choice nothing to do with RPF / RPT: https://mariadb.com/about-us/newsroom/press-releases/mariadb-replaces-mysql-default-debian-9 Except that Raspbian is, in essence, Debian for the Pi! The distinction you are making is valid but the effects are the same - we get MariaDB instea...
by pfletch101
Thu Sep 06, 2018 12:57 pm
Forum: Beginners
Topic: Tried to add wifi account/settings after set-up, and stopped responding...why?
Replies: 18
Views: 1626

Re: Tried to add wifi account/settings after set-up, and stopped responding...why?

Question: what specifically do you mean by this: "uninstalling and reinstalling the database manager." Are you referring (un)installing MySQL? (or "MariaDB" as I see it referred to) Yes, that is what I meant. MariaDB is, in effect, a development branch of MySQL, and is the way that the Raspbian fol...
by pfletch101
Thu Sep 06, 2018 3:35 am
Forum: Beginners
Topic: Tried to add wifi account/settings after set-up, and stopped responding...why?
Replies: 18
Views: 1626

Re: Tried to add wifi account/settings after set-up, and stopped responding...why?

update: well I went upstairs.. Pi was running as expected.. (have it connected to living room TV for a display right now) I can only log into PhpMyAdmin use one set of credentials... When looking back at the steps I took... here is where the MySQL user/account was created... but I dont see anything...
by pfletch101
Thu Sep 06, 2018 1:50 am
Forum: Raspberry Pi OS
Topic: accidentally did "sudo chown -r pi /"
Replies: 8
Views: 1004

Re: accidentally did "sudo chown -r pi /"

There are a lot of commands working without sudo, but chown most likely needs sudo. Maybe the intention was to execute sudo chown -R pi ./ in a directory. Typos can be dangerous. A preceding "cd" command, that failed, can be dangerous too... That takes me back! At the beginning of the 80s, I worked...
by pfletch101
Wed Sep 05, 2018 9:03 pm
Forum: Troubleshooting
Topic: Protection against short (<1s) voltage drops?
Replies: 12
Views: 1176

Re: Protection against short (<1s) voltage drops?

If you buy a UPS [...], all the hard work has been done for you [...]. Yes. That Argument is true for a proper weatherstation either, though. Not entirely - I have a Davis weatherstation (well into the mid-range for cost and quality), and it has major problems for monitoring indoor conditions, for ...
by pfletch101
Wed Sep 05, 2018 8:45 pm
Forum: Troubleshooting
Topic: Protection against short (<1s) voltage drops?
Replies: 12
Views: 1176

Re: Protection against short (<1s) voltage drops?

Brandon92 wrote:
Wed Sep 05, 2018 8:15 pm
You can also take a look at the PiJuice HAT. This might be interesting for your application.
Cute, and would work, but would be more expensive than a regular small UPS and would (IMHO) have no real advantage over one in this application.
by pfletch101
Wed Sep 05, 2018 8:11 pm
Forum: Troubleshooting
Topic: Protection against short (<1s) voltage drops?
Replies: 12
Views: 1176

Re: Protection against short (<1s) voltage drops?

Interesting to hear, thanks for that opinion! Well, to answer your question "Why not just use a UPS?": because a capacitor would be considerably cheaper than any good UPS! Doing nothing would be even cheaper, but you would be left with the issues that are troubling you. :) There are many problems w...
by pfletch101
Wed Sep 05, 2018 4:05 pm
Forum: Beginners
Topic: Tried to add wifi account/settings after set-up, and stopped responding...why?
Replies: 18
Views: 1626

Re: Tried to add wifi account/settings after set-up, and stopped responding...why?

I can 'log in' to PhpMyAdmin.. but just cant -do- anything while inside.. You 'log in' to phpMyAdmin with your MySQL credentials - typically MySQL root credentials when using it on a local system. It sounds as if the credentials you used are of a MySQL user who does not have database creation privi...
by pfletch101
Wed Sep 05, 2018 2:54 pm
Forum: Troubleshooting
Topic: [Need Help] PM2 and bash script doesn't run when booting
Replies: 1
Views: 184

Re: [Need Help] PM2 and bash script doesn't run when booting

I have 3 unresolved problems in my raspberry pi3 So, I need help to know How to fix them. Problem 2) This is about bash script and also suddenly happened. I use PM2 and I made bash script file for starting my Python program automatically when raspberry boot. Normally, It work well. when I check "su...
by pfletch101
Wed Sep 05, 2018 2:44 pm
Forum: Troubleshooting
Topic: cronjob @reboot not working
Replies: 4
Views: 1270

Re: cronjob @reboot not working

Hello, I'm brand new to using a raspberry pi, I have a pi 3 and I'm trying to have a script start on boot using the crontable. I have added the follwing lines.. * * * * * /home/pi/frame/syncdrives.sh >/dev/null 2>&1 {This line executes every minute as I want it to} @reboot /home/pi/frame/start_fram...
by pfletch101
Tue Sep 04, 2018 8:17 pm
Forum: Troubleshooting
Topic: [Question] Are my Rpi 3B+ speeds normal?
Replies: 22
Views: 3508

Re: [Question] Are my Rpi 3B+ speeds normal?

Interesting! On my 3B+, vcgencmd gives: arm_freq=1400 core_freq=400 gpu_freq=300 sdram_freq=450 A couple of these are a bit lower than the specs you quote, but at least the arm_freq is on spec. On the one of my (fairly new) 3Bs that is currently in use, vcgencmd gives: arm_freq=1200 core_freq=400 gp...
by pfletch101
Tue Sep 04, 2018 7:58 pm
Forum: Troubleshooting
Topic: Raspberry Pi Power Source
Replies: 21
Views: 1448

Re: Raspberry Pi Power Source

Yes and also there's another motherboard board drawing power from the same source as mine, and that's not got affected. I'm unable to arrive at a conclusion as to what might have caused this and fried the pi. Is the 'another motherboard' also a Pi? If not, is there anything on or connected to the o...

Go to advanced search