Skip to content

Commit

Permalink
Integrate esp-robonomics-client to firmwares
Browse files Browse the repository at this point in the history
  • Loading branch information
PavelSheremetev committed Jan 13, 2025
1 parent e3ce597 commit 970493c
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
firmware/Tasmota/Tasmota/
.platformio
9 changes: 9 additions & 0 deletions firmware/Tasmota/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,13 @@ else
# cp platformio_tasmota_cenv.ini Tasmota/platformio_tasmota_cenv.ini
fi

if [ -d "Tasmota/lib/defaults/esp-robonomics-client" ]; then
echo "esp-robonomics-client already installed"
else
echo "esp-robonomics-client not installed, installing it now"
git clone https://github.com/LoSk-p/esp-robonomics-client.git Tasmota/lib/default/esp-robonomics-client
ln -s ../../lib/default/esp-robonomics-client/examples/Tasmota_driver/xdrv_100_robonomics.ino Tasmota/tasmota/tasmota_xdrv_driver/xdrv_100_robonomics.ino
fi


#pio run -e em-esp32s3 -e es-sds-esp8266 -e ir-esp32 -e ir-esp32c6 -e sws-1g-e-esp32 -e sws-2g-e-esp32 -d ./Tasmota/
1 change: 1 addition & 0 deletions firmware/Tasmota/platformio_tasmota_cenv.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ build_flags =
[env:em-esp32s3]
extends = env:tasmota32_base
board = esp32s3-qio_qspi
lib_deps = Crypto
build_flags = ${env:tasmota32_base.build_flags}
-DFIRMWARE_EM_ESP32S3
-DOTA_URL='""'
Expand Down
17 changes: 17 additions & 0 deletions firmware/Tasmota/shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{ pkgs ? import <nixpkgs> {} }:
let
in
pkgs.mkShell {
buildInputs = [
pkgs.platformio
pkgs.esptool
pkgs.python312Packages.pip
pkgs.python312Packages.zopfli
pkgs.python312Packages.wheel
# optional: needed as a programmer i.e. for esp32
# pkgs.avrdude
];
shellHook = ''
export PLATFORMIO_CORE_DIR=$PWD/.platformio
'';
}

0 comments on commit 970493c

Please sign in to comment.