You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can also specify a different IP address for pinging:
44
+
45
+
```bash
46
+
curl -X POST "http://wol-client:5555/start" \
47
+
-H "Content-Type: application/json" \
48
+
-d '{
49
+
"ip": "192.168.1.100",
50
+
"addr": "192.168.1.1",
51
+
"mac": "00:00:00:00:00:00",
52
+
"startupTime": 5
53
+
}'
54
+
```
55
+
56
+
> [!NOTE]
57
+
> The `startupTime` field may be omitted. In that case, the [`PING_INTERVAL`](#ping_interval) and [`PING_RETRIES`](#ping_retries) settings will be used to periodically ping the host.
58
+
59
+
**WoL Client** will respond with a `client_id`, which can be used to establish a **WebSocket connection** at `ws://wol-client/ws`.
60
+
This WebSocket will send updates for each step of the process. The response contains:
36
61
37
-
Want to change something, have suggestions?
38
-
Fell free to open up an issue or to create a Pull Request.
62
+
- `success`: `true`if the process finished successfully.
63
+
- `error`: `true`if the process failed.
64
+
- `message`: descriptive information about what happened.
65
+
66
+
## Configuration
67
+
68
+
### `PING_INTERVAL`
69
+
70
+
Interval in seconds for pinging when `startupTime` is not provided.
71
+
72
+
### `PING_RETRIES`
73
+
74
+
Number of retries for pinging when `startupTime` is not provided before timing out.
75
+
76
+
## Contributing
39
77
40
-
This project is rather small so there might not be many additions anytime soon.
78
+
Have suggestions or improvements? Feel free to open an issue or submit a Pull Request.
41
79
42
80
## License
43
81
44
-
[MIT](https://choosealicense.com/licenses/mit/)
82
+
This project is licensed under the [MIT License](./LICENSE).
0 commit comments