From 5f4c5368b7eb60fe39c43e2632ba8d84b9146aef Mon Sep 17 00:00:00 2001 From: Emma Lysne Date: Sat, 8 Feb 2025 02:45:59 -0800 Subject: [PATCH 1/3] Change kW -> mW conversion threshold from 1000 to 10000 --- nuclearesrpc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nuclearesrpc.py b/nuclearesrpc.py index 83e0da4..0ba1912 100644 --- a/nuclearesrpc.py +++ b/nuclearesrpc.py @@ -123,9 +123,9 @@ def find_nucleares() -> psutil.Process | None: else: details = f"Reactor Online: {round(dvars['CORE_TEMP'])}\u00B0C" pwr = round(dvars["GENERATOR_0_KW"] + dvars["GENERATOR_1_KW"] + dvars["GENERATOR_2_KW"]) - if 0 < pwr < 1000: + if 0 < pwr < 10000: status = f"Producing {pwr} kW" - elif pwr > 1000: + elif pwr > 10000: status = f"Producing {round(pwr/1000)} mW" else: status = "Generator Offline" From adea3f5e3634180ce0f227c95332482918914baf Mon Sep 17 00:00:00 2001 From: Emma Lysne Date: Sat, 8 Feb 2025 03:16:51 -0800 Subject: [PATCH 2/3] Change conversion thresholds and add release builder --- .github/workflows/release.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..e69de29 From 918dd1da273dce1a8a07f19308223b56d4179513 Mon Sep 17 00:00:00 2001 From: Emma Lysne Date: Sat, 8 Feb 2025 03:18:41 -0800 Subject: [PATCH 3/3] Fix push of release.yml --- .github/workflows/release.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e69de29..242a3b2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -0,0 +1,15 @@ +on: + push: + branches: [ $default-branch ] +jobs: + make-release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: PyInstaller Action + uses: Martin005/pyinstaller-action@v1.2.0 + with: + spec: nuclearesrpc.py + requirements: requirements.txt + python_ver: 3.13 + upload_exe_with_name: nuclearesrpc.exe