Compare commits

..

6 Commits

Author SHA1 Message Date
4538bb05da added size optimizations 2025-11-02 09:23:07 -05:00
4530be4916 removed unnecessary sensors 2025-11-02 09:13:53 -05:00
4b63b71a85 added wifi fast_connect 2025-11-02 09:12:18 -05:00
6029bcd6b9 removed captive_portal esp32_ble_tracker 2025-11-02 09:12:01 -05:00
261c7008f0 updated python.defaultInterpreterPath 2025-11-01 16:57:05 -04:00
8cce072e76 adding osu-lazer for 2025-11-01 16:56:48 -04:00
4 changed files with 14 additions and 21 deletions

View File

@@ -1,7 +1,7 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
boot = { boot = {
kernelPackages = pkgs.linuxPackages_6_17; kernelPackages = pkgs.linuxPackages_6_16;
zfs.package = pkgs.zfs_2_3; zfs.package = pkgs.zfs_2_3;
}; };

View File

@@ -2,6 +2,16 @@ esphome:
name: batteries name: batteries
friendly_name: batteries friendly_name: batteries
platformio_options:
build_unflags:
- -fno-lto
- -Og
- -O0
build_flags:
- -flto
- -Os
- -Wl,--gc-sections
esp32: esp32:
board: esp32dev board: esp32dev
framework: framework:
@@ -23,14 +33,7 @@ ota:
wifi: wifi:
ssid: !secret wifi_ssid ssid: !secret wifi_ssid
password: !secret wifi_password password: !secret wifi_password
fast_connect: true
captive_portal:
esp32_ble_tracker:
scan_parameters:
interval: 1100ms
window: 1100ms
active: true
ble_client: ble_client:
- mac_address: "C8:47:80:29:0F:DB" - mac_address: "C8:47:80:29:0F:DB"
@@ -55,8 +58,6 @@ sensor:
jk_bms_ble_id: jk_bms0 jk_bms_ble_id: jk_bms0
total_voltage: total_voltage:
name: "JK0 Total Voltage" name: "JK0 Total Voltage"
current:
name: "JK0 Current"
state_of_charge: state_of_charge:
name: "JK0 SoC" name: "JK0 SoC"
power: power:
@@ -65,12 +66,8 @@ sensor:
name: "JK0 Temp 1" name: "JK0 Temp 1"
temperature_sensor_2: temperature_sensor_2:
name: "JK0 Temp 2" name: "JK0 Temp 2"
balancing:
name: "JK0 balancing"
charging_cycles: charging_cycles:
name: "JK0 charging cycles" name: "JK0 charging cycles"
total_runtime:
name: "JK0 total runtime"
balancing_current: balancing_current:
name: "JK0 balancing current" name: "JK0 balancing current"
@@ -79,8 +76,6 @@ sensor:
jk_bms_ble_id: jk_bms1 jk_bms_ble_id: jk_bms1
total_voltage: total_voltage:
name: "JK1 Total Voltage" name: "JK1 Total Voltage"
current:
name: "JK1 Current"
state_of_charge: state_of_charge:
name: "JK1 SoC" name: "JK1 SoC"
power: power:
@@ -89,12 +84,8 @@ sensor:
name: "JK1 Temp 1" name: "JK1 Temp 1"
temperature_sensor_2: temperature_sensor_2:
name: "Jk1 Temp 2" name: "Jk1 Temp 2"
balancing:
name: "JK1 balancing"
charging_cycles: charging_cycles:
name: "JK1 charging cycles" name: "JK1 charging cycles"
total_runtime:
name: "JK1 total runtime"
balancing_current: balancing_current:
name: "JK1 balancing current" name: "JK1 balancing current"

View File

@@ -28,6 +28,7 @@
# games # games
dwarf-fortress dwarf-fortress
endless-sky endless-sky
osu-lazer
prismlauncher prismlauncher
tower-pixel-dungeon tower-pixel-dungeon
]; ];

View File

@@ -80,6 +80,7 @@
"nix.serverPath": "nil", "nix.serverPath": "nil",
// python tools // python tools
"python.defaultInterpreterPath": "/run/current-system/sw/bin/python",
"mypy.runUsingActiveInterpreter": true, "mypy.runUsingActiveInterpreter": true,
// force the use of rust-analyzer from dev shell // force the use of rust-analyzer from dev shell