Skip to content

Project layout and deployment: move scripts to /opt/zero2dash, add placeholder test, update README and systemd paths#8

Merged
aSbiEL0 merged 4 commits intomainfrom
codex/create-placeholder-test-script-i38zjx
Feb 28, 2026
Merged

Project layout and deployment: move scripts to /opt/zero2dash, add placeholder test, update README and systemd paths#8
aSbiEL0 merged 4 commits intomainfrom
codex/create-placeholder-test-script-i38zjx

Conversation

@aSbiEL0
Copy link
Copy Markdown
Owner

@aSbiEL0 aSbiEL0 commented Feb 28, 2026

Motivation

  • Provide a consistent project layout and deployment location under /opt/zero2dash for easier installation and service management.
  • Add a simple framebuffer test utility to verify rendering without the full Pi-hole integration.
  • Update documentation to reflect the new layout and simplify dependency installation for Raspberry Pi.

Description

  • Moved script files into a scripts/ directory and updated their install paths to /opt/zero2dash/scripts; renamed pihole-display-pre.sh and piholestats_v1.*.py accordingly.
  • Added scripts/test.py, a small RGB565 framebuffer test tool that can save a preview image with --output or write directly to a framebuffer device.
  • Updated systemd unit files to use WorkingDirectory=/opt/zero2dash and execute the prep script and Python scripts from /opt/zero2dash/scripts.
  • Expanded README.md with a suggested project structure, deployment instructions, an adjusted Python dependency installation (python3-pil) and usage examples for the placeholder test.

Testing

  • Ran the display preview command python3 scripts/test.py --output /tmp/test.png --no-framebuffer which created the preview image and exited successfully.
  • Executed the framebuffer path check python3 scripts/test.py --no-framebuffer --fbdev /dev/fb1 in an environment without /dev/fb1 to verify the script returns a non-zero exit and prints an error as expected.
  • No additional automated unit tests or CI jobs were modified or added in this change.

Codex Task

@aSbiEL0
Copy link
Copy Markdown
Owner Author

aSbiEL0 commented Feb 28, 2026

@codex[agent] again the same issue with the code?

@Codex
Copy link
Copy Markdown
Contributor

Codex AI commented Feb 28, 2026

@aSbiEL0 I've opened a new pull request, #9, to work on those changes. Once the pull request is ready, I'll request review from you.

Codex AI and others added 2 commits February 28, 2026 17:26
Co-authored-by: openai-code-agent[bot] <242516109+Codex@users.noreply.github.com>
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6637c58a74

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +2 to +6
<<<<<<< HEAD:systemd/pihole-display.service
Description=Pi-hole TFT Stats Display
=======
Description=Pi-hole TFT Day Display Rotator
>>>>>>> main:systemd/display.service
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Remove merge conflict markers from display unit

This unit file still contains unresolved Git conflict markers (<<<<<<<, =======, >>>>>>>), so systemd cannot parse it as a valid service definition; the day display service will fail to load/start in deployments that copy this file.

Useful? React with 👍 / 👎.

sudo systemctl enable --now display.service
```

sudo systemctl enable --now pihole-display.service
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Reference the actual day service unit in install commands

The README instructs users to enable pihole-display.service, but this commit only provides systemd/display.service (plus pihole-display-dark.service), so following these commands will fail with a missing unit and leave day mode not installed.

Useful? React with 👍 / 👎.

* Initial plan

* Initial plan (#6)

Co-authored-by: openai-code-agent[bot] <242516109+Codex@users.noreply.github.com>

---------

Co-authored-by: openai-code-agent[bot] <242516109+Codex@users.noreply.github.com>
@aSbiEL0 aSbiEL0 merged commit 2246852 into main Feb 28, 2026
@aSbiEL0 aSbiEL0 deleted the codex/create-placeholder-test-script-i38zjx branch February 28, 2026 17:51
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 78df9bbd2e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@@ -1,16 +1,28 @@
[Unit]
<<<<<<< HEAD:systemd/pihole-display.service
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Remove unresolved merge markers from service unit

This unit file still contains Git conflict markers, so systemd will reject it as invalid syntax and the day display service cannot start on systems that install this file. Any deployment that copies systemd/display.service and runs systemctl daemon-reload will hit a unit parse error until these markers are resolved.

Useful? React with 👍 / 👎.

sudo systemctl enable --now display.service
```

sudo systemctl enable --now pihole-display.service
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Copy and enable the same service unit name

The install commands copy pihole-display*.service and then enable pihole-display.service, but this commit only provides systemd/display.service (plus pihole-display-dark.service), so following these steps leaves the main day service absent and systemctl enable --now pihole-display.service fails with a missing unit.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants