William Pietri
f2a683c026
Bump version number to release bug fix.
2018-09-22 17:50:20 -07:00
William Pietri
3474680ec0
Protocol doc update.
2018-09-22 17:48:26 -07:00
William Pietri
07bd96c9c7
Apply fix from eracknaphobia/sucks for mysterious auth error issue.
2018-09-22 17:45:47 -07:00
William Pietri
3a392a3fcc
Merge branch 'eracknaphobia-master', fixing auth error issue.
2018-09-22 17:44:28 -07:00
William Pietri
15b40a446f
Apply fix from eracknaphobia/sucks for mysterious auth error issue.
2018-09-22 17:44:10 -07:00
William Pietri
b26e150e71
Merge pull request #44 from OverloadUT/fix-lifespan-calculations
...
Fix lifespans being reported much lower than reality
2018-08-28 15:26:54 -07:00
Greg Laabs
276721e280
Fix lifespans being reported much lower than reality
...
Original implementation assumed that the "total" value from the API response was the denominator for lifespan, but this was incorrect. The "val" from the `life_span` message is the percentage represented as a whole number, with no dividing necessary.
2018-07-29 15:22:31 -07:00
William Pietri
73c906bc6e
Merge pull request #43 from OverloadUT/cleanup-and-bool-properties
...
Const and logging cleanup, addition of is_cleaning and is_charging
2018-07-19 13:37:32 -07:00
Greg Laabs
930e475905
Const and logging cleanup, addition of is_cleaning and is_charging
...
All sucks vocabulary is now defined up-front in consts, so that library users can import those const instead of hard-coding them.
is_cleaning and is_charging properties were added to VacBot, avoiding library users to have to understand which vacuum statuses mean active cleaning.
All logging has been moved to instantiated loggers using the module's namespace, as is recommended by the Python docs.
2018-07-19 12:18:22 -07:00
William Pietri
4c1d68f924
Merge pull request #41 from OverloadUT/subscribe
...
Add event emitters, error handling, vacuum state and lifespan tracking
2018-07-16 07:05:15 -07:00
Greg Laabs
741295079d
gitignore nosetest output files
2018-07-15 15:20:02 -07:00
Greg Laabs
df44def7c5
Add tests, and fix some edge cases revealed by tests (yay!)
2018-07-15 15:19:40 -07:00
Greg Laabs
269749e0ea
Add event emitters, error handling, vacuum state and lifespan tracking
...
Tons of cleanup alongside a lot of new functionality. BotVac now provides an overall vacuum state as a single state, and can emit events to subscribers every time the state changes, as well as any lifespan or battery changes.
The BotVac can also now be created in a `monitor` mode, meaning the BotVac object will handle fetching initial state, refetching state after the BotVac goes offline then online, and regularly checking in on component lifespans.
All statuses are also now normalized so that the BotVac's reported statuses always match the names defined by the sucks library.
2018-07-13 22:10:24 -07:00
eracknaphobia
8f3bf0ac60
Fix for Auth 1004 Error
2018-04-12 22:30:26 -04:00
William Pietri
bfea9bf2fa
Making it clear Python 3 is required
2017-12-31 11:22:03 -08:00
William Pietri
4e5b24c1b7
releasing 0.8.4
2017-12-28 10:50:15 -08:00
William Pietri
d0e31141ba
Minor doc update.
2017-12-28 09:44:51 -08:00
William Pietri
624d54c77f
Merge pull request #26 from torbjornaxelsson/server-argument
...
XMPP server address as optional argument
2017-12-22 00:40:16 -05:00
William Pietri
06e2a3e440
Merge branch 'master' into server-argument
2017-12-22 00:37:58 -05:00
William Pietri
7ee7a2457a
Merge branch 'master' into server-argument
2017-12-22 00:36:27 -05:00
William Pietri
bda504df6a
Merge pull request #25 from torbjornaxelsson/error-event-bug-fix
...
Removed error handler in EcoVacsXMPP
2017-12-22 00:33:52 -05:00
Torbjörn Axelsson
e7ad30eac0
Removed error handler in EcoVacsXMPP
...
The _handle_error method was throwing a runtime error because it expects an XML element
The functionality in _handle_error is covered by _handle_ctl so it can be removed altogether
2017-12-21 18:51:47 -08:00
Torbjörn Axelsson
8aafc37cd0
XMPP server address as optional argument
2017-12-21 18:39:59 -08:00
William Pietri
d300df99eb
Moving waiting logic to CLI.
2017-12-19 16:01:16 -08:00
William Pietri
7748bcd705
Add new successful model; other minor changes
2017-12-18 17:43:17 -08:00
William Pietri
8e548cd79b
Merge pull request #23 from torbjornaxelsson/more-commands
...
VacBotCommand class updated and more commands added
2017-12-18 17:08:04 -08:00
Torbjörn Axelsson
aab8d769aa
Fixed mistake in ChargeAndWaitForCompletion command
2017-12-16 17:03:56 -08:00
Torbjörn Axelsson
66d73f7cf0
VacBotCommand class updated and more commands added
2017-12-16 15:26:57 -08:00
William Pietri
8153582a9c
Merge pull request #22 from wpietri/split-xmpp-responsibilities
...
Split xmpp responsibilities
2017-12-13 18:11:48 -08:00
William Pietri
d6e4f7d5c5
Events now flow to Vacbot as reasonably sane dicts.
2017-12-12 11:49:10 -08:00
William Pietri
fbd3c3d85a
Seeing if I can split the XMPP responsibilities from the vacuum responsibilities.
2017-12-11 16:14:52 -08:00
William Pietri
8bcef91efb
Merge pull request #20 from wpietri/basic-windows-support-#5
...
Support config files on Windows.
2017-12-10 18:46:14 -08:00
William Pietri
da4e1a0201
Rebasing to latest master.
2017-12-10 18:41:53 -08:00
William Pietri
fc276a8fe3
Adding some basic tests for static api functions.
2017-12-10 18:40:01 -08:00
William Pietri
f1b2fbc3ab
Adding tests for reading and writing config.
2017-12-10 18:40:01 -08:00
William Pietri
c691f1918e
Does this work for Windows config file paths?
2017-12-10 18:40:01 -08:00
William Pietri
f4aeff5c13
Does this work for Windows config file paths?
2017-12-10 18:40:01 -08:00
William Pietri
0708c813a0
Updating to new release instructions.
2017-12-10 18:17:22 -08:00
William Pietri
9eb9b02d99
Merge branch 'Zenconomy-docs'
2017-12-10 18:13:54 -08:00
William Pietri
02e0d3638c
Merge branch 'docs' of https://github.com/Zenconomy/sucks into Zenconomy-docs
2017-12-10 18:13:25 -08:00
William Pietri
9e430ccc2a
Merge pull request #19 from wpietri/fix-tests-and-deployment
...
Fix tests and deployment
2017-12-10 18:03:15 -08:00
William Pietri
83da699bf6
bumping version for release
2017-12-10 18:00:43 -08:00
William Pietri
e3f654cc3d
Install dev requirements.
2017-12-10 17:57:05 -08:00
William Pietri
2192d4f958
Fixing test and release nits.
2017-12-10 17:54:54 -08:00
William Pietri
f2690e0777
updates for 0.8.2 release, incluing PyPi support
2017-12-10 17:30:34 -08:00
Torbjörn Axelsson
95d044c769
Docs update: developing, protocol, readme
2017-12-10 11:26:41 -08:00
William Pietri
5dcb819d6a
Merge pull request #14 from OverloadUT/fix-command-formatting
...
Fix for commands that need to be CamelCased
2017-12-09 13:16:33 -08:00
Greg Laabs
da6f9ef464
Add tests for the command formatting changes
...
Tests preserving the CamelCasing of commands, and support for zero args
2017-12-09 13:10:34 -08:00
William Pietri
0bad0202ba
Merge pull request #13 from OverloadUT/fix-battery-status
...
Save battery status to VacBot
2017-12-09 07:26:46 -08:00
Greg Laabs
b32ced6f5a
Lowercase the args tag when building the command XML
...
The args tag is always lowercase, while the command name is Capitalized or CamelCased
2017-12-08 19:42:34 -08:00