Skip to content

fix(install): drop stale cw_beacon.py copy (retired in c8ca09a)#12

Closed
sthomas69 wants to merge 1 commit into
SensorsIot:mainfrom
sthomas69:fix/install-sh-cw-beacon
Closed

fix(install): drop stale cw_beacon.py copy (retired in c8ca09a)#12
sthomas69 wants to merge 1 commit into
SensorsIot:mainfrom
sthomas69:fix/install-sh-cw-beacon

Conversation

@sthomas69

Copy link
Copy Markdown

Problem

pi/install.sh still copies pi/cw_beacon.py, but that file was removed when the legacy CW beacon API was retired (c8ca09a). Under set -e, the missing-file cp aborts the script mid-run — both a fresh install.sh and install.sh --update die before the portal service is restarted (line 89 copies portal.py, then it aborts at the cw_beacon line before the systemctl restart).

Fix

Remove the dead cp cw_beacon.py line. bash -n clean.

Verification

Ran sudo bash pi/install.sh --update on a Pi after this change: it completes cleanly, the portal service comes back active, and /api/devices serves all slots.

install.sh still copied pi/cw_beacon.py, but that file was removed when the
legacy CW beacon API was retired (c8ca09a). Under `set -e` the missing-file cp
aborts the script mid-run, so both a fresh install and `install.sh --update`
die before the portal service is restarted. Remove the dead copy line.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 16, 2026 02:23

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates the Raspberry Pi install script to stop installing the cw_beacon.py utility.

Changes:

  • Removed the cw_beacon.py copy/install step from pi/install.sh.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pi/install.sh
Comment on lines 90 to 95
cp "$SCRIPT_DIR/plain_rfc2217_server.py" /usr/local/bin/plain_rfc2217_server.py
cp "$SCRIPT_DIR/wifi_controller.py" /usr/local/bin/wifi_controller.py
cp "$SCRIPT_DIR/ble_controller.py" /usr/local/bin/ble_controller.py
cp "$SCRIPT_DIR/cw_beacon.py" /usr/local/bin/cw_beacon.py
cp "$SCRIPT_DIR/bcm_gpio.py" /usr/local/bin/bcm_gpio.py
cp "$SCRIPT_DIR/gpclk.py" /usr/local/bin/gpclk.py
cp "$SCRIPT_DIR/morse.py" /usr/local/bin/morse.py
@sthomas69

Copy link
Copy Markdown
Author

Closing as a duplicate — #8 by @cardre already removes the missing cw_beacon.py (and updates openocd-esp32). Apologies for the noise; I should have checked the open PRs first.

@sthomas69 sthomas69 closed this Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants