3

I have just got my first Raspberry Pi, (3 Model B+) and am having so much fun with it. My first project is a simple wildlife camera that takes pictures using a simple python script to detect motion. It works great and I have since updated it to also take 10-second videos on motion, (Great for watching the birds in front of a bird feeder).

I have set up samba to make it easy to access the files, but that requires me to be connected to a wifi network. Is there any way that I could use Samba, by connecting over wifi directly to the pi? so that I could go outside with my laptop and have a look if I caught any good images without having to take it inside and connect to my home wifi network.

Even better would be to somehow make the images accessible by any browser so I could have a look at the pictures that were taken. The SD card I am using is multi-purpose so I don't want to mess too much with the wifi configuration etc.

If anyone could point me in the right direction I would appreciate it greatly, Thank you!

3 Answers3

0

If the Pi is mostly-connected, there's also the option "lsyncd the pictures to a server out there, and webserve it from there."

0

Your question is unclear, but I think the following would meet your needs Raspberry Pi as an Access Point OR WiFi client

This lets my Pi work as a normal WiFi Client when one of my networks is available and as an Access Point otherwise. This would let you use your laptop to connect to the Access Point, but when you bring the Pi indoors it would connect to your router. I use this when travelling with my Pi.

I can't comment on Samba, but I access the Pi with ssh, VNC, ftp and other protocols, and can access a nginx server on the Pi.

Milliways
  • 62,573
  • 32
  • 113
  • 225
0

I don't know if it is reasonable for your situation but by far the easiest way to connect to the RasPi outside is to connect to it with an ethernet cable. This works out of the box and don't need additional configuration. You may have the cable always plugged in the RasPi. For example if you have the RasPi mounted in a tree, the cable is hanging down the tree and you can temporary connect to it with the laptop if you want.

Other ways are to use WiFi in all its possible combinations. If the cable solution is not possible I would prefer an access point without routing because there is no routing needed between the access point and the client connection. How to do it you can look at Access point as WiFi repeater, optional with bridge. Follow it until Step 4: setup static interfaces and omit the line IPForward=yes in file /etc/systemd/network/08-wlan0.network.

If you prefer to use an additional USB/WiFi dongle you can look at Access point as WiFi repeater with additional WiFi-dongle but I don't see a real advantage to spend additional hardware for this simple use case.

You can also switch manual or by script the on-board WiFi to be used either as access point or as client connection. How to do it you can look at Switch between wifi client and access point without reboot.

You may also consider to use the bluetooth connection.

Ingo
  • 42,961
  • 20
  • 87
  • 207