rpc_shutdown: Collection of small improvements (#912)

* rpc_shutdown: Prettier YAML files

* rpc_shutdown: Move run.sh to data folder

* rpc_shutdown: Documentation tweaks

* rpc_shutdown: Update add-on URL & Description
This commit is contained in:
Franck Nijhof
2019-12-19 13:18:27 +01:00
committed by Pascal Vizeli
parent 6ce3006a72
commit 3d5ed25a2d
6 changed files with 21 additions and 22 deletions

View File

@@ -15,4 +15,5 @@
- New option to send a message to the PC that is about to be shut down. If somebody is using the PC, you can warn them to save their work.
## 1.0
- Update samba 4.8.8

View File

@@ -8,6 +8,6 @@ ENV LANG C.UTF-8
RUN apk add --no-cache samba-common-tools samba-common
# Copy data
COPY run.sh /
COPY data/run.sh /
CMD [ "/run.sh" ]

View File

@@ -1,6 +1,6 @@
# Hass.io Core Add-on: RPC Shutdown
Simple way for remote windows shutdown.
Shutdown Windows machines remotely.
![Supports aarch64 Architecture][aarch64-shield] ![Supports amd64 Architecture][amd64-shield] ![Supports armhf Architecture][armhf-shield] ![Supports armv7 Architecture][armv7-shield] ![Supports i386 Architecture][i386-shield]
@@ -10,7 +10,7 @@ Allows you to shut down and Windows Computer with a service call from Home Assis
## Installation
The installation of this add-on is straightforward and easy to do.
Follow these steps to get the add-on installed on your system:
1. Navigate in your Home Assistant frontend to **Hass.io** -> **Add-on Store**.
2. Find the "RPC Shutdown" add-on and click it.
@@ -78,19 +78,18 @@ Show a custom message on the screen of the computer that will be shutdown.
Use the following inside Home Assistant service call to use it:
```yaml
service: hassio.addon_stdin
service: hassio.addon_stdin
data:
addon: core_rpc_shutdown
addon: core_rpc_shutdown
input: test-pc
```
- `service: hassio.addon_stdin`:
Use hassio.addon_stdin service to send data over STDIN to an add-on.
- `data.addon: core_rpc_shutdown`:
Tells the service to send the command to this add-on.
- `data.input: test-pc`:
Alias name created for the computer in the add-on configuration, and shuts that one down.
Each line explained:
`service: hassio.addon_stdin`: Use hassio.addon_stdin service to send data over STDIN to an add-on.
`data.addon: core_rpc_shutdown`: Tells the service to send the command to this add-on.
`data.input: test-pc`: Alias name created for the computer in the add-on configuration, and shuts that one down.
## Support
Got questions?

View File

@@ -3,20 +3,19 @@
trigger:
branches:
include:
- master
- master
paths:
include:
- rpc_shutdown/*
- rpc_shutdown/*
pr: none
variables:
- name: versionBuilder
value: '2.0'
value: "2.0"
- group: docker
jobs:
- template: /.azure/azp-template-addon.yml
parameters:
addon: 'rpc_shutdown'
arch: '--all'
- template: /.azure/azp-template-addon.yml
parameters:
addon: "rpc_shutdown"
arch: "--all"

View File

@@ -2,8 +2,8 @@
"name": "RPC Shutdown",
"version": "2.2",
"slug": "rpc_shutdown",
"description": "Simple way for remote windows shutdowns",
"url": "https://home-assistant.io/addons/rpc_shutdown/",
"description": "Shutdown Windows machines remotely",
"url": "https://github.com/home-assistant/hassio-addons/tree/master/rpc_shutdown",
"arch": ["armhf", "armv7", "aarch64", "amd64", "i386"],
"startup": "services",
"boot": "auto",