Skip to content

Commit

Permalink
Support for Shelly Mini g3 (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 committed Dec 31, 2023
1 parent b783ad5 commit 981b576
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
Binary file added build-files/C3_8MB_partition-table.bin
Binary file not shown.
Binary file added build-files/fs-8MB-tasmota-C3.img
Binary file not shown.
14 changes: 14 additions & 0 deletions build-zip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ generatezip () {
shelly_device=$1
app_file=$2
fs_file=$3
if [[ $4 -eq 3 ]]
then
platform="esp32c3"
boot_file="bootloader-tasmota-c3.bin"
boot_file_addr=0
partition_file="C3_8MB_partition-table.bin"
else
if [[ $4 -eq 2 ]]
then
platform="esp32c3"
Expand All @@ -32,6 +39,7 @@ else
boot_file_addr=4096
partition_file="partition-table.bin"
fi
fi

#General:
otadata_file="otadata.bin"
Expand Down Expand Up @@ -101,6 +109,12 @@ printf "\nDone mgos32-to-tasmota32-$shelly_device.zip\n\n"
}
ShellyMiniG3=( Mini1PMG3 Mini1G3 MiniPMG3 )
for i in "${ShellyMiniG3[@]}"
do
generatezip $i "tasmota32c3.bin" "fs-8MB-tasmota-C3.img" 3
done
ShellyPlusMini=( Plus1PMMini Plus1Mini PlusPMMini )
for i in "${ShellyPlusMini[@]}"
do
Expand Down

0 comments on commit 981b576

Please sign in to comment.