Skip to content

Commit 97c5833

Browse files
committed
Verified Mycodo installs on Debian 13 Trixie
1 parent 2b77473 commit 97c5833

File tree

7 files changed

+5
-24
lines changed

7 files changed

+5
-24
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This release has several updates that allow Mycodo to be installed and run on De
44

55
If you are running Debian 12 or similar version operating system, you will need to install Python 3.11, regenerate your virtualenv, then install dependencies, before upgrading to this version.
66

7-
See https://askubuntu.com/a/1438713 for instructions for installing Python 3.11 on Debian-based operating systems. Briefly:
7+
See https://askubuntu.com/a/1438713 for instructions for installing Python 3.11 on version <= 12 Debian-based operating systems. Briefly:
88

99
```bash
1010
sudo add-apt-repository ppa:deadsnakes/ppa

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Mycodo is open source software for the Raspberry Pi that couples inputs and outp
1515
Quick Install
1616
-------------
1717

18-
Prerequisites: Debian-based Linux operating system (apt).
18+
Prerequisites: Debian-based Linux operating system (tested with Raspberry Pi OS 13 Trixie).
1919

2020
Recommended: Single board computer (SBC) with General-Purpose Input-Output (GPIO) pins.
2121

@@ -140,15 +140,15 @@ Prerequisites
140140

141141
Required:
142142

143-
- Debian-based operating system
143+
- Debian-based operating system (tested with Raspberry Pi OS 13 Trixie)
144144
- An active internet connection
145145

146146
Recommended:
147147

148148
- `Raspberry Pi <https://www.raspberrypi.org>`__ single-board computer: 3, 4, or 5 (Zero, 1, and 2 are no longer recommended)
149149
- `Raspberry Pi Operating System <https://www.raspberrypi.com/software/>`__ flashed to a micro SD card or SSD
150150

151-
Mycodo has been tested to work with Raspberry Pi OS 12 (Bookworm release), Lite and Desktop, 32-bit and 64-bit.
151+
Mycodo has been tested to work with Raspberry Pi OS 13 (Trixie release), Lite and Desktop, 32-bit and 64-bit.
152152

153153
Install Command
154154
~~~~~~~~~~~~~~~

install/setup.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ SECONDS=0
189189
START_B=$(date)
190190
printf "#### Mycodo installation began %s\n" "${START_B}" 2>&1 | tee -a "${LOG_LOCATION}"
191191

192-
${INSTALL_CMD} update-swap-size 2>&1 | tee -a "${LOG_LOCATION}"
193192
${INSTALL_CMD} update-apt 2>&1 | tee -a "${LOG_LOCATION}"
194193
${INSTALL_CMD} uninstall-apt-pip 2>&1 | tee -a "${LOG_LOCATION}"
195194
${INSTALL_CMD} update-packages 2>&1 | tee -a "${LOG_LOCATION}"

install/setup_unattended.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ SECONDS=0
8181
NOW=$(date)
8282
printf "#### Mycodo installation began %s\n" "${NOW}" 2>&1 | tee -a "${LOG_LOCATION}"
8383

84-
${INSTALL_CMD} update-swap-size 2>&1 | tee -a "${LOG_LOCATION}"
8584
${INSTALL_CMD} update-apt 2>&1 | tee -a "${LOG_LOCATION}"
8685
${INSTALL_CMD} uninstall-apt-pip 2>&1 | tee -a "${LOG_LOCATION}"
8786
${INSTALL_CMD} update-packages 2>&1 | tee -a "${LOG_LOCATION}"

mycodo/inputs/grove_temp_humidity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
'input_name_unique': 'GROVE_TEMP_AND_HUMIDITY',
3232
'input_manufacturer': 'Seeedstudio',
3333
'input_name': 'DHT11/22',
34-
'input_library': 'grovepi',
34+
'input_library': 'grovepi, libatlas-base-dev',
3535
'measurements_name': 'Humidity/Temperature',
3636
'measurements_dict': measurements_dict,
3737
'url_manufacturer': [

mycodo/scripts/upgrade_commands.sh

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ Options:
8585
update-permissions Set permissions for Mycodo directories/files
8686
update-pip3 Update pip
8787
update-pip3-packages Update required pip packages
88-
update-swap-size Ensure swap size is sufficiently large (512 MB)
8988
upgrade-mycodo Upgrade Mycodo to latest compatible release and preserve database and virtualenv
9089
upgrade-release-major {ver} Upgrade Mycodo to a major version release {ver} and preserve database and virtualenv
9190
upgrade-release-wipe {ver} Upgrade Mycodo to a major version release {ver} and wipe database and virtualenv
@@ -647,17 +646,6 @@ case "${1:-''}" in
647646
'pip-clear-cache')
648647
"${MYCODO_PATH}"/env/bin/python -m pip cache remove *
649648
;;
650-
'update-swap-size')
651-
printf "\n#### Checking if swap size is 100 MB and needs to be changed to 512 MB\n"
652-
if grep -q -s "CONF_SWAPSIZE=100" "/etc/dphys-swapfile"; then
653-
printf "#### Swap currently set to 100 MB. Changing to 512 MB and restarting\n"
654-
sed -i 's/CONF_SWAPSIZE=100/CONF_SWAPSIZE=512/g' /etc/dphys-swapfile
655-
/etc/init.d/dphys-swapfile stop
656-
/etc/init.d/dphys-swapfile start
657-
else
658-
printf "#### Swap not currently set to 100 MB. Not changing.\n"
659-
fi
660-
;;
661649
'upgrade-mycodo')
662650
/bin/bash "${MYCODO_PATH}"/mycodo/scripts/upgrade_download.sh upgrade-release-major "${MYCODO_MAJOR_VERSION}"
663651
;;

mycodo/scripts/upgrade_post.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ TIMER_START_initialize=$SECONDS
2828
${INSTALL_CMD} initialize
2929
TIMER_TOTAL_initialize=$((SECONDS - TIMER_START_initialize))
3030

31-
TIMER_START_update_swap_size=$SECONDS
32-
${INSTALL_CMD} update-swap-size
33-
TIMER_TOTAL_update_swap_size=$((SECONDS - TIMER_START_update_swap_size))
34-
3531
TIMER_START_update_apt=$SECONDS
3632
${INSTALL_CMD} update-apt
3733
TIMER_TOTAL_update_apt=$((SECONDS - TIMER_START_update_apt))
@@ -118,7 +114,6 @@ TIMER_TOTAL_web_server_connect=$((SECONDS - TIMER_START_web_server_connect))
118114

119115
printf "\nStage 3 execution time summary:"
120116
printf "\ninitialize: %s s" "${TIMER_TOTAL_initialize}"
121-
printf "\nupdate-swap-size: %s s" "${TIMER_TOTAL_update_swap_size}"
122117
printf "\nsetup-virtualenv: %s s" "${TIMER_TOTAL_setup_virtualenv}"
123118
printf "\nupdate-apt: %s s" "${TIMER_TOTAL_update_apt}"
124119
printf "\nupdate-packages: %s s" "${TIMER_TOTAL_update_packages}"

0 commit comments

Comments
 (0)