Go to advanced search

by barry914
Wed Jan 24, 2018 3:43 pm
Forum: General discussion
Topic: motion problem
Replies: 0
Views: 218

motion problem

I'm running the latest motion under raspbian-stretch and I am having a problem I can't resolve. I have a number of IOT devices monitoring various events which send email alerts. I'm developing another monitor and for testing purposes I replace the email script named in on_movie_start with one that b...
by barry914
Wed Jan 24, 2018 3:36 pm
Forum: General discussion
Topic: Odd WebIOPi problem
Replies: 1
Views: 376

Odd WebIOPi problem

I'm running WebIOPi 0.7.1 on raspian-stretch. I've got a problem I can't resolve. Command "sudo /etc/init.d/webiopi stop" does not stop the process. The log says it's stopping, the PID file is deleted and everything appears to be OK, except the process lives on, healthy as can be. I can't find any e...
by barry914
Mon Jan 22, 2018 3:25 pm
Forum: Advanced users
Topic: Send SMS Messages from Raspberry Pi
Replies: 27
Views: 128105

Re: Send SMS Messages from Raspberry Pi

Your carrier may have an email SMS gateway. Most US carriers do. Verizon, for instance, uses the address "[email protected].com", where "number" is the 10 digit telephone number. I use this format to send SMS alert messages from various RPi IOT devices such as leak detectors and motion detectors. There ...
by barry914
Sun Jun 04, 2017 7:58 pm
Forum: Networking and servers
Topic: Pi 3 as wiireless client and wireless AP?
Replies: 193
Views: 145287

Re: Pi 3 as wiireless client and wireless AP?

Do you have both the AP and client set to the same channel? They should be. I had some trouble with my Android phone connecting to the AP when in dual mode, but I had full functionality with my Windows PC.
by barry914
Fri May 26, 2017 5:30 am
Forum: Camera board
Topic: Motion - MMAL camera
Replies: 472
Views: 400612

Re: Motion - MMAL camera

Yes it does. Make sure you have this set correctly:

Code: Select all

# Restrict stream connections to localhost only (default: on)
stream_localhost off
by barry914
Fri Mar 24, 2017 5:25 pm
Forum: Troubleshooting
Topic: Pi Zero W won't boot
Replies: 15
Views: 5194

Re: Pi Zero W won't boot

Nothing like that has ever happened to me. :)
by barry914
Sun Mar 05, 2017 7:33 pm
Forum: Troubleshooting
Topic: Pi Zero W won't boot
Replies: 15
Views: 5194

Re: Pi Zero W won't boot

I guess this was just another case of "when all else fails, read the instruction book. Boots up, configured. works. Thank you very much for the quick and correct info.
by barry914
Sun Mar 05, 2017 7:20 pm
Forum: Troubleshooting
Topic: Pi Zero W won't boot
Replies: 15
Views: 5194

Re: Pi Zero W won't boot

I hope this isn't a duplicate. I'm using an image with motion that I have been running with motion on a B3 and I can SSH into that. I also have the WLAN properly configured. I did edit the hostname and hosts files before I tried booting the W. It does not show up on my router even when I connect it ...
by barry914
Sun Mar 05, 2017 6:51 pm
Forum: Troubleshooting
Topic: Pi Zero W won't boot
Replies: 15
Views: 5194

Re: Pi Zero W won't boot

I'm using 4.4.38-v7+. I'm booting in headless mode, trying to SSH into the device. It does not show up on my router either.
by barry914
Sun Mar 05, 2017 6:33 pm
Forum: Troubleshooting
Topic: Pi Zero W won't boot
Replies: 15
Views: 5194

Pi Zero W won't boot

Yesterday I picked up a Pi Zero W from Microcenter. I burned a Raspian image onto an 8GB SD card, plugged it in but it won't boot - activity light is off. I just got back with a replacement, and this is not booting either. I checked the image in a Pi 3, and it works, and I tried a known working card...
by barry914
Sun Mar 05, 2017 3:56 pm
Forum: Networking and servers
Topic: Pi 3 as wiireless client and wireless AP?
Replies: 193
Views: 145287

Re: Pi 3 as wiireless client and wireless AP?

I'm not sure why it's necessary to turn power save on when shutting down the interface. I have no apparent issue with just turning it off.
by barry914
Fri Feb 24, 2017 6:29 am
Forum: Networking and servers
Topic: Pi 3 as wiireless client and wireless AP?
Replies: 193
Views: 145287

Re: Pi 3 as wiireless client and wireless AP?

I'm not sure this is related, but I have no problem connecting to the AP from my laptop, but my Android phone won't stay connected. It gets an IP, stays connected for a bit and then disconnects. I get an error message that says it received an unknown SSID. I think when the phone gets the router's SS...
by barry914
Sun Feb 19, 2017 4:30 pm
Forum: Camera board
Topic: Motion - MMAL camera
Replies: 472
Views: 400612

Re: Motion - MMAL camera

I'm running stock motion with a pi camera without any problems. The only change I needed to make to the system is to load the bcm2835-v4l2 driver at startup. Is there any reason to use the motion-mmal version?
by barry914
Sat Dec 17, 2016 6:55 pm
Forum: Advanced users
Topic: Network connectivity and emails
Replies: 14
Views: 2721

Re: Network connectivity and emails

OK, the issue of handling the connection failure is resolved, but there's still one open issue. Why doesn't Raspbian's slow boot option work? Any ideas? The timing and error messages are the same regardless of that configuration setting.
by barry914
Fri Dec 16, 2016 3:31 pm
Forum: Advanced users
Topic: Network connectivity and emails
Replies: 14
Views: 2721

Re: Network connectivity and emails

What you want or do not want to do is irrelevant. You have exactly 2 options: 1) learn how to deal with the init and start the process after network is up. It does not have to be a daemon, there is "oneshot" type for that. 2) handle the exception in python itself, eg: if exception is risen wait for...
by barry914
Fri Dec 16, 2016 1:39 am
Forum: Advanced users
Topic: Network connectivity and emails
Replies: 14
Views: 2721

Re: Network connectivity and emails

I had an application that would send out a gmail message on failure, but it recently quit working as gmail increased their security. This could be your problem. I solved it by switching to a text message using curl. You can also change your gmail security settings to a lower level and see if that f...
by barry914
Thu Dec 15, 2016 11:31 pm
Forum: Advanced users
Topic: Network connectivity and emails
Replies: 14
Views: 2721

Re: Network connectivity and emails

Python has that capability. In my original post I alluded to maybe this belonging in the Beginner's forum, which kind of reflects my understanding of handling exceptions in Python.
by barry914
Thu Dec 15, 2016 9:37 pm
Forum: Advanced users
Topic: Network connectivity and emails
Replies: 14
Views: 2721

Re: Network connectivity and emails

One minor problem. It doesn't work. I checked and rechecked that I have enabled slow boot but I get the same error and the same remedy fixes it. Now I'm totally confused. For reference, this is running on a Pi Zero with an Edimax dongle.
by barry914
Thu Dec 15, 2016 9:09 pm
Forum: Advanced users
Topic: Network connectivity and emails
Replies: 14
Views: 2721

Re: Network connectivity and emails

B.Goode wrote:I don't have a live Raspbian system in front of me, but isn't there an option in raspi-config to wait for the network to be available before proceeding with the start-up process?
Indeed there is! Thanks you for your help.
by barry914
Thu Dec 15, 2016 6:52 pm
Forum: Advanced users
Topic: Network connectivity and emails
Replies: 14
Views: 2721

Re: Network connectivity and emails

but when run at boot from crontab it fails. It fails because network is not up yet. Make your script start via systemd service and make that service depend on networking.[/quote Well, yes, I know why it's failing. Other than creating a daemon process, is there a simple way to check the network stat...
by barry914
Thu Dec 15, 2016 3:37 pm
Forum: Advanced users
Topic: Network connectivity and emails
Replies: 14
Views: 2721

Re: Network connectivity and emails

Here's the error: Traceback (most recent call last): File "/home/pi/Projects/Alarms/mbxalarm.py", line 60, in <module> sendalarm(fromaddr, toaddr, text) File "/home/pi/Projects/Alarms/mbxalarm.py", line 24, in sendalarm client = smtplib.SMTP('smtp.gmail.com', 587) File "/usr/lib/python2.7/smtplib.py...
by barry914
Thu Dec 15, 2016 3:06 pm
Forum: Advanced users
Topic: Network connectivity and emails
Replies: 14
Views: 2721

Network connectivity and emails

I have a python script that polls a sensor and generates an email when the sensor becomes active. Works great, except for one detail. I recently added a function to send an email when the script starts. When run from the command line, everything works as expected, but when run at boot from crontab i...
by barry914
Tue Dec 13, 2016 5:14 pm
Forum: Camera board
Topic: PiKrellCam: motion vector detect + OSD web interface
Replies: 1485
Views: 366801

Re: PiKrellCam: motion vector detect + OSD web interface

Fox Mulder wrote: Here is one very simple example how to do this but there are many more possible ways:
And here's another: http://naelshiab.com/tutorial-send-email-python/

I use these methods in my IOT monitors for various alarm conditions, like leak detection, access monitoring, etc.
by barry914
Mon Dec 12, 2016 7:35 pm
Forum: Advanced users
Topic: Wired and Wireless Connection
Replies: 2
Views: 780

Re: Wired and Wireless Connection

Edit /etc/wpa_supplicant/wpa_supplicant.conf and add this line to the network={ section:

Code: Select all

    scan_ssid=1

Go to advanced search