Skip to content

Commit

Permalink
version 0.1.6 (pre and post status publishing for cam runner)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Berenz committed Oct 26, 2024
1 parent 146da47 commit 3d172ed
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
21 changes: 20 additions & 1 deletion nightskycam/cams/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,25 @@ def iterate(self):
if not camera.is_connected():
raise RuntimeError("the camera does not seem to be connected")

# we update the status twice. Here: before taking picture
self._update_status(
frequency,
active,
reason,
start,
end,
use_sun_alt,
use_weather,
night,
cloud_cover,
cloud_cover_threshold,
weather,
config_issues,
camera_info,
pause,
)


if bad_weather:
# bad weather means that pictures are not taken because
# of cloud coverage. We create a toml meta data file
Expand Down Expand Up @@ -329,7 +348,7 @@ def iterate(self):
)
self._nb_pictures += 1

# The status of this runner is quite complicated...
# we update the status twice. Here: after taking picture
self._update_status(
frequency,
active,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "nightskycam"
version = "0.1.5"
version = "0.1.6"
description = "taking pictures at night"
authors = ["Vincent Berenz <vberenz@tuebingen.mpg.de>"]
packages = [{ include = "nightskycam" }]
Expand Down

0 comments on commit 3d172ed

Please sign in to comment.