boneIO 0.1.0.dev4__tar.gz → 0.1.0.dev6__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. boneio-0.1.0.dev6/MANIFEST.in +4 -0
  2. {boneio-0.1.0.dev4 → boneio-0.1.0.dev6}/PKG-INFO +11 -3
  3. boneio-0.1.0.dev6/boneio/config.example.yaml +38 -0
  4. boneio-0.1.0.dev6/boneio/config.yaml +20 -0
  5. boneio-0.1.0.dev6/boneio/schema.yaml +167 -0
  6. boneio-0.1.0.dev6/boneio/version.py +2 -0
  7. {boneio-0.1.0.dev4 → boneio-0.1.0.dev6}/boneio.egg-info/PKG-INFO +11 -3
  8. {boneio-0.1.0.dev4 → boneio-0.1.0.dev6}/boneio.egg-info/SOURCES.txt +5 -0
  9. boneio-0.1.0.dev6/requirements.txt +45 -0
  10. {boneio-0.1.0.dev4 → boneio-0.1.0.dev6}/setup.py +5 -1
  11. boneio-0.1.0.dev4/boneio/version.py +0 -2
  12. {boneio-0.1.0.dev4 → boneio-0.1.0.dev6}/README.md +0 -0
  13. {boneio-0.1.0.dev4 → boneio-0.1.0.dev6}/boneio/__init__.py +0 -0
  14. {boneio-0.1.0.dev4 → boneio-0.1.0.dev6}/boneio/bonecli.py +0 -0
  15. {boneio-0.1.0.dev4 → boneio-0.1.0.dev6}/boneio/const.py +0 -0
  16. {boneio-0.1.0.dev4 → boneio-0.1.0.dev6}/boneio/helper/__init__.py +0 -0
  17. {boneio-0.1.0.dev4 → boneio-0.1.0.dev6}/boneio/helper/gpio.py +0 -0
  18. {boneio-0.1.0.dev4 → boneio-0.1.0.dev6}/boneio/helper/stats.py +0 -0
  19. {boneio-0.1.0.dev4 → boneio-0.1.0.dev6}/boneio/helper/yaml.py +0 -0
  20. {boneio-0.1.0.dev4 → boneio-0.1.0.dev6}/boneio/input/__init__.py +0 -0
  21. {boneio-0.1.0.dev4 → boneio-0.1.0.dev6}/boneio/input/gpio.py +0 -0
  22. {boneio-0.1.0.dev4 → boneio-0.1.0.dev6}/boneio/manager.py +0 -0
  23. {boneio-0.1.0.dev4 → boneio-0.1.0.dev6}/boneio/mqtt_client.py +0 -0
  24. {boneio-0.1.0.dev4 → boneio-0.1.0.dev6}/boneio/oled.py +0 -0
  25. {boneio-0.1.0.dev4 → boneio-0.1.0.dev6}/boneio/relay/__init__.py +0 -0
  26. {boneio-0.1.0.dev4 → boneio-0.1.0.dev6}/boneio/relay/basic.py +0 -0
  27. {boneio-0.1.0.dev4 → boneio-0.1.0.dev6}/boneio/relay/gpio.py +0 -0
  28. {boneio-0.1.0.dev4 → boneio-0.1.0.dev6}/boneio/relay/mcp.py +0 -0
  29. {boneio-0.1.0.dev4 → boneio-0.1.0.dev6}/boneio.egg-info/dependency_links.txt +0 -0
  30. {boneio-0.1.0.dev4 → boneio-0.1.0.dev6}/boneio.egg-info/entry_points.txt +0 -0
  31. {boneio-0.1.0.dev4 → boneio-0.1.0.dev6}/boneio.egg-info/requires.txt +0 -0
  32. {boneio-0.1.0.dev4 → boneio-0.1.0.dev6}/boneio.egg-info/top_level.txt +0 -0
  33. {boneio-0.1.0.dev4 → boneio-0.1.0.dev6}/setup.cfg +0 -0
@@ -0,0 +1,4 @@
1
+ include README.md
2
+ include requirements.txt
3
+ include LICENSE
4
+ recursive-include boneio *.yaml
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: boneio
3
- Version: 0.1.0.dev4
3
+ Version: 0.1.0.dev6
4
4
  Summary: Python Helper for BoneIO
5
5
  Home-page: https://github.com/maciejk1984/boneIO
6
6
  License: GNU General Public License v3.0
7
- Download-URL: https://github.com/maciejk1984/boneIO/archive/0.1.0dev4.zip
7
+ Download-URL: https://github.com/maciejk1984/boneIO/archive/0.1.0.dev6.zip
8
8
  Platform: UNKNOWN
9
9
  Classifier: Programming Language :: Python
10
10
  Classifier: Programming Language :: Python :: 3.7
@@ -12,5 +12,13 @@ Classifier: Programming Language :: Python :: 3.8
12
12
  Classifier: Programming Language :: Python :: 3.9
13
13
  Description-Content-Type: text/markdown
14
14
 
15
- Python Helper for BoneIO
15
+ Example usage:
16
+ boneio run -dd -c config.yaml
17
+
18
+ Install needed:
19
+
20
+ ```
21
+ sudo apt-get install libopenjp2-7-dev libatlas-base-dev
22
+ ```
23
+
16
24
 
@@ -0,0 +1,38 @@
1
+ mqtt:
2
+ host: mqtt.hass
3
+ username: mqtt
4
+ password: pass
5
+ topic_prefix: boneiohome
6
+ ha_discovery:
7
+ enabled: yes
8
+
9
+ i2c:
10
+ id: myb
11
+ sda: P9_18
12
+ scl: P9_17
13
+
14
+ oled:
15
+
16
+ mcp23017:
17
+ - id: mcp1
18
+ address: 0x20
19
+
20
+ gpio_input:
21
+ - id: "one"
22
+ pin: P8_12
23
+ - id: "two"
24
+ pin: P8_7
25
+ actions:
26
+ single:
27
+ action: output
28
+ pin: myoutput
29
+
30
+ output: !include output.yaml
31
+
32
+
33
+ ##OUTPUT.YAML
34
+ - id: myoutput
35
+ kind: mcp
36
+ mcp_id: mcp1
37
+ pin: 0
38
+ ha_type: light
@@ -0,0 +1,20 @@
1
+ mqtt:
2
+ host: mqtt.hass
3
+ username: mqtt
4
+ password: pass
5
+ # ha_discovery:
6
+ # enabled: True
7
+
8
+ # i2c:
9
+ # - id: myb
10
+ # sda: "P9_18"
11
+ # scl: "P9_17"
12
+
13
+ gpio_input:
14
+ - id: "one"
15
+ pin: "P8_3"
16
+
17
+ output:
18
+ - id: myinput
19
+ kind: gpio
20
+ pin: P9_17
@@ -0,0 +1,167 @@
1
+ mqtt:
2
+ type: dict
3
+ required: True
4
+ meta:
5
+ label: Mqtt section
6
+ schema:
7
+ host:
8
+ required: True
9
+ type: string
10
+ meta:
11
+ label: Mqtt broker hostname or IP address
12
+ username:
13
+ required: True
14
+ type: string
15
+ meta:
16
+ label: Username to connect ot mqtt broker
17
+ password:
18
+ required: False
19
+ type: string
20
+ meta:
21
+ label: Password to mqtt
22
+ port:
23
+ required: True
24
+ type: integer
25
+ default: 1883
26
+ meta:
27
+ label: Port to connect to mqtt broker
28
+ topic_prefix:
29
+ type: string
30
+ default: boneIO
31
+ required: True
32
+ meta:
33
+ label: Prefix topic for boneIO to use
34
+ ha_discovery:
35
+ type: dict
36
+ meta:
37
+ label: Ha discovery sub section
38
+ default: {}
39
+ schema:
40
+ enabled:
41
+ type: boolean
42
+ default: True
43
+ meta:
44
+ label: Enable HA discovery.
45
+ topic_prefix:
46
+ type: string
47
+ default: homeassistant
48
+ meta:
49
+ label: Prefix topic of HA discovery.
50
+
51
+ oled:
52
+ type: boolean
53
+ coerce: to_bool
54
+
55
+ mcp23017:
56
+ type: list
57
+ required: False
58
+ meta:
59
+ label: mcp23017 Pin config
60
+ schema:
61
+ type: dict
62
+ schema:
63
+ id:
64
+ type: string
65
+ required: False
66
+ meta:
67
+ label: Id of I2C to use in pin config
68
+ address:
69
+ type: string
70
+ required: True
71
+ meta:
72
+ label: GPIO of I2C SDA
73
+
74
+ output:
75
+ type: list
76
+ meta:
77
+ label: List of output relays
78
+ check_with: output_id_uniqueness
79
+ schema:
80
+ type: dict
81
+ schema:
82
+ id:
83
+ type: string
84
+ required: False
85
+ meta:
86
+ label: Id to send to use in HA and in GPIO Input. Default to `kind_pin`
87
+ kind:
88
+ type: string
89
+ allowed: ['gpio', 'mcp']
90
+ meta:
91
+ label: Either GPIO or i2c.
92
+ mcp_id:
93
+ type: string
94
+ required: False
95
+ meta:
96
+ label: MCP ID to connect
97
+ pin:
98
+ type: string
99
+ required: True
100
+ meta:
101
+ label: PIN to use.
102
+ ha_type:
103
+ type: string
104
+ required: True
105
+ allowed: ['switch', 'light']
106
+ default: 'switch'
107
+ meta:
108
+ label: If HA discovery is used device if relay is light or switch.
109
+
110
+
111
+ gpio_input:
112
+ type: list
113
+ meta:
114
+ label: GPIO inputs section
115
+ schema:
116
+ type: dict
117
+ schema:
118
+ id:
119
+ type: string
120
+ required: False
121
+ meta:
122
+ label: Id to use in HA if needed. Default to pin number.
123
+ pin:
124
+ type: string
125
+ required: True
126
+ meta:
127
+ label: PIN to use.
128
+ actions:
129
+ required: False
130
+ type: dict
131
+ schema:
132
+ single:
133
+ required: False
134
+ type: dict
135
+ schema:
136
+ action:
137
+ type: string
138
+ allowed: ['mqtt', 'output']
139
+ default: output
140
+ pin:
141
+ type: string
142
+ message:
143
+ type: string
144
+ double:
145
+ required: False
146
+ type: dict
147
+ schema:
148
+ action:
149
+ type: string
150
+ allowed: ['mqtt', 'output']
151
+ default: output
152
+ pin:
153
+ type: string
154
+ message:
155
+ type: string
156
+ long:
157
+ required: False
158
+ type: dict
159
+ schema:
160
+ action:
161
+ type: string
162
+ allowed: ['mqtt', 'output']
163
+ default: output
164
+ pin:
165
+ type: string
166
+ message:
167
+ type: string
@@ -0,0 +1,2 @@
1
+ # flake8: noqa
2
+ __version__ = "0.1.0.dev6"
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: boneio
3
- Version: 0.1.0.dev4
3
+ Version: 0.1.0.dev6
4
4
  Summary: Python Helper for BoneIO
5
5
  Home-page: https://github.com/maciejk1984/boneIO
6
6
  License: GNU General Public License v3.0
7
- Download-URL: https://github.com/maciejk1984/boneIO/archive/0.1.0dev4.zip
7
+ Download-URL: https://github.com/maciejk1984/boneIO/archive/0.1.0.dev6.zip
8
8
  Platform: UNKNOWN
9
9
  Classifier: Programming Language :: Python
10
10
  Classifier: Programming Language :: Python :: 3.7
@@ -12,5 +12,13 @@ Classifier: Programming Language :: Python :: 3.8
12
12
  Classifier: Programming Language :: Python :: 3.9
13
13
  Description-Content-Type: text/markdown
14
14
 
15
- Python Helper for BoneIO
15
+ Example usage:
16
+ boneio run -dd -c config.yaml
17
+
18
+ Install needed:
19
+
20
+ ```
21
+ sudo apt-get install libopenjp2-7-dev libatlas-base-dev
22
+ ```
23
+
16
24
 
@@ -1,11 +1,16 @@
1
+ MANIFEST.in
1
2
  README.md
3
+ requirements.txt
2
4
  setup.py
3
5
  boneio/__init__.py
4
6
  boneio/bonecli.py
7
+ boneio/config.example.yaml
8
+ boneio/config.yaml
5
9
  boneio/const.py
6
10
  boneio/manager.py
7
11
  boneio/mqtt_client.py
8
12
  boneio/oled.py
13
+ boneio/schema.yaml
9
14
  boneio/version.py
10
15
  boneio.egg-info/PKG-INFO
11
16
  boneio.egg-info/SOURCES.txt
@@ -0,0 +1,45 @@
1
+ Adafruit-BBIO==1.2.0
2
+ Adafruit-Blinka==6.15.0
3
+ adafruit-circuitpython-busdevice==5.1.1
4
+ adafruit-circuitpython-framebuf==1.4.8
5
+ adafruit-circuitpython-mcp230xx==2.5.1
6
+ Adafruit-PlatformDetect==3.17.2
7
+ Adafruit-PureIO==1.1.9
8
+ asyncio-mqtt==0.10.0
9
+ cbor2==5.4.2
10
+ Cerberus==1.3.4
11
+ certifi==2021.10.8
12
+ charset-normalizer==2.0.9
13
+ click==8.0.3
14
+ colorlog==6.5.0
15
+ colorzero==2.0
16
+ gpio==0.3.0
17
+ idna==3.3
18
+ importlib-metadata==4.8.1
19
+ luma==2.1.3
20
+ luma.core==2.3.1
21
+ luma.oled==3.8.1
22
+ numpy==1.21.4
23
+ paho-mqtt==1.6.1
24
+ Pillow==8.4.0
25
+ pkg-resources==0.0.0
26
+ psutil==5.8.0
27
+ pyaml==21.10.1
28
+ pycparser==2.18
29
+ pyftdi==0.53.3
30
+ pyparsing==2.2.0
31
+ PyQRCode==1.2.1
32
+ pyserial==3.5
33
+ pyusb==1.2.1
34
+ PyYAML==6.0
35
+ recordclass==0.16.3
36
+ requests==2.26.0
37
+ six==1.16.0
38
+ smbus2==0.4.1
39
+ spidev==3.5
40
+ sysv-ipc==1.1.0
41
+ typing-extensions==3.10.0.2
42
+ urllib3==1.26.7
43
+ websocket-client==1.2.1
44
+ wrapt==1.13.3
45
+ zipp==3.6.0
@@ -2,6 +2,10 @@
2
2
  # -*- coding:utf-8 -*-
3
3
  from setuptools import setup, find_packages
4
4
 
5
+ with open("README.md", "r") as fh:
6
+ long_description = fh.read()
7
+
8
+
5
9
  with open("boneio/version.py") as f:
6
10
  exec(f.read())
7
11
 
@@ -9,7 +13,7 @@ setup(
9
13
  name="boneio",
10
14
  version=__version__, # type: ignore # noqa: F821,
11
15
  description="Python Helper for BoneIO",
12
- long_description="Python Helper for BoneIO",
16
+ long_description=long_description,
13
17
  long_description_content_type="text/markdown",
14
18
  url="https://github.com/maciejk1984/boneIO",
15
19
  download_url="https://github.com/maciejk1984/boneIO/archive/{}.zip".format(
@@ -1,2 +0,0 @@
1
- # flake8: noqa
2
- __version__ = "0.1.0dev4"
File without changes
File without changes
File without changes
File without changes