Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
derelict committed Jun 30, 2024
2 parents 476c40a + 8343966 commit 81ea6da
Showing 1 changed file with 59 additions and 6 deletions.
65 changes: 59 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
# TxBatTele :battery:

![GitHub stars](https://img.shields.io/github/stars/derelict/TxBatTele?style=social)
![GitHub forks](https://img.shields.io/github/forks/derelict/TxBatTele?style=social)
![GitHub watchers](https://img.shields.io/github/watchers/derelict/TxBatTele?style=social)
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/derelict/TxBatTele)](https://github.com/derelict/TxBatTele/releases/latest)
[![GitHub all releases](https://img.shields.io/github/downloads/derelict/TxBatTele/total)](https://github.com/derelict/TxBatTele/releases)
![GitHub repo size](https://img.shields.io/github/repo-size/derelict/TxBatTele)
![GitHub language count](https://img.shields.io/github/languages/count/derelict/TxBatTele)
![GitHub top language](https://img.shields.io/github/languages/top/derelict/TxBatTele)
![GitHub last commit](https://img.shields.io/github/last-commit/derelict/TxBatTele?color=red)
![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgit.luolix.top%2Fderelict%2FTxBatTele&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false)
[![Discord](https://img.shields.io/discord/839849772864503828.svg?label=&logo=discord&logoColor=ffffff&color=7389D8&labelColor=6A7EC2)](https://discord.com/channels/839849772864503828/842693696629899274)
![GitHub stars](https://img.shields.io/github/stars/derelict/TxBatTele?style=social)
![GitHub forks](https://img.shields.io/github/forks/derelict/TxBatTele?style=social)
![GitHub watchers](https://img.shields.io/github/watchers/derelict/TxBatTele?style=social)

EdgeTX/OpenTX **Battery** and **Telemetry** Monitoring LUA Widget which tries to **rely as less as possible on radio settings** (Everything is defined in the Script). So no need for "manual" Logical Switches or Custom Functions.

It's supposed to be **"A jack of all trades"** kind of thing (at least for most "standard" needs) but with a main focus on Battery Monitoring.

EdgeTX/OpenTX Battery and Telemetry Monitoring LUA Widget which tries to rely as less as possible on radio settings (Everything is defined in the Script). So no need for "manual" Logical Switches or Custom Functions.
You can also reach out to me on the EdgeTX LUA Discord Channel (see above)

## Key Features of TxBatTele ⭐
- **Receiver** and/or **Main Battery** Monitoring: Monitor your Main **and/or** Receiver Battery. Support for different Battery Types (lipo and buffer currently, can be extended for additional battery types easily)
Expand All @@ -28,7 +35,53 @@ EdgeTX/OpenTX Battery and Telemetry Monitoring LUA Widget which tries to rely as
- **This is currently in alpha/"works for me" state ... use/try at your own Risk**
- Based on [mahRe2](https://github.com/fdm225/mahRe2). So full Credits to them!
- This is my first attempt in LUA Scripting. So please be gentle ;-)
- If you need/want custom voice announcements (for instance modelname) submit a feature request or patch the CSV .. i will try to generate new voices as soon as i have time to
- If you need/want custom voice announcements (for instance modelname) submit a feature request or patch the CSV .. i will try to generate new voices as soon as i have time to. Same applies for new Languages and/or voices (although that would require more work on my side and may take a little longer to implement ;-) )
- **Important:** We are dealing (actually relying on) with **Voltages** and "real" discharge Curves. So make sure your **Sensors are reporting the correct Values** (Check with a **Voltagemeter**) and adjust the Sensor **Offset** accordingly until it reports the real measured Value !

## How to contribute
- **Design the LCD Widget for various sizes** ( i'm not very good at designing / see Screenshots ;-) )
- **Design the LCD Widget for various sizes** ( i'm not very good at designing / see Screenshots ;-) )

## How To's
### NO MAH Sensor
If you don't have a native **mah** Sensor but you do have a **Current** Sensor, you can add a **custom Sensor** like so:

![image](https://github.com/derelict/TxBatTele/assets/2826671/7510e0a4-cda9-4f3e-937d-59755bf00a51)

and use it here:

![image](https://github.com/derelict/TxBatTele/assets/2826671/899175e5-2013-4740-a058-fd3edc4ff4bc)

### How to make automatic logging working
There is a pending Feature request open, to directly implement this in LUA. But for the time being you'll have to make some small Radio Settings in order to use this Feature:

Create a **Logical Switch** like so:

![image](https://github.com/derelict/TxBatTele/assets/2826671/b6b1c3cd-5002-4b37-a6c9-de3d3fd41b73)

and then a **Special Function** for the actual logging:

![image](https://github.com/derelict/TxBatTele/assets/2826671/a6bc40c3-0486-4716-b21f-451a296fca34)

Make sure to reference the correct **logical switch**. Then in the LUA Model Definition:

![image](https://github.com/derelict/TxBatTele/assets/2826671/9e94d1ed-b566-4ed2-bf47-f1744532c5d8)

and again ... make sure to reference the correct **logical switch** by its index number. 0=L01, 1=L02 and so on.

### How to make automatic screenshots working
There is a pending Pull request open, to directly implement this in LUA. But for the time being you'll have to make some small Radio Settings in order to use this Feature:

Create a **Logical Switch** like so:

![image](https://github.com/derelict/TxBatTele/assets/2826671/fe1071b8-fe24-4f0e-98a9-3b7b9d034f02)

and then a **Special Function** for the actual screenshot taking:

![image](https://github.com/derelict/TxBatTele/assets/2826671/93556a3a-2cc2-4581-849e-09326ece0aa0)

Make sure to reference the correct **logical switch**. Then in the LUA Model Definition:

![image](https://github.com/derelict/TxBatTele/assets/2826671/3582b5b4-ddea-4129-b208-fc20a4f7bc61)

and again ... make sure to reference the correct **logical switch** by its index number. 0=L01, 1=L02 and so on.

0 comments on commit 81ea6da

Please sign in to comment.