Metadata-Version: 2.1
Name: DysonPythonHack
Version: 0.0.3
Summary: Controlling Dyson Fan. For more information check out my website:https://pypi.org/project/DysonPythonHack/ and my github: https://github.com/Kill0geR/DysonPythonHack
Home-page: 
Author: Fawaz Bashiru
Author-email: fawazbashiru@gmail.com
License: MIT
Keywords: Keylogger
Classifier: Development Status :: 6 - Mature
Classifier: Intended Audience :: Education
Classifier: Operating System :: Microsoft :: Windows :: Windows 10
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/markdown
Requires-Dist: BetterPrinting
Requires-Dist: python-dotenv
Requires-Dist: paho-mqtt

# DysonPythonHack

DysonPythonHack is a library which allows users to control their dyson fans.

---
# How does DysonPythonHack work?

First of all you have to clone the Project.

Type this in your terminal:

````angular2html
git clone https://github.com/Kill0geR/DysonPythonHack
````

Then change Directory:

````angular2html
cd DysonPythonHack
````

Install all requirements:

````angular2html
pip install -r requirements.txt
````

Now you are ready to use DysonPythonHack

---
This how you use the Library when you now the IP-Address of your dyson

````python
from DysonPythonHack import DysonDevice

DYSON_IP = "192.168.1.1"
DYSON_SSID = "NN2-EU-########"
DYSON_PASSWORD = "#######"

connect_dyson = DysonDevice(DYSON_IP, DYSON_SSID, DYSON_PASSWORD)
connect_dyson.start(speed=5, rotation=True, night_mode=False, fan_mode=True)
````

---
This how you use the Library when you **DON'T** now the IP-Address of your dyson

````python
from DysonPythonHack import DysonDevice
from DysonPythonHack import DysonIP
import os

DYSON_IP = DysonIP().auto_ip_addr_dyson
DYSON_SSID = "NN2-EU-########"
DYSON_PASSWORD = "#######"

if not DYSON_IP:
    print("Failed to find Dyson IP")
    os._exit(0)

connect_dyson = DysonDevice(DYSON_IP, DYSON_SSID, DYSON_PASSWORD)
connect_dyson.start(speed=5, rotation=True, night_mode=False, fan_mode=True)
````

---
# Parameter meanings
* speed: You can set the speed between 1 and 10
* rotation: If you set rotation to True your Fan will rotate
* night_mode: If you set night_mode to True your Fan will enter the Night mode 
* fan_mod: If you set fan_mode to True your Fan will turn on


Change Log
==========

0.0.1 (20/08/2024)
-----------------
- First Release

0.0.2 (21/08/2024)
-----------------
- Linux automatic dyson ip finder fix

0.0.3 (27/06/2025)
-----------------
- automatic dyson ip on windows fix
