juham-automation 0.0.13__tar.gz → 0.0.15__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 (63) hide show
  1. {juham_automation-0.0.13 → juham_automation-0.0.15}/LICENSE.rst +25 -25
  2. {juham_automation-0.0.13 → juham_automation-0.0.15}/MANIFEST.in +12 -12
  3. {juham_automation-0.0.13/juham_automation.egg-info → juham_automation-0.0.15}/PKG-INFO +106 -105
  4. {juham_automation-0.0.13 → juham_automation-0.0.15}/README.rst +54 -54
  5. juham_automation-0.0.15/docs/source/CHANGELOG.rst +27 -0
  6. juham_automation-0.0.15/docs/source/CONTRIBUTING.rst +44 -0
  7. juham_automation-0.0.15/docs/source/LICENSE.rst +25 -0
  8. juham_automation-0.0.15/docs/source/README.rst +54 -0
  9. juham_automation-0.0.15/examples/myapp.log +252 -0
  10. {juham_automation-0.0.13 → juham_automation-0.0.15}/examples/myapp.py +37 -37
  11. {juham_automation-0.0.13 → juham_automation-0.0.15}/juham_automation/__init__.py +38 -38
  12. {juham_automation-0.0.13 → juham_automation-0.0.15}/juham_automation/automation/__init__.py +21 -21
  13. {juham_automation-0.0.13 → juham_automation-0.0.15}/juham_automation/automation/energycostcalculator.py +266 -266
  14. {juham_automation-0.0.13 → juham_automation-0.0.15}/juham_automation/automation/hotwateroptimizer.py +568 -567
  15. {juham_automation-0.0.13 → juham_automation-0.0.15}/juham_automation/automation/powermeter_simulator.py +139 -139
  16. {juham_automation-0.0.13 → juham_automation-0.0.15}/juham_automation/automation/spothintafi.py +140 -140
  17. {juham_automation-0.0.13 → juham_automation-0.0.15}/juham_automation/automation/watercirculator.py +159 -159
  18. {juham_automation-0.0.13 → juham_automation-0.0.15}/juham_automation/japp.py +49 -49
  19. {juham_automation-0.0.13 → juham_automation-0.0.15}/juham_automation/ts/__init__.py +25 -25
  20. {juham_automation-0.0.13 → juham_automation-0.0.15}/juham_automation/ts/electricityprice_ts.py +51 -51
  21. {juham_automation-0.0.13 → juham_automation-0.0.15}/juham_automation/ts/energycostcalculator_ts.py +43 -43
  22. {juham_automation-0.0.13 → juham_automation-0.0.15}/juham_automation/ts/forecast_ts.py +97 -97
  23. {juham_automation-0.0.13 → juham_automation-0.0.15}/juham_automation/ts/log_ts.py +57 -57
  24. {juham_automation-0.0.13 → juham_automation-0.0.15}/juham_automation/ts/power_ts.py +49 -49
  25. {juham_automation-0.0.13 → juham_automation-0.0.15}/juham_automation/ts/powermeter_ts.py +70 -70
  26. {juham_automation-0.0.13 → juham_automation-0.0.15}/juham_automation/ts/powerplan_ts.py +45 -45
  27. {juham_automation-0.0.13 → juham_automation-0.0.15/juham_automation.egg-info}/PKG-INFO +106 -105
  28. {juham_automation-0.0.13 → juham_automation-0.0.15}/juham_automation.egg-info/SOURCES.txt +20 -1
  29. {juham_automation-0.0.13 → juham_automation-0.0.15}/juham_automation.egg-info/requires.txt +1 -1
  30. {juham_automation-0.0.13 → juham_automation-0.0.15}/pyproject.toml +71 -71
  31. {juham_automation-0.0.13 → juham_automation-0.0.15}/setup.cfg +4 -4
  32. {juham_automation-0.0.13/tests/ts → juham_automation-0.0.15/tests}/__init__.py +1 -1
  33. juham_automation-0.0.15/tests/__pycache__/test_japp.cpython-312.pyc +0 -0
  34. {juham_automation-0.0.13/tests → juham_automation-0.0.15/tests/automation}/__init__.py +1 -1
  35. juham_automation-0.0.15/tests/automation/__pycache__/__init__.cpython-312.pyc +0 -0
  36. juham_automation-0.0.15/tests/automation/__pycache__/test_energycostcalculator.cpython-312.pyc +0 -0
  37. juham_automation-0.0.15/tests/automation/__pycache__/test_hotwateroptimizer.cpython-312.pyc +0 -0
  38. juham_automation-0.0.15/tests/automation/__pycache__/test_juham.cpython-312.pyc +0 -0
  39. juham_automation-0.0.15/tests/automation/__pycache__/test_powermeter_simulator.cpython-312.pyc +0 -0
  40. juham_automation-0.0.15/tests/automation/__pycache__/test_spothintafi.cpython-312.pyc +0 -0
  41. {juham_automation-0.0.13 → juham_automation-0.0.15}/tests/automation/test_energycostcalculator.py +118 -118
  42. {juham_automation-0.0.13 → juham_automation-0.0.15}/tests/automation/test_hotwateroptimizer.py +109 -109
  43. {juham_automation-0.0.13 → juham_automation-0.0.15}/tests/automation/test_juham.py +65 -65
  44. {juham_automation-0.0.13 → juham_automation-0.0.15}/tests/automation/test_spothintafi.py +67 -67
  45. {juham_automation-0.0.13 → juham_automation-0.0.15}/tests/test_japp.py +18 -18
  46. {juham_automation-0.0.13/tests/automation → juham_automation-0.0.15/tests/ts}/__init__.py +1 -1
  47. juham_automation-0.0.15/tests/ts/__pycache__/__init__.cpython-312.pyc +0 -0
  48. juham_automation-0.0.15/tests/ts/__pycache__/test_energycostcalculator_ts.cpython-312.pyc +0 -0
  49. juham_automation-0.0.15/tests/ts/__pycache__/test_forecast_ts.cpython-312.pyc +0 -0
  50. juham_automation-0.0.15/tests/ts/__pycache__/test_log_ts.cpython-312.pyc +0 -0
  51. juham_automation-0.0.15/tests/ts/__pycache__/test_power_ts.cpython-312.pyc +0 -0
  52. juham_automation-0.0.15/tests/ts/__pycache__/test_powermeter_ts.cpython-312.pyc +0 -0
  53. juham_automation-0.0.15/tests/ts/__pycache__/test_powerplan_ts.cpython-312.pyc +0 -0
  54. {juham_automation-0.0.13 → juham_automation-0.0.15}/tests/ts/test_energycostcalculator_ts.py +14 -14
  55. {juham_automation-0.0.13 → juham_automation-0.0.15}/tests/ts/test_forecast_ts.py +14 -14
  56. {juham_automation-0.0.13 → juham_automation-0.0.15}/tests/ts/test_log_ts.py +14 -14
  57. {juham_automation-0.0.13 → juham_automation-0.0.15}/tests/ts/test_power_ts.py +14 -14
  58. {juham_automation-0.0.13 → juham_automation-0.0.15}/tests/ts/test_powermeter_ts.py +14 -14
  59. {juham_automation-0.0.13 → juham_automation-0.0.15}/tests/ts/test_powerplan_ts.py +14 -14
  60. {juham_automation-0.0.13 → juham_automation-0.0.15}/juham_automation/py.typed +0 -0
  61. {juham_automation-0.0.13 → juham_automation-0.0.15}/juham_automation.egg-info/dependency_links.txt +0 -0
  62. {juham_automation-0.0.13 → juham_automation-0.0.15}/juham_automation.egg-info/entry_points.txt +0 -0
  63. {juham_automation-0.0.13 → juham_automation-0.0.15}/juham_automation.egg-info/top_level.txt +0 -0
@@ -1,25 +1,25 @@
1
- LICENSE
2
- =======
3
-
4
- Copyright (c) 2024, Juha Meskanen
5
-
6
- Permission is hereby granted, free of charge, to any person obtaining
7
- a copy of this software and associated documentation files (the
8
- "Software"), to deal in the Software without restriction, including
9
- without limitation the rights to use, copy, modify, merge, publish,
10
- distribute, sublicense, and/or sell copies of the Software, and to
11
- permit persons to whom the Software is furnished to do so, subject to
12
- the following conditions:
13
-
14
- **The above copyright notice and this permission notice shall be included in all
15
- copies or substantial portions of the Software.**
16
-
17
-
18
- ** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
21
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
22
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
23
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
24
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **
25
-
1
+ LICENSE
2
+ =======
3
+
4
+ Copyright (c) 2024, Juha Meskanen
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining
7
+ a copy of this software and associated documentation files (the
8
+ "Software"), to deal in the Software without restriction, including
9
+ without limitation the rights to use, copy, modify, merge, publish,
10
+ distribute, sublicense, and/or sell copies of the Software, and to
11
+ permit persons to whom the Software is furnished to do so, subject to
12
+ the following conditions:
13
+
14
+ **The above copyright notice and this permission notice shall be included in all
15
+ copies or substantial portions of the Software.**
16
+
17
+
18
+ ** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
21
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
22
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
23
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
24
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **
25
+
@@ -1,12 +1,12 @@
1
- include docs/source/README.rst
2
- include docs/source/CHANGELOG.rst
3
- include docs/source/LICENSE.rst
4
- include docs/source/CONTRIBUTING.rst
5
-
6
- recursive-include examples *
7
- recursive-include tests *
8
- recursive-include docs/build/html *
9
-
10
- # files to be excluded
11
- global-exclude *~ \#*
12
- config/*
1
+ include docs/source/README.rst
2
+ include docs/source/CHANGELOG.rst
3
+ include docs/source/LICENSE.rst
4
+ include docs/source/CONTRIBUTING.rst
5
+
6
+ recursive-include examples *
7
+ recursive-include tests *
8
+ recursive-include docs/build/html *
9
+
10
+ # files to be excluded
11
+ global-exclude *~ \#*
12
+ config/*
@@ -1,105 +1,106 @@
1
- Metadata-Version: 2.2
2
- Name: juham-automation
3
- Version: 0.0.13
4
- Summary: Juha's Ultimate Home Automation Masterpiece
5
- Author-email: J Meskanen <juham.api@gmail.com>
6
- Maintainer-email: "J. Meskanen" <juham.api@gmail.com>
7
- License: LICENSE
8
- =======
9
-
10
- Copyright (c) 2024, Juha Meskanen
11
-
12
- Permission is hereby granted, free of charge, to any person obtaining
13
- a copy of this software and associated documentation files (the
14
- "Software"), to deal in the Software without restriction, including
15
- without limitation the rights to use, copy, modify, merge, publish,
16
- distribute, sublicense, and/or sell copies of the Software, and to
17
- permit persons to whom the Software is furnished to do so, subject to
18
- the following conditions:
19
-
20
- **The above copyright notice and this permission notice shall be included in all
21
- copies or substantial portions of the Software.**
22
-
23
-
24
- ** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
25
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
27
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
28
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
29
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
30
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **
31
-
32
-
33
- Project-URL: Homepage, https://gitlab.com/juham/juham/juham-automation.git
34
- Project-URL: Bug Reports, https://gitlab.com/juham/juham/juham-automation.git
35
- Project-URL: Funding, https://meskanen.com
36
- Project-URL: Say Thanks!, http://meskanen.com
37
- Project-URL: Source, https://gitlab.com/juham/juham/juham-automation.git
38
- Keywords: home,automation,juham
39
- Classifier: Development Status :: 2 - Pre-Alpha
40
- Classifier: Intended Audience :: Developers
41
- Classifier: Topic :: Software Development
42
- Classifier: License :: Public Domain
43
- Classifier: Programming Language :: Python :: 3.8
44
- Requires-Python: >=3.8
45
- Description-Content-Type: text/markdown
46
- License-File: LICENSE.rst
47
- Requires-Dist: juham_core>=0.1.2
48
- Provides-Extra: dev
49
- Requires-Dist: check-manifest; extra == "dev"
50
- Requires-Dist: types-pyz; extra == "dev"
51
-
52
- Welcome to Juham™ - Juha's Ultimate Home Automation Masterpiece
53
- ================================================================
54
-
55
- Project Description
56
- -------------------
57
-
58
- This package extends the ``juham_core`` package, providing home automation building blocks that cover most common needs.
59
- It consists of two main sub-modules:
60
-
61
- .. image:: _static/images/juham_automation.png
62
- :alt: Basic automation classes for optimizing energy consumption and minimizing electricity costs.
63
- :width: 640px
64
- :align: center
65
-
66
-
67
- - ``automation``
68
-
69
- * **spothintafi**: Acquires electricity prices in Finland.
70
- * **watercirculator**: Automates a water circulator pump based on hot water temperature and motion detection.
71
- * **hotwateroptimizer**: Controls hot water radiators based on temperature sensors and electricity price data.
72
- * **energycostcalculator**: Monitors power consumption and electricity prices, and computes the energy balance in euros.
73
-
74
-
75
- - ``ts``
76
-
77
- * This folder contains time series recorders that listen for Juham™ topics and store the data in a time series database
78
- for later inspection.
79
-
80
-
81
- Project Status
82
- --------------
83
-
84
- **Current State**: **Pre-Alpha (Status 2)**
85
-
86
- All classes have been tested to some extent, and no known bugs have been reported. However, the code still requires work in
87
- terms of design and robustness. For instance, electricity prices are currently hard-coded to use euros, but this should be
88
- configurable to support multiple currencies.
89
-
90
-
91
- Special Thanks
92
- --------------
93
-
94
- This project would not have been possible without the generous support of two exceptional individuals: Teppo K. and Mahi.
95
-
96
- Teppo K. provided the initial spark for this project by donating a Raspberry Pi, a temperature sensor, and giving an inspiring
97
- demonstration of his own home automation system—effectively dragging me down the rabbit hole of endless tinkering.
98
-
99
- Mahi has been instrumental in translating my half-baked ideas into Python code, offering invaluable support and
100
- encouragement—while also ensuring that every time I thought I was done, I wasn’t.
101
-
102
- Because of these two gentlemen, my already minimal spare time dropped into the negatives as I desperately tried to push the
103
- system to some semblance of professionalism.
104
-
105
- I’m truly grateful to both—really. 😅
1
+ Metadata-Version: 2.4
2
+ Name: juham-automation
3
+ Version: 0.0.15
4
+ Summary: Juha's Ultimate Home Automation Masterpiece
5
+ Author-email: J Meskanen <juham.api@gmail.com>
6
+ Maintainer-email: "J. Meskanen" <juham.api@gmail.com>
7
+ License: LICENSE
8
+ =======
9
+
10
+ Copyright (c) 2024, Juha Meskanen
11
+
12
+ Permission is hereby granted, free of charge, to any person obtaining
13
+ a copy of this software and associated documentation files (the
14
+ "Software"), to deal in the Software without restriction, including
15
+ without limitation the rights to use, copy, modify, merge, publish,
16
+ distribute, sublicense, and/or sell copies of the Software, and to
17
+ permit persons to whom the Software is furnished to do so, subject to
18
+ the following conditions:
19
+
20
+ **The above copyright notice and this permission notice shall be included in all
21
+ copies or substantial portions of the Software.**
22
+
23
+
24
+ ** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
25
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
27
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
28
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
29
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
30
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **
31
+
32
+
33
+ Project-URL: Homepage, https://gitlab.com/juham/juham/juham-automation.git
34
+ Project-URL: Bug Reports, https://gitlab.com/juham/juham/juham-automation.git
35
+ Project-URL: Funding, https://meskanen.com
36
+ Project-URL: Say Thanks!, http://meskanen.com
37
+ Project-URL: Source, https://gitlab.com/juham/juham/juham-automation.git
38
+ Keywords: home,automation,juham
39
+ Classifier: Development Status :: 2 - Pre-Alpha
40
+ Classifier: Intended Audience :: Developers
41
+ Classifier: Topic :: Software Development
42
+ Classifier: License :: Public Domain
43
+ Classifier: Programming Language :: Python :: 3.8
44
+ Requires-Python: >=3.8
45
+ Description-Content-Type: text/markdown
46
+ License-File: LICENSE.rst
47
+ Requires-Dist: juham_core>=0.1.3
48
+ Provides-Extra: dev
49
+ Requires-Dist: check-manifest; extra == "dev"
50
+ Requires-Dist: types-pyz; extra == "dev"
51
+ Dynamic: license-file
52
+
53
+ Welcome to Juham™ - Juha's Ultimate Home Automation Masterpiece
54
+ ================================================================
55
+
56
+ Project Description
57
+ -------------------
58
+
59
+ This package extends the ``juham_core`` package, providing home automation building blocks that cover most common needs.
60
+ It consists of two main sub-modules:
61
+
62
+ .. image:: _static/images/juham_automation.png
63
+ :alt: Basic automation classes for optimizing energy consumption and minimizing electricity costs.
64
+ :width: 640px
65
+ :align: center
66
+
67
+
68
+ - ``automation``
69
+
70
+ * **spothintafi**: Acquires electricity prices in Finland.
71
+ * **watercirculator**: Automates a water circulator pump based on hot water temperature and motion detection.
72
+ * **hotwateroptimizer**: Controls hot water radiators based on temperature sensors and electricity price data.
73
+ * **energycostcalculator**: Monitors power consumption and electricity prices, and computes the energy balance in euros.
74
+
75
+
76
+ - ``ts``
77
+
78
+ * This folder contains time series recorders that listen for Juham™ topics and store the data in a time series database
79
+ for later inspection.
80
+
81
+
82
+ Project Status
83
+ --------------
84
+
85
+ **Current State**: **Pre-Alpha (Status 2)**
86
+
87
+ All classes have been tested to some extent, and no known bugs have been reported. However, the code still requires work in
88
+ terms of design and robustness. For instance, electricity prices are currently hard-coded to use euros, but this should be
89
+ configurable to support multiple currencies.
90
+
91
+
92
+ Special Thanks
93
+ --------------
94
+
95
+ This project would not have been possible without the generous support of two exceptional individuals: Teppo K. and Mahi.
96
+
97
+ Teppo K. provided the initial spark for this project by donating a Raspberry Pi, a temperature sensor, and giving an inspiring
98
+ demonstration of his own home automation system—effectively dragging me down the rabbit hole of endless tinkering.
99
+
100
+ Mahi has been instrumental in translating my half-baked ideas into Python code, offering invaluable support and
101
+ encouragement—while also ensuring that every time I thought I was done, I wasn’t.
102
+
103
+ Because of these two gentlemen, my already minimal spare time dropped into the negatives as I desperately tried to push the
104
+ system to some semblance of professionalism.
105
+
106
+ I’m truly grateful to both—really. 😅
@@ -1,54 +1,54 @@
1
- Welcome to Juham™ - Juha's Ultimate Home Automation Masterpiece
2
- ================================================================
3
-
4
- Project Description
5
- -------------------
6
-
7
- This package extends the ``juham_core`` package, providing home automation building blocks that cover most common needs.
8
- It consists of two main sub-modules:
9
-
10
- .. image:: _static/images/juham_automation.png
11
- :alt: Basic automation classes for optimizing energy consumption and minimizing electricity costs.
12
- :width: 640px
13
- :align: center
14
-
15
-
16
- - ``automation``
17
-
18
- * **spothintafi**: Acquires electricity prices in Finland.
19
- * **watercirculator**: Automates a water circulator pump based on hot water temperature and motion detection.
20
- * **hotwateroptimizer**: Controls hot water radiators based on temperature sensors and electricity price data.
21
- * **energycostcalculator**: Monitors power consumption and electricity prices, and computes the energy balance in euros.
22
-
23
-
24
- - ``ts``
25
-
26
- * This folder contains time series recorders that listen for Juham™ topics and store the data in a time series database
27
- for later inspection.
28
-
29
-
30
- Project Status
31
- --------------
32
-
33
- **Current State**: **Pre-Alpha (Status 2)**
34
-
35
- All classes have been tested to some extent, and no known bugs have been reported. However, the code still requires work in
36
- terms of design and robustness. For instance, electricity prices are currently hard-coded to use euros, but this should be
37
- configurable to support multiple currencies.
38
-
39
-
40
- Special Thanks
41
- --------------
42
-
43
- This project would not have been possible without the generous support of two exceptional individuals: Teppo K. and Mahi.
44
-
45
- Teppo K. provided the initial spark for this project by donating a Raspberry Pi, a temperature sensor, and giving an inspiring
46
- demonstration of his own home automation system—effectively dragging me down the rabbit hole of endless tinkering.
47
-
48
- Mahi has been instrumental in translating my half-baked ideas into Python code, offering invaluable support and
49
- encouragement—while also ensuring that every time I thought I was done, I wasn’t.
50
-
51
- Because of these two gentlemen, my already minimal spare time dropped into the negatives as I desperately tried to push the
52
- system to some semblance of professionalism.
53
-
54
- I’m truly grateful to both—really. 😅
1
+ Welcome to Juham™ - Juha's Ultimate Home Automation Masterpiece
2
+ ================================================================
3
+
4
+ Project Description
5
+ -------------------
6
+
7
+ This package extends the ``juham_core`` package, providing home automation building blocks that cover most common needs.
8
+ It consists of two main sub-modules:
9
+
10
+ .. image:: _static/images/juham_automation.png
11
+ :alt: Basic automation classes for optimizing energy consumption and minimizing electricity costs.
12
+ :width: 640px
13
+ :align: center
14
+
15
+
16
+ - ``automation``
17
+
18
+ * **spothintafi**: Acquires electricity prices in Finland.
19
+ * **watercirculator**: Automates a water circulator pump based on hot water temperature and motion detection.
20
+ * **hotwateroptimizer**: Controls hot water radiators based on temperature sensors and electricity price data.
21
+ * **energycostcalculator**: Monitors power consumption and electricity prices, and computes the energy balance in euros.
22
+
23
+
24
+ - ``ts``
25
+
26
+ * This folder contains time series recorders that listen for Juham™ topics and store the data in a time series database
27
+ for later inspection.
28
+
29
+
30
+ Project Status
31
+ --------------
32
+
33
+ **Current State**: **Pre-Alpha (Status 2)**
34
+
35
+ All classes have been tested to some extent, and no known bugs have been reported. However, the code still requires work in
36
+ terms of design and robustness. For instance, electricity prices are currently hard-coded to use euros, but this should be
37
+ configurable to support multiple currencies.
38
+
39
+
40
+ Special Thanks
41
+ --------------
42
+
43
+ This project would not have been possible without the generous support of two exceptional individuals: Teppo K. and Mahi.
44
+
45
+ Teppo K. provided the initial spark for this project by donating a Raspberry Pi, a temperature sensor, and giving an inspiring
46
+ demonstration of his own home automation system—effectively dragging me down the rabbit hole of endless tinkering.
47
+
48
+ Mahi has been instrumental in translating my half-baked ideas into Python code, offering invaluable support and
49
+ encouragement—while also ensuring that every time I thought I was done, I wasn’t.
50
+
51
+ Because of these two gentlemen, my already minimal spare time dropped into the negatives as I desperately tried to push the
52
+ system to some semblance of professionalism.
53
+
54
+ I’m truly grateful to both—really. 😅
@@ -0,0 +1,27 @@
1
+ Changelog
2
+ =========
3
+
4
+ [0.1.11] - March 03, 2025
5
+ -------------------------
6
+
7
+ * Updated for the new modularized ci-templates and docs
8
+ * New unit tests written, for better coverage. Not nearly there yet.
9
+
10
+
11
+ [0.1.8-10] - February 23, 2025
12
+ ------------------------------
13
+
14
+ * Support for grid (network) prices and tax added.
15
+
16
+ * Bug fix in the computation of the utilization optimization index: solar power was previously
17
+ given in kW, while radiator power was in W, which underestimated the effect of available solar power.
18
+
19
+ * New attribute added to time series: GridCost (cost and tax per kWh)
20
+
21
+
22
+
23
+ [0.1.7] - February 08, 2025
24
+ ---------------------------
25
+
26
+ Initial release for GitLab. Pre-alpha!
27
+
@@ -0,0 +1,44 @@
1
+ Contributing to Juham™ - Juha's Ultimate Home Automation Masterpiece
2
+ ====================================================================
3
+
4
+ Thank You!
5
+ ----------
6
+
7
+ Thank you in advance for your forthcoming contributions, whether they are bug fixes,
8
+ documentation improvements, entirely new features, or simply feedback. Your efforts
9
+ will be highly appreciated and will help turn this project from its current mission
10
+ state into an actual masterpiece.
11
+
12
+
13
+ Design Patterns
14
+ ---------------
15
+
16
+ Please read the developer documentation and understand the few design patterns behind Juham™ before contributing.
17
+ This will help ensure that your contributions align with the project's design and goals.
18
+ .. todo:: (okay, the documentation is currently lacking many essential chapters, add.)
19
+
20
+
21
+ Code Formatting
22
+ ---------------
23
+
24
+ To help maintain consistent code formatting across different developers, we use 'black' python formatter, by Microsoft.
25
+
26
+ Strange, the formatter doesn't seem to format that much, it doesn't organize imports,
27
+ doesn't adjust docstring lenghts
28
+ .. todo:: most likely I don't know how to use it properly, read the docs.
29
+
30
+
31
+ Using Emacs and Makefile
32
+ ------------------------
33
+
34
+ Despite my attempts to fall in love with Eclipse, VSCode and other IDEs, I still find Emacs and Makefile the best
35
+ tools for many workflows.
36
+ So there is a Makefile in the root folder. For those old dogs who are like me
37
+ ::
38
+
39
+ make help
40
+
41
+ More Stuff
42
+ ----------
43
+ .. todo:: TBA
44
+
@@ -0,0 +1,25 @@
1
+ LICENSE
2
+ =======
3
+
4
+ Copyright (c) 2024, Juha Meskanen
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining
7
+ a copy of this software and associated documentation files (the
8
+ "Software"), to deal in the Software without restriction, including
9
+ without limitation the rights to use, copy, modify, merge, publish,
10
+ distribute, sublicense, and/or sell copies of the Software, and to
11
+ permit persons to whom the Software is furnished to do so, subject to
12
+ the following conditions:
13
+
14
+ **The above copyright notice and this permission notice shall be included in all
15
+ copies or substantial portions of the Software.**
16
+
17
+
18
+ ** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
21
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
22
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
23
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
24
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **
25
+
@@ -0,0 +1,54 @@
1
+ Welcome to Juham™ - Juha's Ultimate Home Automation Masterpiece
2
+ ================================================================
3
+
4
+ Project Description
5
+ -------------------
6
+
7
+ This package extends the ``juham_core`` package, providing home automation building blocks that cover most common needs.
8
+ It consists of two main sub-modules:
9
+
10
+ .. image:: _static/images/juham_automation.png
11
+ :alt: Basic automation classes for optimizing energy consumption and minimizing electricity costs.
12
+ :width: 640px
13
+ :align: center
14
+
15
+
16
+ - ``automation``
17
+
18
+ * **spothintafi**: Acquires electricity prices in Finland.
19
+ * **watercirculator**: Automates a water circulator pump based on hot water temperature and motion detection.
20
+ * **hotwateroptimizer**: Controls hot water radiators based on temperature sensors and electricity price data.
21
+ * **energycostcalculator**: Monitors power consumption and electricity prices, and computes the energy balance in euros.
22
+
23
+
24
+ - ``ts``
25
+
26
+ * This folder contains time series recorders that listen for Juham™ topics and store the data in a time series database
27
+ for later inspection.
28
+
29
+
30
+ Project Status
31
+ --------------
32
+
33
+ **Current State**: **Pre-Alpha (Status 2)**
34
+
35
+ All classes have been tested to some extent, and no known bugs have been reported. However, the code still requires work in
36
+ terms of design and robustness. For instance, electricity prices are currently hard-coded to use euros, but this should be
37
+ configurable to support multiple currencies.
38
+
39
+
40
+ Special Thanks
41
+ --------------
42
+
43
+ This project would not have been possible without the generous support of two exceptional individuals: Teppo K. and Mahi.
44
+
45
+ Teppo K. provided the initial spark for this project by donating a Raspberry Pi, a temperature sensor, and giving an inspiring
46
+ demonstration of his own home automation system—effectively dragging me down the rabbit hole of endless tinkering.
47
+
48
+ Mahi has been instrumental in translating my half-baked ideas into Python code, offering invaluable support and
49
+ encouragement—while also ensuring that every time I thought I was done, I wasn’t.
50
+
51
+ Because of these two gentlemen, my already minimal spare time dropped into the negatives as I desperately tried to push the
52
+ system to some semblance of professionalism.
53
+
54
+ I’m truly grateful to both—really. 😅