Go to advanced search

by ZPMMaker
Wed Dec 12, 2018 9:45 am
Forum: Raspbian
Topic: Run Bash script before shutdown or reboot
Replies: 5
Views: 679

Re: Run Bash script before shutdown or reboot

Noob question, though. I note that one of the comments in that Stack Exchange link says "this also means that running my script through this folder will not be useful since it will happen too late". If this works, as it does, why not use it? I would assume that's because of some function(s) of the ...
by ZPMMaker
Wed Dec 12, 2018 9:28 am
Forum: Raspbian
Topic: Run Bash script before shutdown or reboot
Replies: 5
Views: 679

Re: Run Bash script before shutdown or reboot

OK, I also posted in Stack Overflow earlier (before DirkS replied), but nobody had responded to me over there. So I went ahead and wrote an extremely-detailed explanation of how to get this to work using both methods. It is essentially a summary of everything I have learned today (but mostly about D...
by ZPMMaker
Wed Dec 12, 2018 8:57 am
Forum: Raspbian
Topic: Run Bash script before shutdown or reboot
Replies: 5
Views: 679

Re: Run Bash script before shutdown or reboot

Ahhh, right. That's the problem. Thanks for that. Adding in the following to my script: mount -oremount,rw / my original touch command goes here mount -oremount,ro / ....works perfectly. Noob question, though. I note that one of the comments in that Stack Exchange link says "this also means that run...
by ZPMMaker
Wed Dec 12, 2018 6:50 am
Forum: Raspbian
Topic: Run Bash script before shutdown or reboot
Replies: 5
Views: 679

Run Bash script before shutdown or reboot

I've gone through about two dozen websites trying to get this to work but it simply refuses to, and I'm starting to pull my hair out over it! I want to run a Bash script prior to either shutdown or reboot of my Pi (running the latest Raspbian). e.g. if I type in sudo shutdown now or sudo reboot now ...
by ZPMMaker
Sat Nov 03, 2018 10:50 am
Forum: General discussion
Topic: SSH tunnel to Pi via my own server
Replies: 3
Views: 410

Re: SSH tunnel to Pi via my own server

Never mind; got it working by following the steps at https://www.howtoforge.com/reverse-ssh-tunneling

Thanks again for your help. :)
by ZPMMaker
Sat Nov 03, 2018 5:14 am
Forum: General discussion
Topic: SSH tunnel to Pi via my own server
Replies: 3
Views: 410

Re: SSH tunnel to Pi via my own server

However, when I ran the first command (on the Pi), all it did was open a new SSH connection from the Pi to the EC2 instance (i.e. I could control the EC2 instance through the SSH connection I had made to control the Pi). This is correct, you will have the tunnel created anyway. There is an option f...
by ZPMMaker
Fri Nov 02, 2018 9:44 am
Forum: General discussion
Topic: SSH tunnel to Pi via my own server
Replies: 3
Views: 410

SSH tunnel to Pi via my own server

So I've tried about half a dozen different commercial SSH tunnelling services (e.g. Weaved/Remote-IoT/AWS Systems Manager, OpenPort, and so on) over the last year for remote controlling my RPis. They all have issues that make them unreliable. So I want to replace/augment them with my own SSH tunnels...
by ZPMMaker
Thu Aug 09, 2018 12:05 am
Forum: General discussion
Topic: Powering a USB hub from third-party 5V 2A solder pads
Replies: 10
Views: 639

Re: Powering a USB hub from third-party 5V 2A solder pads

The page you originally linked to is referring to the original Pi model B(1). That had fuses on each of the two USB ports to limit the current to under 140mA. You'd be better off looking at the "Power Requirements" section of the FAQ , which gives a list of each of the major models, the recommended...
by ZPMMaker
Wed Aug 08, 2018 5:08 am
Forum: General discussion
Topic: Powering a USB hub from third-party 5V 2A solder pads
Replies: 10
Views: 639

Re: Powering a USB hub from third-party 5V 2A solder pads

The Pi cannot provide more than 1.2A to the USB ports, combined, that is true. If, however, you are using only one port, it has all of that 1.2A to itself. Sadly, I need to use three of the USB ports, so not all of the 1.2A can go to the camera itself. I’m curious to know, though, where you found t...
by ZPMMaker
Wed Aug 08, 2018 4:38 am
Forum: General discussion
Topic: Powering a USB hub from third-party 5V 2A solder pads
Replies: 10
Views: 639

Re: Powering a USB hub from third-party 5V 2A solder pads

Paul Hutch wrote:
Tue Aug 07, 2018 6:07 pm
So cutting the cord and hooking it up to a different 5V @ 2A power source should be fine.
Excellent; thanks for your advice. I’ll give it a go.
by ZPMMaker
Wed Aug 08, 2018 4:37 am
Forum: General discussion
Topic: Powering a USB hub from third-party 5V 2A solder pads
Replies: 10
Views: 639

Re: Powering a USB hub from third-party 5V 2A solder pads

The problem is the RPi USB hub doesn't provide enough current to charge the camera's internal battery. I don't understand. An RPi3B is able to provide up to 1.2 amps from a single one of its 4 USB ports. That's far in excess of the USB2.0 spec. So what spec of USB port is the camera supposed to wor...
by ZPMMaker
Tue Aug 07, 2018 2:01 pm
Forum: General discussion
Topic: Powering a USB hub from third-party 5V 2A solder pads
Replies: 10
Views: 639

Powering a USB hub from third-party 5V 2A solder pads

Hi folks, I realise this isn't directly a Raspberry Pi question, but I'm hoping someone here knows the answer to my problem. I have a Raspberry Pi 3 and a USB camera (the Raspberry Pi camera module isn't suitable for my project). I am planning to use the new LiFePo4wered/Pi+ module (which I will con...
by ZPMMaker
Fri Jul 13, 2018 12:52 am
Forum: Troubleshooting
Topic: RPi3 freezes when uploading to AWS S3 via 4G
Replies: 2
Views: 385

Re: RPi3 freezes when uploading to AWS S3 via 4G

Fixed it.
Turns out there was an error in my version of the AWS CLI tools.

A simple application of

Code: Select all

sudo pip install --upgrade awscli
updated AWS CLI and fixed the issue. :roll:
by ZPMMaker
Thu Jul 12, 2018 11:44 pm
Forum: Troubleshooting
Topic: RPi3 freezes when uploading to AWS S3 via 4G
Replies: 2
Views: 385

Re: RPi3 freezes when uploading to AWS S3 via 4G

Ok, bit of an update on this one... A friend directed me to /var/log/ (which I had no idea existed, silly me). I scoured through every log file in that folder. I only found something unusual in /var/log/syslog https://s3-ap-southeast-2.amazonaws.com/ionthesky/PiLogs/log4GS3logout.jpg At roughly 22:0...
by ZPMMaker
Thu Jul 12, 2018 6:23 am
Forum: Troubleshooting
Topic: RPi3 freezes when uploading to AWS S3 via 4G
Replies: 2
Views: 385

RPi3 freezes when uploading to AWS S3 via 4G

Hi all. Got myself a puzzling problem... I have a Raspberry Pi Model 3B, a Sense HAT plugged into it via the GPIO pins, and a 4G/LTE modem and a camera plugged in via USB. My goal is to make a 4G-connected camera that automatically takes a photo every 5 mins and uploads it to AWS S3, and collects se...
by ZPMMaker
Tue Jun 05, 2018 11:51 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: [Announcement] New USB chip-solution
Replies: 12
Views: 2796

Re: [Announcement] New USB chip-solution

B.Goode wrote:
Tue Jun 05, 2018 11:31 am
They have a Contact Us facility on their company website: http://www.flyfish-tech.com/ContactUs.php
DougieLawson wrote:Ivan disappeared from this forum in 2014.
Thanks for that. I'll send him a message there.
by ZPMMaker
Tue Jun 05, 2018 11:04 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: [Announcement] New USB chip-solution
Replies: 12
Views: 2796

Re: [Announcement] New USB chip-solution

Hi Ivan,

I have just bought one of your FF32 chips and am trying to use it with an RPi3. I would appreciate any input you could provide, please: viewtopic.php?f=44&t=215240.

Thanks. :)
David
by ZPMMaker
Tue Jun 05, 2018 11:03 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Using many sensors on RPi3 via a Flyfish FF32
Replies: 0
Views: 251

Using many sensors on RPi3 via a Flyfish FF32

Howdy, I've got a Raspberry Pi 3 Model B, a Flyfish FF32 (introduced to the forum here: https://www.raspberrypi.org/forums/viewtopic.php?t=72023 ), and an Adafruit digital light/lux sensor ( https://learn.adafruit.com/tsl2561/wiring-the-tsl2561-sensor ) (and about two dozen other digital and analog ...
by ZPMMaker
Mon Mar 26, 2018 2:33 am
Forum: General discussion
Topic: USB OTG WiFi Adapter exists?
Replies: 5
Views: 2757

Re: USB OTG WiFi Adapter exists?

Add something like http://www.ebay.co.uk/itm/2X-OTG-Adapter-Micro-USB-Male-to-USB-Female-For-Samsung-Android-Phone-Tablet-PC-/262458084444 Amusingly, that link is to a fidget spinner. Given the URL has adapter in it, I doubt that was your intent. Something screwy must be going on with eBay links......
by ZPMMaker
Tue Dec 19, 2017 1:34 pm
Forum: Automation, sensing and robotics
Topic: Pressing a button to turn on a camera using RPi3 and motors
Replies: 4
Views: 995

Re: Pressing a button to turn on a camera using RPi3 and motors

no problem, hope it works for you. a couple points i didnt make, the code was written in python 2.7.13, if you set the pycharm interpreter to 3.5 it will highlight errors.. it may be worth sticking with the same version if you are using the code i posted. also its set up for bcm gpio, not board.. s...
by ZPMMaker
Mon Dec 18, 2017 9:09 am
Forum: Automation, sensing and robotics
Topic: Pressing a button to turn on a camera using RPi3 and motors
Replies: 4
Views: 995

Re: Pressing a button to turn on a camera using RPi3 and motors

im surprised you cant turn the camera on through software, but a quick google didnt come back with anything.. maybe you could use a car door lock actuator to press the button? they are 12v but possibly better than rigging up a motor? https://www.ebay.co.uk/itm/Universal-Heavy-Duty-Power-Door-Lock-A...
by ZPMMaker
Fri Dec 15, 2017 5:59 am
Forum: Automation, sensing and robotics
Topic: Pressing a button to turn on a camera using RPi3 and motors
Replies: 4
Views: 995

Pressing a button to turn on a camera using RPi3 and motors

Hello, I'm building a remote camera network and need a way to turn the camera on robotically, i.e. I need something that will - when my software detects that the camera is turned off - push the power button on the camera, and then retract. I am completely new to robotics, and certainly don't know my...
by ZPMMaker
Tue Nov 28, 2017 4:47 am
Forum: Advanced users
Topic: Powering USB on and off
Replies: 17
Views: 7306

Re: Powering USB on and off

I realise this conversation is a few years old, but I found it via Google when I was facing the same problem, so figured I'd share the below solution in case someone else needs it in future... This solution works as-is on an RPi 3 model B running Raspbian Stretch. http://embeddedapocalypse.blogspot....
by ZPMMaker
Sun Oct 15, 2017 12:31 pm
Forum: General discussion
Topic: Weaved Service Alternative
Replies: 6
Views: 3334

Re: Weaved Service Alternative

DougieLawson wrote:
Sun Oct 15, 2017 7:18 am
How about running OpenVPN on your AWS service and getting each of the twenty remote Raspberries to connect to that. OpenVPN gives you a two-way tunnel.

Or there's the commercial RealVNC service https://manage.realvnc.com/en/pricing
Thanks Dougie, I'll give OpenVPN a go. :)
by ZPMMaker
Sun Oct 15, 2017 3:39 am
Forum: General discussion
Topic: Weaved Service Alternative
Replies: 6
Views: 3334

Re: Weaved Service Alternative

Get yourself a virtual server on Google Cloud, AWS, or whatever. Have your Pi ssh into that virtual server and create SSH tunnels. Login to the cloud server from wherever you are in the world. Login into your Pi from the cloud server through the SSH tunnels. Sorry to necro an old thread, but... I'v...

Go to advanced search