From 3ff42b701eaac77838516b61e5f6f39b2b2eb690 Mon Sep 17 00:00:00 2001 From: Tyler Date: Mon, 13 Feb 2023 00:24:56 -0500 Subject: [PATCH] initial commit --- .drone.yml | 9 +++++++++ .gitignore | 2 ++ build.sh | 21 +++++++++++++++++++++ user_config_override.h | 29 +++++++++++++++++++++++++++++ 4 files changed, 61 insertions(+) create mode 100644 .drone.yml create mode 100644 .gitignore create mode 100644 build.sh create mode 100644 user_config_override.h diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..ca32909 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,9 @@ +kind: pipeline +type: docker +name: default + +steps: + - name: build + image: blakadder/docker-tasmota + commands: + - ./build.sh \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..caa32e6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.idea/ +*.iml \ No newline at end of file diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..b6dd3c2 --- /dev/null +++ b/build.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +apt-get update +apt-get -y install git + +base_dir=$(pwd) + +git clone https://github.com/arendst/Tasmota.git /tasmota + +cd /tasmota + +if [ -z "$TASMOTA_VERSION" ]; then + TASMOTA_VERSION=$(wget -qO - https://api.github.com/repos/arendst/Tasmota/releases/latest | grep -oP 'tag_name"\s*:\s*"\K[^"]+') +fi + +git checkout $TASMOTA_VERSION + +rm -f /tasmota/tasmota/user_config_override.h +cp $base_dir/user_config_override.h /tasmota/tasmota/user_config_override.h + +pio run -e tasmota \ No newline at end of file diff --git a/user_config_override.h b/user_config_override.h new file mode 100644 index 0000000..d638f15 --- /dev/null +++ b/user_config_override.h @@ -0,0 +1,29 @@ +/* + user_config_override.h - user configuration overrides my_user_config.h for Tasmota + + Copyright (C) 2021 Theo Arends + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*/ + +#ifndef _USER_CONFIG_OVERRIDE_H_ +#define _USER_CONFIG_OVERRIDE_H_ + +#ifdef USE_DOMOTICZ +#undef USE_DOMOTICZ +#endif + +#define USER_BACKLOG "" + +#endif // _USER_CONFIG_OVERRIDE_H_