-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
106 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2024 Jonas Kamsker | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
<!-- Enhance readme: | ||
For github. | ||
Tool is for extracting data from XSense sensors (currently only for Temperature and Humidity sensors). --> | ||
|
||
# XSenseExtractor | ||
|
||
`XSenseExtractor` is a .NET Tool to extract data from XSense sensors. It provides a command-line interface to interact with the XSense system, allowing you to retrieve data from the sensors and display it in human and machine-readable formats. | ||
|
||
|
||
## Installation and Usage | ||
|
||
`XSenseExtractor` can be easily installed and updated as a .NET Global Tool, allowing you to run it from anywhere on your system. Below are the instructions for installation, updating, and basic usage. | ||
|
||
### Prerequisites | ||
|
||
- .NET 8: Make sure you have the .NET 8 installed on your machine. You can download it from [the official .NET website](https://dot.net/download). | ||
|
||
### Installing XSenseExtractor | ||
|
||
To install `XSenseExtractor` as a global tool, open your terminal and run the following command: | ||
|
||
```shell | ||
dotnet tool install --global XSense-Extractor | ||
``` | ||
|
||
This command will download and install the latest version of `XSenseExtractor`, making it globally available from the command line. | ||
|
||
### Updating XSenseExtractor | ||
|
||
If you already have `XSenseExtractor` installed and want to update it to the latest version, use the following command: | ||
|
||
```shell | ||
dotnet tool update XSense-Extractor -g | ||
``` | ||
|
||
This will check for the latest version of the tool and update it accordingly. | ||
|
||
## Usage | ||
|
||
### Login | ||
|
||
Authenticate a user with a username and password. | ||
|
||
```shell | ||
xsense login --username <USERNAME> --password <PASSWORD> | ||
``` | ||
### List Stations | ||
|
||
Display all stations and their devices. | ||
|
||
```shell | ||
xsense stations | ||
``` | ||
|
||
### Monitor Live Data | ||
|
||
Monitor real-time data from a specific station. | ||
|
||
```shell | ||
xsense monitor --stationId <STATION_ID> [--houseId <HOUSE_ID>] | ||
``` | ||
|
||
### Retrieve Historical Data | ||
|
||
Get historical data for a station or device within a date range. | ||
|
||
```shell | ||
xsense history --stationId <STATION_ID> [--houseId <HOUSE_ID>] [--deviceId <DEVICE_ID>] --from <START_DATE> --to <END_DATE> | ||
``` | ||
|
||
## | ||
|
||
</br> | ||
<p align="center"> | ||
Made with <span style="color: #e25555;">♥</span> in Austria <img src="https://images.emojiterra.com/google/noto-emoji/v2.034/128px/1f1e6-1f1f9.png" width="20" height="20"/> | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
XSense-Extractor.Cli/GetStationsCommand.cs → ...ractor.Cli/Commands/GetStationsCommand.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...e-Extractor.Cli/MonitorLiveDataCommand.cs → ...or.Cli/Commands/MonitorLiveDataCommand.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters