Skip to content

Commit 3df38df

Browse files
committedNov 15, 2023
Merge branch 'Dev-2.2'
2 parents c12aace + b33d486 commit 3df38df

File tree

153 files changed

+64073
-71520
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

153 files changed

+64073
-71520
lines changed
 

‎.github/workflows/build-validate.yaml

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: build-debug
2+
3+
defaults:
4+
run:
5+
working-directory: WinNUT_V2
6+
7+
on:
8+
workflow_dispatch:
9+
pull_request:
10+
branches: [ main, Dev-2.2 ] # Build for dev primarily, probably don't need main...?
11+
paths:
12+
- '**.vb'
13+
- '**.vbproj'
14+
15+
env:
16+
DOTNET_VERSION: '4.8' # The .NET SDK version to use
17+
SLN_FILE: WinNUT_V2.sln
18+
DEBUG_OUTPUT: WinNUT_V2/WinNUT-Client/bin/Debug
19+
20+
jobs:
21+
build:
22+
23+
name: debug-build-${{ matrix.os }}
24+
runs-on: ${{ matrix.os }}
25+
strategy:
26+
matrix:
27+
os: [windows-2019] # Should have MSBuild.
28+
steps:
29+
# Make MSBuild available from $PATH.
30+
- name: setup-msbuild
31+
uses: microsoft/setup-msbuild@v1.1
32+
33+
- name: Checkout Code
34+
uses: actions/checkout@v3
35+
36+
- name: Restore Packages
37+
run: msbuild -t:restore
38+
39+
# msbuild cannot handle .vdproj Installer projects, so only build debug for now.
40+
- name: Build solution
41+
run: msbuild $env:SLN_FILE -p:Configuration=Debug
42+
43+
# For now, let msbuild continue autogenerating assembly versions and base everything off of that.
44+
- name: Get AssemblyVersion generated by msbuild
45+
id: getversion
46+
uses: berglie/assembly-version/get@v1
47+
with:
48+
directory: ${{ env.DEBUG_OUTPUT }}
49+
50+
- name: Upload Artifact
51+
uses: actions/upload-artifact@v3
52+
with:
53+
name: ${{ format('WinNUT-Client-debugbuild-v{0}', steps.getversion.outputs.version) }}
54+
if-no-files-found: error
55+
path: ${{ env.DEBUG_OUTPUT }}
56+

‎README.md

+35-60
Original file line numberDiff line numberDiff line change
@@ -1,90 +1,65 @@
1-
# WinNUT-Client
1+
WinNUT is a WinForms client for connecting to a Network UPS Tools monitoring server.
22

3-
[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/donate?hosted_button_id=FAFJ3ZKMENGCU)
3+
- 📈 Monitor important values of your UPS like voltage and power consumption
4+
- 🌩️ Receive notifications for abnormal power conditions (power outage)
5+
- ❤️ Keep your hardware and data safe with configurable suspend and shutdown triggers
46

5-
## Installation
6-
To use it, please follow the following steps:
7-
1. Get the [last available Releases](https://github.com/gawindx/WinNUT-Client/releases)
8-
2. Install WinNUT-Client using the "WinNUT-Setup.msi" file obtained previously
9-
3. If you were using an older version of WinNUT (v1.x), copy your "ups.ini" configuration file to the WinNUT-Client installation directory (by default "C:\Program Files(x86)\WinNUT-Client ") for an automatic import of your parameters during the first launch
10-
4. Start WinNUT V2 and modify the parameters according to your needs
11-
12-
## Specific Configuration
7+
<br />
8+
<br />
139

14-
### For Synology NAS
15-
If your NUT server is hosted on a Synology NAS, be sure to provide the following connection information (default):
16-
Login: upsmon
17-
Password: secret
10+
# Future development
11+
WinNUT has gone through a long evolution with several different programming languages and maintainers. The time has come to retire this iteration of WinNUT and begin planning for the next version. See [issue #40](https://github.com/nutdotnet/WinNUT-Client/issues/40) for more information. Join in the discussions at [Coco.Nut](https://github.com/nutdotnet/Coco.Nut), and shape the future of the next iteration of WinNUT.
1812

19-
It will probably be necessary to allow the WinNUT-Client IP to communicate with the NUT server.
20-
*See issue 47 for more information, specifically [this commentary](https://github.com/gawindx/WinNUT-Client/issues/47#issuecomment-759180793).*
21-
22-
###
23-
## Translation
24-
WinNUT-Client V2 is natively multilingual, so it is no longer necessary to select your language from the software interface.
25-
Currently, WinNUT-Client supports:
26-
- English
27-
- German
28-
- French
29-
- Simplified Chinese
30-
- Russian
13+
# Installation
14+
1. Get the [latest Release](https://github.com/nutdotnet/WinNUT-Client/releases)
15+
2. Install WinNUT using the downloaded executable
16+
3. If you were using an older version of WinNUT (v1.x), copy your "ups.ini" configuration file to the WinNUT-Client installation directory (by default "C:\Program Files(x86)\WinNUT-Client ") for an automatic import of your parameters during the first launch
17+
4. Start WinNUT and modify the settings according to your needs
3118

32-
#### To add / correct a language
19+
## Synology NAS
20+
If you are connecting to a Synology NAS with a UPS attached, there is some additional configuration that needs to be done.
3321

34-
##### Method 1 (preferred)
35-
1. Fork this repository
36-
2. In the translation directory:
22+
Referring to the [Synology documentation](https://kb.synology.com/en-us/DSM/help/DSM/AdminCenter/system_hardware_ups?version=7), note that you must add your client computer's IP address to the *Permitted DiskStation Devices* window. In addition, WinNUT requires the following settings:
3723

38-
For a new translation:
39-
1. Use the new_translation.csv file to translate the texts
40-
2. Save this file in xx-XX corresponding to the language code
24+
- **Login**: upsmon
25+
- **Password**: secret
26+
- **UPS Name**: ups
4127

42-
For a correction:
43-
1. Edit the wrong language file
44-
2. Make the necessary corrections
4528

46-
3. Save it instead
47-
4. Create a pull request on this repository to take into account the translation.
29+
*See [issue 47](https://github.com/gawindx/WinNUT-Client/issues/47#issuecomment-759180793) for more information.*
4830

49-
##### Method 2
50-
1. Get the file [new_translation.csv](./Translation/new_translation.csv)
51-
2. Perform the necessary translations
52-
3. Save this file in csv format (IMPORTANT)
53-
4. Create a gist via [gist github](https://gist.github.com) and paste the contents of the previously created csv file
54-
5. Open a new issue and tell me:
55-
- the link of the gist
56-
- the language to create / correct
31+
## QNAP NAS
32+
If your NUT server is hosted on a QNAP NAS, be sure to provide the following connection information (default):
5733

58-
Your translation / correction will be added on a new version and will thus be available to the entire community.
34+
- **UPS Name**: qnapups
35+
- (Login and Password can be empty)
5936

60-
## Update WinNUT-Client
37+
Also check the "Enable network UPS master" box on the Control Panel -> External device page on the QNAP webinterface and add the IP address of the WinNUT-Client to allow the client to connect to the QNAP for UPS information.
6138

62-
Since version 1.8.0.0, WinNUT-Client includes a process for checking for updates.
63-
This process can be started automatically on startup or manually on demand (and you can choose whether you want to update from the stable or development version)
39+
# Contributing
40+
- [Translations](https://github.com/nutdotnet/WinNUT-Client/wiki/Translations)
41+
- [Code/Bug fixes](https://github.com/nutdotnet/WinNUT-Client/wiki/Development)
6442

65-
During this update, the new installation file will be automatically downloaded and you can easily update your version of WinNUT-Client.
43+
# Updates
6644

67-
This process is fully integrated and no longer requires a second executable.
45+
WinNUT has built-in update functionality. This process can be started automatically on startup or manually on demand, and you can choose whether you want to update to the stable or development version. During this process, the new files will be automatically downloaded and installed.
6846

6947
## Third Party Components / Acknowledgments
7048

71-
WinNUT-Client uses:
49+
WinNUT uses:
7250
- a modified version of AGauge initially developed by [Code-Artist](https://github.com/Code-Artist/AGauge) and under [MIT license](https://opensource.org/licenses/MIT)
7351
- Class IniReader developed by [Ludvik Jerabek](https://www.codeproject.com/Articles/21896/INI-Reader-Writer-Class-for-C-VB-NET-and-VBScript) and under [The Code Project Open License](http://www.codeproject.com/info/cpol10.aspx)
7452
- Newtonsoft.Json Library is used in this Project [Newtonsoft.json Website](https://www.newtonsoft.com/json) and under [MIT license](https://opensource.org/licenses/MIT)
7553

7654
## License
7755

7856
WinNUT-Client is a NUT windows client for monitoring your ups hooked up to your favorite linux server.
79-
Copyright (C) 2019-2021 Gawindx (Decaux Nicolas)
57+
58+
- Copyright (C) 2019-2021 Gawindx (Decaux Nicolas)
59+
- Copyright (C) 2022+ NUT Dot Net project
8060

8161
This program is free software: you can redistribute it and/or modify it under the terms of the
8262
GNU General Public License as published by the Free Software Foundation, either version 3 of the
8363
License, or any later version.
8464

85-
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY
86-
87-
## Donation
88-
If you want to support this project or reward the work done, you can do so here:
89-
90-
[![paypal](https://www.paypalobjects.com/en_US/FR/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/donate?hosted_button_id=FAFJ3ZKMENGCU)
65+
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY.

0 commit comments

Comments
 (0)