mirror of https://github.com/arendst/Tasmota.git
Updated Script Cookbook (markdown)
parent
bdea1a1612
commit
54b74db9c6
|
@ -2,6 +2,7 @@
|
||||||
- [Scripting Language Example](#Scripting-Language-Example)
|
- [Scripting Language Example](#Scripting-Language-Example)
|
||||||
- [Sensor Logging](#Sensor-Logging)
|
- [Sensor Logging](#Sensor-Logging)
|
||||||
- [ePaper 29 Display with SGP30 and BME280](#ePaper-29-Display-with-SGP30-and-BME280)
|
- [ePaper 29 Display with SGP30 and BME280](#ePaper-29-Display-with-SGP30-and-BME280)
|
||||||
|
- [ePaper 42 Display with SHT31 and BME280](#ePaper-42-Display-with-SHT31-and-BME280)
|
||||||
- [ILI 9488 Color LCD Display with BMP280 and VL5310X](#ILI-9488-Color-LCD-Display-with-BMP280-and-VL5310X)
|
- [ILI 9488 Color LCD Display with BMP280 and VL5310X](#ILI-9488-Color-LCD-Display-with-BMP280-and-VL5310X)
|
||||||
- [LED Bar Display with WS2812 LED Chain](#LED-Bar-Display-with-WS2812-LED-Chain)
|
- [LED Bar Display with WS2812 LED Chain](#LED-Bar-Display-with-WS2812-LED-Chain)
|
||||||
- [Multiple IR Receiver Synchronization](#Multiple-IR-Receiver-Synchronization)
|
- [Multiple IR Receiver Synchronization](#Multiple-IR-Receiver-Synchronization)
|
||||||
|
@ -421,6 +422,117 @@ endif
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#### ePaper 42 Display with SHT31 and BME280
|
||||||
|
this script shows 2 graphs some local sensors, and a power statistics on an 4.2 inch epaper
|
||||||
|
the first graph is the battery level of a solar battery (tesla powerwall 2)
|
||||||
|
the second shows the solar yield in watts of the roof panels
|
||||||
|
also special is the display of daily and weekly averages (via moving average) of all power IO of the house.
|
||||||
|
as the display is a full update panel it is updated only once a minute
|
||||||
|
some values (like power meters) are set remotely from iobroker
|
||||||
|
|
||||||
|
|
||||||
|
>**>D**
|
||||||
|
hum=0
|
||||||
|
temp=0
|
||||||
|
press=0
|
||||||
|
zwz=0
|
||||||
|
wr1=0
|
||||||
|
wr2=0
|
||||||
|
wr3=0
|
||||||
|
otmp=0
|
||||||
|
pwl=0
|
||||||
|
ez1=0
|
||||||
|
sez1=0
|
||||||
|
M:mez1=0 7
|
||||||
|
ezh=0
|
||||||
|
sezh=0
|
||||||
|
M:mezh=0 7
|
||||||
|
vzh=0
|
||||||
|
svzh=0
|
||||||
|
M:mvzh=0 7
|
||||||
|
|
||||||
|
>hr=0
|
||||||
|
t1=0
|
||||||
|
DT="DisplayText"
|
||||||
|
|
||||||
|
>**>B**
|
||||||
|
=>%DT% [IzD0]
|
||||||
|
=>%DT% [zG10352:5:40:-350:80:10080:0:100f3x360y40]100 %%[x360y115]0 %%
|
||||||
|
=>%DT% [f1x100y25]Powerwall - 7 Tage[f1x360y75] 0 %%
|
||||||
|
=>%DT% [G10353:5:140:-350:80:10080:0:5000f3x360y140]+5000 W[x360y215]0 W
|
||||||
|
=>%DT% [f1x70y125]Volleinspeisung - 7 Tage[f1x360y180] 0 W
|
||||||
|
=>%DT% [p13x10y230]WR 1,2,3:
|
||||||
|
=>%DT% [p13x10y245]H-Einsp.:
|
||||||
|
=>%DT% [p13x10y260]H-Verbr.:
|
||||||
|
=>%DT% [p13x10y275]D-Einsp.:
|
||||||
|
=>%DT% [d]
|
||||||
|
|
||||||
|
>**>T**
|
||||||
|
press=BMP280#Pressure
|
||||||
|
temp=SHT3X_0x44#Temperature
|
||||||
|
hum=SHT3X_0x44#Humidity
|
||||||
|
|
||||||
|
>**>S**
|
||||||
|
if upsecs%60==0
|
||||||
|
then
|
||||||
|
dp2
|
||||||
|
=>%DT% [f1p7x0y5]%temp% C
|
||||||
|
=>%DT% [x0y20h400x250y5T][x350t][f1p10x70y5]%hum% %%
|
||||||
|
=>%DT% [p10x140y5]%press% hPa
|
||||||
|
dp0
|
||||||
|
=>%DT% [p5x360y75]%pwl% %%
|
||||||
|
=>%DT% [p6x360y180]%wr1%W
|
||||||
|
=>%DT% [g0:%pwl%g1:%wr1%]
|
||||||
|
|
||||||
|
>=>%DT% [p24x75y230] %wr1% W : %-wr2% W : %-wr3% W
|
||||||
|
=>%DT% [p-10x75y245]%ezh% kWh
|
||||||
|
=>%DT% [p-10x75y260]%vzh% kWh
|
||||||
|
=>%DT% [p-10x75y275]%ez1% kWh
|
||||||
|
|
||||||
|
>t1=mezh*7
|
||||||
|
=>%DT% [p-10x150y245]: %t1% kWh
|
||||||
|
t1=mvzh*7
|
||||||
|
=>%DT% [p-10x150y260]: %t1% kWh
|
||||||
|
t1=mez1*7
|
||||||
|
=>%DT% [p-10x150y275]: %t1% kWh
|
||||||
|
|
||||||
|
>dp1
|
||||||
|
t1=ezh-sezh
|
||||||
|
=>%DT% [p12x250y245]: %t1% kWh
|
||||||
|
t1=vzh-svzh
|
||||||
|
=>%DT% [p12x250y260]: %t1% kWh
|
||||||
|
t1=ez1-sez1
|
||||||
|
=>%DT% [p12x250y275]: %t1% kWh
|
||||||
|
|
||||||
|
>dp0
|
||||||
|
=>%DT% [f2p5x320y250] %otmp%C
|
||||||
|
|
||||||
|
>=>%DT% [d]
|
||||||
|
endif
|
||||||
|
|
||||||
|
>hr=hours
|
||||||
|
if chg[hr]>0
|
||||||
|
and hr==0
|
||||||
|
then
|
||||||
|
mez1=ez1-sez1
|
||||||
|
sez1=ez1
|
||||||
|
mezh=ezh-sezh
|
||||||
|
sezh=ezh
|
||||||
|
mvzh=vzh-svzh
|
||||||
|
svzh=vzh
|
||||||
|
endif
|
||||||
|
|
||||||
|
>if sezh==0
|
||||||
|
then
|
||||||
|
sez1=ez1
|
||||||
|
sezh=ezh
|
||||||
|
svzh=vzh
|
||||||
|
endif
|
||||||
|
|
||||||
|
[Back To Top](#top)
|
||||||
|
|
||||||
|
------------------------------------------------------------------------------
|
||||||
|
|
||||||
#### ILI 9488 Color LCD Display with BMP280 and VL5310X
|
#### ILI 9488 Color LCD Display with BMP280 and VL5310X
|
||||||
Shows various energy graphs
|
Shows various energy graphs
|
||||||
display switches on and off with proximity sensor
|
display switches on and off with proximity sensor
|
||||||
|
|
Loading…
Reference in New Issue