There is a limit somewhere how fast the gust will measure. Since we are depending on interrupts, it will depend on a lot of factors, such as the speed of your Pi, what else you are running, and probably the phase of the moon (that's humor).
After several months of normal operation, I discovered SkyWeather did not start after a reboot. I have been using rc.local during those months very successfully, but now SkyWeather does not start after reboot (every 5 days).
Any insight would be helpful. Absolutely no change in any SkyWeather-related before SkyWeather began failing to start after reboot. Just before no-start-after-reboot, I did delete nohup.out as I do periodically due to its extremely large size. Cause or coincidental?
I periodically update with sudo apt update.
My rc.local file below.
#!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing.
# Print the IP address _IP=$(hostname -I) || true if [ "$_IP" ]; then printf "My IP address is %s\n" "$_IP" fi
cd /home/pi/SDL_Pi_SkyWeather nohup sudo python SkyWeather.py &
Hardware: Raspberry Pi4 4GB RAM
Linux wx-station 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l