Go to advanced search

by ZPMMaker
Sun Sep 17, 2017 12:36 pm
Forum: Advanced users
Topic: Script runs normally except when called via cron
Replies: 12
Views: 2341

Re: Script runs normally except when called via cron

HI. Try adding this to the end of your cron line >>/home/pi/log.txt 2>&1 not forgetting there needs to be a space between the last character of your existing line and the first > it will log all output from your script including any error messages, might give you a clue as to what's going wrong...
by ZPMMaker
Sun Sep 17, 2017 8:39 am
Forum: Advanced users
Topic: Script runs normally except when called via cron
Replies: 12
Views: 2341

Script runs normally except when called via cron

I have a dozen identical RPi's with the same scripts on them (all synchronised via AWS S3). Each Pi executes a particular script (take a photo, upload it to AWS) every five minutes via cron ( crontab -e ) They all work flawlessly, except one, which worked perfectly up until a few hours ago. I haven'...
by ZPMMaker
Sun Sep 17, 2017 8:28 am
Forum: Advanced users
Topic: Running two WiFi adapters on the one Pi
Replies: 27
Views: 19455

Re: Running two WiFi adapters on the one Pi

Sorry for the slow reply... ended up in hospital unexpectedly. Oops!

Anyway, thanks to you both for your comments, but when I was in hospital, wasting time lying around, I realised there is a USB interface for the camera. So that solves that issue entirely.

Thanks again for the advice. :)
by ZPMMaker
Wed Aug 23, 2017 3:15 am
Forum: Advanced users
Topic: Running two WiFi adapters on the one Pi
Replies: 27
Views: 19455

Re: Running two WiFi adapters on the one Pi

Connect the Raspberry & camera to the same router/switch and allow DHCP to assign the IP addresses, that will avoid any IP address conflicts. The raspberry will be able to reach both the camera and the router with no problems. Sorry, I need to clarify; the camera creates an ad hoc network of it...
by ZPMMaker
Wed Aug 23, 2017 2:19 am
Forum: Advanced users
Topic: Running two WiFi adapters on the one Pi
Replies: 27
Views: 19455

Re: Running two WiFi adapters on the one Pi

Dang. OK. Thanks. Is there some (non-networky) alternative then? I need to connect to the camera via WiFi to issue commands and retrieve photos. I then need to send that photo to my AWS S3 account (hence the need for internet access). Is there perhaps a way of having two RPi's (one connected to the ...
by ZPMMaker
Tue Aug 22, 2017 10:08 am
Forum: Advanced users
Topic: Running two WiFi adapters on the one Pi
Replies: 27
Views: 19455

Re: Running two WiFi adapters on the one Pi

Hmm, I may have an alternative solution: a 4G USB modem.
I'll test that tomorrow.
by ZPMMaker
Tue Aug 22, 2017 8:12 am
Forum: Advanced users
Topic: Running two WiFi adapters on the one Pi
Replies: 27
Views: 19455

Re: Running two WiFi adapters on the one Pi

SurferTim wrote:
Mon Aug 21, 2017 1:41 pm
Is there any way to change the localnet on one of the routers?
Sadly, no.
by ZPMMaker
Mon Aug 21, 2017 1:15 pm
Forum: Advanced users
Topic: Running two WiFi adapters on the one Pi
Replies: 27
Views: 19455

Re: Running two WiFi adapters on the one Pi

You are going to have a routing problem there. It appears that wlan0 and wlan1 have the same localnet. How are these interfaces getting their network settings? Basically, I just plugged in the USB wifi adapter, and then in the wifi connection thingy in the upper right corner of the Raspbian GUI, I ...
by ZPMMaker
Mon Aug 21, 2017 8:47 am
Forum: Advanced users
Topic: Running two WiFi adapters on the one Pi
Replies: 27
Views: 19455

Re: Running two WiFi adapters on the one Pi

Post the result of "route". The lowest metric will be used for the gateway. You can set the metric in /etc/dhcpcd.conf. interface wlan0 metric 300 interface wlan1 metric 200 The alternative is don't use a gateway on wlan0 in the RPi. Howdy, thanks for being willing to help me. :) Here's a...
by ZPMMaker
Sun Aug 20, 2017 11:20 am
Forum: Advanced users
Topic: Running two WiFi adapters on the one Pi
Replies: 27
Views: 19455

Re: Running two WiFi adapters on the one Pi

Hello, I'm back... It turns out I need to have the camera on wlan0 and the internet WiFi on wlan1. Unfortunately, when I switch the .conf files over, both adapters connect to the correct WiFi networks, but - for some reason - it can't access the Internet via wlan1 (and trying to SSH into the RPi fro...
by ZPMMaker
Sun Aug 13, 2017 9:18 am
Forum: Advanced users
Topic: Running two WiFi adapters on the one Pi
Replies: 27
Views: 19455

Re: Running two WiFi adapters on the one Pi

I'm under the impression that you did misunderstood me. I'm not talking about swapping wpa conf files, but using two simultaneously. At the same time, one for wlan0, another for wlan1. As in: iface wlan0 inet auto wpa-conf /etc/wpa_supplicant/wpa_supplicant_wlan0.conf iface wlan1 inet auto wpa-conf...
by ZPMMaker
Sun Aug 13, 2017 4:17 am
Forum: Advanced users
Topic: Running two WiFi adapters on the one Pi
Replies: 27
Views: 19455

Re: Running two WiFi adapters on the one Pi

you can use different wpa configuration files for different interfaces, as the parameter to wpa-conf in /etc/network/interfaces. Yes, that's possible, but after rebooting, I find that both adapters only connect to my internet WiFi network, rather than connecting to the two different networks (i.e. ...
by ZPMMaker
Sat Aug 12, 2017 9:11 am
Forum: Advanced users
Topic: Running two WiFi adapters on the one Pi
Replies: 27
Views: 19455

Re: Running two WiFi adapters on the one Pi

Thanks, but that link is for setting up connections to two separate WiFi networks in case the RPi is moved (e.g. a mobile set-up going from home WiFi to work WiFi). I need to know how to bind them to a specific adapter, and having both adapters connected to their respective WiFi networks, simultaneo...
by ZPMMaker
Thu Aug 10, 2017 3:23 am
Forum: Advanced users
Topic: Running two WiFi adapters on the one Pi
Replies: 27
Views: 19455

Running two WiFi adapters on the one Pi

Howdy, I'm using a Raspberry Pi Zero Wireless. I need to connect to a camera (which uses an ad hoc wifi network) in order to send the camera commands, and then transfer images from the camera onto the RPi. I then need to connect to a second WiFi network in order to connect to the Internet (so that t...
by ZPMMaker
Tue Jul 25, 2017 12:59 am
Forum: Advanced users
Topic: Powering off WiFi and BT on RPiZW
Replies: 7
Views: 13552

Re: Powering off WiFi and BT on RPiZW

When you try and change your config.txt file do you get "permission denied" or "can not open file to make changes" Also will this turn off all wifi. I am running a pi3. I just want to use a USB adapter. You'll need to use sudo nano /boot/config.txt in order to open or edit the f...
by ZPMMaker
Thu Jul 20, 2017 8:35 am
Forum: Camera board
Topic: Raspistill slow for long exposures
Replies: 3
Views: 2295

Re: Raspistill slow for long exposures

Raspistill actually has to take multiple images - to get exposure etc. Set. If you use a little python loop with capture continuous you can reduce the gap between images to <1 second. Ah. That makes sense! That said, your next sentence seems to have solved the issue for me anyway... Also note you c...
by ZPMMaker
Thu Jul 20, 2017 5:16 am
Forum: Camera board
Topic: Raspistill slow for long exposures
Replies: 3
Views: 2295

Raspistill slow for long exposures

Hi there, I'm building a network of cameras around Australia to monitor night time weather conditions in remote areas (using Raspberry Pi Zero W and the RPi Camera Board V2). This means there is no light pollution, so there is very little light to work with. Therefore, each photo taken using raspist...
by ZPMMaker
Mon Jun 26, 2017 11:26 pm
Forum: Camera board
Topic: Night time time lapse photos have colour variations [fixed]
Replies: 6
Views: 2007

Re: Night time time lapse photos have strange colour variati

Hi everyone, Thanks for all your suggestions and sorry for my delayed reply. For some reason, I didn't get an email notification any of you had replied, so I forgot all about this... oops. Anyway, I have since bricked my RPi (long story), but will try your suggestions out some time next week once I...
by ZPMMaker
Mon Jun 19, 2017 3:06 am
Forum: Advanced users
Topic: Powering off WiFi and BT on RPiZW
Replies: 7
Views: 13552

Re: Powering off WiFi and BT on RPiZW

DougieLawson wrote:If you did go with a HAT then http://www.uugear.com/product/wittypi2/ is the one I'd choose.
Ah yup, thanks. I was actually looking at that one last week by chance. Glad to hear you recommend it! :)
by ZPMMaker
Sat Jun 17, 2017 5:49 am
Forum: Advanced users
Topic: Powering off WiFi and BT on RPiZW
Replies: 7
Views: 13552

Re: Powering off WiFi and BT on RPiZW

Before I bother trying, do you think this'd be worth it, given that power usage increases during boot? Never mind. I did some testing with WiFi turned off using a Charger Doctor (USB ammeter). Current draw was more or less the same as when the WiFi was on, so not worth the effort. I could use a HAT...
by ZPMMaker
Sat Jun 17, 2017 5:24 am
Forum: Advanced users
Topic: Powering off WiFi and BT on RPiZW
Replies: 7
Views: 13552

Re: Powering off WiFi and BT on RPiZW

You can turn it off completely with dtoverlay=pi3-disable-wifi dtoverlay=pi3-disable-bt but I don't think it's possible to disable it from a command line. Here's a discussion for RPi3: https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=138610 Ah, you beauty. Thanks. (for anyone else readin...
by ZPMMaker
Sat Jun 17, 2017 4:48 am
Forum: Advanced users
Topic: Powering off WiFi and BT on RPiZW
Replies: 7
Views: 13552

Powering off WiFi and BT on RPiZW

Hi, I'm building a battery-powered camera system using the Raspberry Pi Zero W and RPi Camera v2 board. It will take a photo every five minutes and upload it to AWS/S3. As it is battery-powered, I need to reduce current draw as much as possible. To that end, I'm wondering if it's possible to turn of...
by ZPMMaker
Sat Jun 17, 2017 1:38 am
Forum: Camera board
Topic: Night time time lapse photos have colour variations [fixed]
Replies: 6
Views: 2007

Re: Night time time lapse photos have strange colour variati

Hi everyone, Thanks for all your suggestions and sorry for my delayed reply. For some reason, I didn't get an email notification any of you had replied, so I forgot all about this... oops. Anyway, I have since bricked my RPi (long story), but will try your suggestions out some time next week once I ...
by ZPMMaker
Tue Jun 13, 2017 11:28 pm
Forum: Camera board
Topic: Night time time lapse photos have colour variations [fixed]
Replies: 6
Views: 2007

Night time time lapse photos have colour variations [fixed]

Hi all, I'm running a v2 camera board on an RPi Zero W, and have written a bash script that takes a photo with specific shutter speed (4.5s) and ISO (200) settings. This is run every five minutes via cron. DATE=$(date +"%Y%m%d_%H%M") #Take the shot, rotate it by 90deg. raspistill -n -o /ho...
by ZPMMaker
Tue Jun 13, 2017 11:00 pm
Forum: Camera board
Topic: Bad weather astronomy with Raspberry (NoIR) v1 camera?
Replies: 1
Views: 841

Re: Bad weather astronomy with Raspberry (NoIR) v1 camera?

Looks like high-ISO camera noise.

Go to advanced search