Skip to content

Commit 0ba9900

Browse files
authored
Merge pull request #3218 from thomasjacquin/Point-Release-4
Point release 4
2 parents 4ab3e2b + 1f58d21 commit 0ba9900

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+1721
-1211
lines changed

README.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Allsky Camera ![Release](https://img.shields.io/badge/Version-v2023.05.01_03-green.svg) [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=MEBU2KN75G2NG&source=url)
1+
# Allsky Camera ![Release](https://img.shields.io/badge/Version-v2023.05.01_04-green.svg) [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=MEBU2KN75G2NG&source=url)
22

33
This is the source code for the Allsky Camera project described [on Instructables](http://www.instructables.com/id/Wireless-All-Sky-Camera/).
44
 
@@ -21,9 +21,10 @@ You will need the following:
2121

2222
 
2323
> **NOTES:**
24-
> - Only the Raspberry Pi OS is supported. Other operating systems like Ubuntu are NOT supported.
25-
> - The ZWO ASI120-series cameras are not recommended due to somewhat poor quality. See [Troubleshooting --> ZWO Cameras](https://htmlpreview.github.io/?https://raw.githubusercontent.com/thomasjacquin/allsky/master/html/documentation/troubleshooting/ZWOCameras.html) for notes on the ASI120-series and related T7 / T7C cameras.
26-
> - The Pi Zero with its limited memory and _very_ limited CPU power (single CPU core), is not recommended. You will likely not be able to create keograms, startrails, or timelapse videos.
24+
> - Only the Raspberry Pi OS is supported (Buster, Bullseye, or Bookworm). Other operating systems like Ubuntu are NOT supported.
25+
> - **NOTE**: support for Buster is going away so please upgrade to Bookworm.
26+
> - The ZWO ASI120-series cameras are not recommended due to somewhat poor quality and tendency to produce timeout errors. See [Troubleshooting --> ZWO Cameras](https://htmlpreview.github.io/?https://raw.githubusercontent.com/thomasjacquin/allsky/master/html/documentation/troubleshooting/ZWOCameras.html) for notes on the ASI120-series and related T7 / T7C cameras.
27+
> - The Pi Zero with its limited memory and _very_ limited CPU power (single CPU core), is **not** recommended. You will most likely not be able to create keograms, startrails, or timelapse videos.
2728
> - The Pi Zero 2 with its limited memory and somewhat limited CPU power, is not recommended unless cost is the only concern. Creating keograms, startrails, and timelapse videos may or may not be possible.
2829
> - The Le Potato is the only "Pi-compatible" board that we've found to actually be compatible, so buyer beware.
2930
---

allsky.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ convert_json_to_tabs "${SETTINGS_FILE}" |
247247
# The preview mode does not work if we are started as a service or if the debian distribution has no desktop environment.
248248
[[ $1 == "preview" ]] && echo "-preview=1" >> "${ARGS_FILE}"
249249

250-
echo "-version=$( get_version )" >> "${ARGS_FILE}"
250+
echo "-version=${ALLSKY_VERSION}" >> "${ARGS_FILE}"
251251
echo "-save_dir=${CAPTURE_SAVE_DIR}" >> "${ARGS_FILE}"
252252

253253
FREQUENCY_FILE="${ALLSKY_TMP}/IMG_UPLOAD_FREQUENCY.txt"
@@ -265,7 +265,9 @@ CAPTURE="capture_${CAMERA_TYPE}"
265265
rm -f "${ALLSKY_NOTIFICATION_LOG}" # clear out any notificatons from prior runs.
266266

267267
# Clear up any flow timings
268-
"${ALLSKY_SCRIPTS}/flow-runner.py" --cleartimings
268+
activate_python_venv
269+
python3 "${ALLSKY_SCRIPTS}/flow-runner.py" --cleartimings
270+
deactivate_python_venv
269271

270272
# Run the main program - this is the main attraction...
271273
# -cmd needs to come first since the capture_RPi code checks for it first. It's ignored

config_repo/Makefile

+6-4
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,11 @@ install: createDirs $(CONFIGFILES)
7878
@install -m 0644 allsky.service $(DESTDIR)$(sysconfdir)/systemd/system/
7979
@rm -f allsky.service
8080
@echo `date +%F\ %R:%S` Setting up home environment variable...
81-
@echo -e "export ALLSKY_TMP=/tmp\nexport ALLSKY_CONFIG=$(DESTDIR)$(sysconfdir)/allsky\nexport ALLSKY_SCRIPTS=$(DESTDIR)$(libexecdir)\nexport ALLSKY_NOTIFICATION_IMAGES=$(DESTDIR)$(sharedir)\nexport ALLSKY_IMAGES=/home/allsky/images/" > $(DESTDIR)$(sysconfdir)/profile.d/allsky.sh
81+
@echo "export ALLSKY_TMP=/tmp\nexport ALLSKY_CONFIG=$(DESTDIR)$(sysconfdir)/allsky\nexport ALLSKY_SCRIPTS=$(DESTDIR)$(libexecdir)\nexport ALLSKY_NOTIFICATION_IMAGES=$(DESTDIR)$(sharedir)\nexport ALLSKY_IMAGES=/home/allsky/images/\nPATH=${PATH}:${DESTDIR}$(libexedir)" > $(DESTDIR)$(sysconfdir)/profile.d/allsy.sh
82+
83+
84+
else # Not in package build mode ######################################
8285

83-
else # Not in package build mode
8486
remove_configs:
8587
@echo `date +%F\ %R:%S` Removing config path and files ../config
8688
@rm -rf ../config
@@ -122,8 +124,8 @@ install: createDirs $(CONFIGFILES)
122124
@systemctl daemon-reload
123125
@systemctl enable allsky
124126
@systemctl enable allskyperiodic
125-
@echo `date +%F\ %R:%S` Setting up home environment variable...
126-
@echo "export ALLSKY_HOME=$(HOMEDIR)" > $(DESTDIR)$(sysconfdir)/profile.d/allsky.sh
127+
@echo `date +%F\ %R:%S` Setting up ALLSKY_HOME environment variable...
128+
@echo "export ALLSKY_HOME=$(HOMEDIR)\nPATH=${PATH}:$(SCRIPTSDIR)" > $(DESTDIR)$(sysconfdir)/profile.d/allsky.sh
127129
.PHONY : install
128130
endif # Package build check
129131
endif # Root check

config_repo/config.sh.repo

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ TIMELAPSEWIDTH=0
6060
TIMELAPSEHEIGHT=0
6161

6262
# Bitrate of the timelapse video.
63-
TIMELAPSE_BITRATE="2000k"
63+
TIMELAPSE_BITRATE="5000k"
6464

6565
# Timelapse video Frames Per Second.
6666
FPS=25
@@ -102,7 +102,7 @@ TIMELAPSE_MINI_FREQUENCY=5
102102
TIMELAPSE_MINI_UPLOAD_VIDEO="true"
103103
TIMELAPSE_MINI_UPLOAD_THUMBNAIL="true"
104104
TIMELAPSE_MINI_FPS=5
105-
TIMELAPSE_MINI_BITRATE="1000k"
105+
TIMELAPSE_MINI_BITRATE="2000k"
106106
TIMELAPSE_MINI_WIDTH=1014
107107
TIMELAPSE_MINI_HEIGHT=760
108108

config_repo/lighttpd.conf.repo

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ server.document-root = "XX_ALLSKY_WEBUI_XX"
44
server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
55
server.errorlog = "/var/log/lighttpd/error.log"
66
server.pid-file = "/var/run/lighttpd.pid"
7-
server.username = "www-data"
8-
server.groupname = "www-data"
7+
#server.username = "www-data"
8+
#server.groupname = "www-data"
99
server.port = 80
1010
server.tag = "Allsky"
1111

0 commit comments

Comments
 (0)