opened 06:32PM - 24 Jul 24 UTC
enhancement
question
i run install bat on windows 11 and did installation successfully
however wh…en i run `fw-fanctrl --reload` command in cmd
i get error
```
File "C:\Windows\System32\fanctrl.py", line 329, in <module>
main()
File "C:\Windows\System32\fanctrl.py", line 308, in main
client_socket = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
^^^^^^^^^^^^^^
AttributeError: module 'socket' has no attribute 'AF_UNIX'
```
i updated fanctrl.py end to something like this
```py
SOCKETS_FOLDER_PATH = "/run/fw-fanctrl"
COMMANDS_SOCKET_FILE_PATH = ( '127.0.0.1', 12345) # Example IP address and port number
client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
try:
client_socket.connect(COMMANDS_SOCKET_FILE_PATH)
client_socket.sendall(' '.join(sys.argv[1:]).encode())
received_data = b""
while True:
data_chunk = client_socket.recv(1024)
if not data_chunk:
break
received_data += data_chunk
# Receive data from the server
data = received_data.decode()
print(data)
if data.startswith("Error:"):
exit(1)
finally:
if client_socket:
client_socket.close()
```
so what should be `COMMANDS_SOCKET_FILE_PATH ` for windows ??