Solar powered on/off line timelapse photography: Difference between revisions
Line 14: | Line 14: | ||
} | } | ||
</pre> | </pre> | ||
The internet connection can be shut down using <pre>sudo ip link set wlan0 down</pre> which mimics the procedure that my hotspot is not nearby. | The internet connection can be shut down using <pre>sudo ip link set wlan0 down</pre> which mimics the procedure that my hotspot is not nearby. <pre>ip a</pre> or using ping you can verify that there is no internet connection. When connecting to back to internet [<pre>up</pre>] (or setting the hotspot on) everything should work. However, for some reason my Raspi did not connect to the internet, but by using <pre>sudo dhcpcd</pre> it works. | ||
=== Copy files net service === | === Copy files net service === |
Revision as of 20:36, 17 April 2022
Introduction
Create offline timelapse photographer power by solar power using Raspberry Pi. When the Raspi connects to the internet, it will start transferring the images to a net storage. The uploaded photos will be then shown on a separate web page. Also, by triggering GPIO pins, Raspberry Pi will send a separate photo directly to the net storage. These photos are used to adjust the position and alignment of the camera.
Connect to internet
My Raspberry Pi 4 uses WPA to store wifi and ethernet data at /etc/wpa_supplicant/XXXX.conf file. It includes
country=ee update_config=1 network={ ssid="My Phone" psk="very secret passphrase" }
The internet connection can be shut down using
sudo ip link set wlan0 down
which mimics the procedure that my hotspot is not nearby.
ip a
or using ping you can verify that there is no internet connection. When connecting to back to internet [
up
] (or setting the hotspot on) everything should work. However, for some reason my Raspi did not connect to the internet, but by using
sudo dhcpcd
it works.