Skip to content

Commit 4eed9bc

Browse files
authored
Merge pull request #13 from jneilliii/dev
0.5.0
2 parents cfaa4d5 + efdcadf commit 4eed9bc

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
Work inspired by [OctoPrint-PSUControl](https://github.com/kantlivelong/OctoPrint-PSUControl) and [TP-Link WiFi SmartPlug Client](https://github.com/softScheck/tplink-smartplug), this plugin controls a TP-Link Smartplug via OctoPrint's nav bar.
44

5-
## Known Issues
6-
- Reported to not be working on Version 2 TP-LINK hardware, ie smartPlug_CE_HS100(AU)_HS110(AU), others may also be affected.
7-
85
## Screenshots
96
![screenshot](screenshot_on.png)
107

changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [0.5.0] - 2017-09-22
8+
### Changed
9+
- Modified encrypt function to work with hardware version 2 SmartPlugs.
10+
711
## [0.4.0] - 2017-09-16
812
### Added
913
- Added system command options on power on and off.
@@ -46,6 +50,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
4650
### Added
4751
- Initial release.
4852

53+
[0.5.0]: https://github.com/jneilliii/OctoPrint-TPLinkSmartplug/tree/0.5.0
4954
[0.4.0]: https://github.com/jneilliii/OctoPrint-TPLinkSmartplug/tree/0.4.0
5055
[0.3.1]: https://github.com/jneilliii/OctoPrint-TPLinkSmartplug/tree/0.3.1
5156
[0.3.0]: https://github.com/jneilliii/OctoPrint-TPLinkSmartplug/tree/0.3.0

octoprint_tplinksmartplug/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def on_api_command(self, command, data):
139139

140140
def encrypt(self, string):
141141
key = 171
142-
result = "\0\0\0\0"
142+
result = "\0\0\0"+chr(len(string))
143143
for i in string:
144144
a = key ^ ord(i)
145145
key = a

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
plugin_name = "OctoPrint-TPLinkSmartplug"
1515

1616
# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
17-
plugin_version = "0.4.0"
17+
plugin_version = "0.5.0"
1818

1919
# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
2020
# module

0 commit comments

Comments
 (0)