Skip to content

Commit

Permalink
- updated comments and DEBUG output.
Browse files Browse the repository at this point in the history
  • Loading branch information
sabotrax committed Jan 19, 2023
1 parent 4a32643 commit bbc8a9a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 3 additions & 1 deletion create_splash_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
image_text = f"E-Mail: {config('EMAIL_USER')}\n"
image_counter = count_files(config('PROJECT_PATH') + '/pictures')
if image_counter > 0:
# change info text of the splash image here
image_text += f"Bilder: {image_counter}\n\n"
else:
image_text += "\n"
Expand All @@ -28,7 +29,8 @@

if connected:
ip_address = ni.ifaddresses(config('NETWORK_DEVICE'))[ni.AF_INET][0]['addr']
# this path should match with the Samba configuration
# change info text of the splash image here
# the network path should match with the Samba configuration
image_text += f'Freigabe: \\\\{ip_address}\\bilder'
else:
image_text += config('NETWORK_ERROR')
Expand Down
1 change: 0 additions & 1 deletion sitebin/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
# change accordingly to your installation directory
cd /home/schommer/monisrahmen
# wait for network
#sleep 40
bin/python3 create_splash_image.py
/usr/bin/fbi -T 1 -a --noverbose site_data/splash.png &
sleep 20
Expand Down
4 changes: 2 additions & 2 deletions sync_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
db.remove(doc_ids=removal_pending)

if DEBUG:
print("part one done")
print("done syncing db to fs")

# second part: sync fs to db
if DEBUG:
Expand Down Expand Up @@ -94,4 +94,4 @@
Path(config('PROJECT_PATH') + '/site_run/image_added').touch(exist_ok=True)

if DEBUG:
print("part two done")
print("done syncing fs to db")

0 comments on commit bbc8a9a

Please sign in to comment.