Commit graph

135 commits

Author SHA1 Message Date
Brian Martin
e00c4dd6e0 Add codecov 2019-06-05 00:11:38 -04:00
Brian Martin
f461097cda
Merge pull request #39 from bmartin5692/add-tests
Add unit tests
2019-06-04 22:51:22 -05:00
Brian Martin
29356c9849 add confserver tests
add confserver tests
2019-06-04 23:46:28 -04:00
Brian Martin
2a4c369d58 add more xmpp tests
- test xmpp server
- test starttls upgrade
2019-06-04 22:20:11 -04:00
Brian Martin
105f0ad632 more mqtt tests
more mqtt tests
2019-06-04 17:29:39 -04:00
Brian Martin
0cb5c0b4f3 add test_mqttserver.py
add test_mqttserver.py
2019-06-04 09:57:45 -04:00
Brian Martin
3060e7db20 remove iq auth
Remove old iq auth that is replaced by sasl
2019-06-03 16:41:52 -04:00
Brian Martin
9d95cbd606 rename test_bumper to test_init
- rename test_bumper to test_init
- added more xmppserver tests
2019-06-03 15:48:24 -04:00
Brian Martin
bcafa83c65 update travis and appveyor configs
update travis and appveyor configs to run pytest instead of nosetests
2019-06-03 09:55:22 -04:00
Brian Martin
615c6011ed add test_xmppserver.py
Add new test_xmppserver.py
- first connect test
2019-06-03 09:04:16 -04:00
Brian Martin
d4414bd150 Reworking tests
Reworking tests with pytest
2019-05-31 22:06:54 -04:00
Brian Martin
c78202c347
Update Use_With_App.md 2019-05-30 09:18:30 -04:00
Brian Martin
be13a9b7ac
Update How_It_Works.md 2019-05-30 09:17:21 -04:00
Brian Martin
6b6edaa0f6
Update Use_With_App.md 2019-05-30 09:16:45 -04:00
Brian Martin
d2ebe12145 Split README into docs
Splitting README into docs to make it shorter and easier to maintain.

- Change to os_db_path adding createdir so tests can skip creation of the path
2019-05-30 09:13:19 -04:00
Brian Martin
c3098e03e4 Format with black
Formatting code with black
- pipenv update
2019-05-30 06:55:15 -04:00
Brian Martin
401af5652f
Merge pull request #37 from bmartin5692/dev_starttls_#35
Add STARTTLS
2019-05-29 19:54:39 -05:00
Brian Martin
2dd59a5b98 STARTTLS working
Addresses #35

Re-worked XMPP to use protocol and adds support for STARTTLS.

Re-worked start and added graceful close on Ctrl+C
2019-05-29 20:48:47 -04:00
Brian Martin
b50b0df734 WIP - Init
WIP, not working
2019-05-25 08:39:24 -04:00
Brian Martin
32ae8468a3 xmpp - set from if empty 2019-05-23 15:15:25 -04:00
Brian Martin
a3e7d61987
Merge pull request #34 from bmartin5692/dev_broken-XMPP
Merge async and xmpp work
2019-05-23 09:22:57 -04:00
Brian Martin
7dc2504f2b Fix confserver test and add dev pbr
Fix confserver test and add dev pbr
2019-05-23 09:20:17 -04:00
Brian Martin
588959d1ef bump pipfile
bump pipfile
2019-05-23 09:09:01 -04:00
Brian Martin
2460182f4f Fix the things
XMPP is now async and works - Closes #27
Full async - Closes #22
Individual log files - Closes #21
2019-05-23 09:01:30 -04:00
Brian Martin
ceb8cf2651
Merge pull request #33 from bmartin5692/fix-#31
Fix #31
2019-05-21 10:31:52 -04:00
Brian Martin
3ae24976af
Merge branch 'dev_broken-XMPP' into fix-#31 2019-05-21 10:28:24 -04:00
Brian Martin
4af69d87fb
Merge pull request #32 from bmartin5692/fix-#31
Return 500 errors for command timeout
2019-05-21 10:25:19 -04:00
Brian Martin
5bf202189d Return 500 errors for command timeout
Bumper was returning an invalid errno when a command for MQTT would timeout.  Change to return a 500 errno with a debug message.

Closes #31
2019-05-21 10:13:21 -04:00
Brian Martin
38f31a8e69
Update README.md 2019-05-20 22:59:08 -04:00
Brian Martin
1a2500807a
Merge pull request #30 from bmartin5692/support-ecovacs-home
Support ecovacs home app
2019-05-20 22:22:10 -04:00
Brian Martin
79ad55d2ec
Merge branch 'dev_broken-XMPP' into support-ecovacs-home 2019-05-20 22:20:19 -04:00
Brian Martin
8c5f603e15
Merge pull request #29 from bmartin5692/support-ecovacs-home
Support ecovacs home app
2019-05-20 22:16:47 -04:00
Brian Martin
5d8977d0cb
Merge pull request #28 from bmartin5692/dev
Add --listen arg
2019-05-20 21:59:51 -04:00
Brian Martin
25a7be6fc6 Logs and fixes
- Fix for username
- Cleaning log loads stats, but no logs
  - This is broken without Bumper as well, maybe we can fix it as a TODO later it seems to be doing server-side processing unlike the Ecovacs app.
2019-05-20 12:45:13 -04:00
Brian Martin
734d1cee79 Initial Support
Initial Support for EcoVacs Home app.
- Login and most commands/controls work
2019-05-20 09:01:27 -04:00
Brian Martin
9509163464 Updates for XMPP
Updates for XMPP, seems to fix an issue with holding the rest of the asyncio loops hostage after a disconnect.
2019-05-18 15:55:00 -04:00
Brian Martin
d238ded6c1 Better MQTT logging and asyncio debug on
Better MQTT logging and asyncio debug on
2019-05-18 08:35:08 -04:00
Brian Martin
4d0d4d8f7a
Update README.md 2019-05-16 21:45:12 -04:00
Brian Martin
58919e1cbb
Merge pull request #24 from bmartin5692/remove_Context
Remove contextVars
2019-05-12 15:50:59 -04:00
Brian Martin
c4900be511 Fix db_path and test
Earlier commit broke the db_path and tests.....
2019-05-12 15:49:08 -04:00
Brian Martin
652a0b0e9b Fix command_responses
Final removal of contextvars
2019-05-12 15:42:47 -04:00
Brian Martin
d6816a02ec Remove vars
Start removal
2019-05-12 15:31:52 -04:00
Brian Martin
2683421c34 Fix startup and create db path
Fix for listen args and create db path if it doesn't exist
2019-05-12 15:20:10 -04:00
Brian Martin
17d7ee5f66 Individual log files
Log files per service - Closes #21
2019-05-03 09:00:05 -04:00
Brian Martin
6aedcd9050
Merge pull request #20 from bmartin5692/wip_asyncio
Wip asyncio
2019-04-16 20:49:02 -04:00
Brian Martin
bde8a7331e xmpp sleep to async
xmpp sleep to async
2019-04-16 20:42:41 -04:00
Brian Martin
b8f95d5b9c dont schedule pings if client disconnected
dont schedule pings if client disconnected
2019-03-22 09:58:03 -04:00
Brian Martin
437417929e WIP - Convert XMPP to Async
WIP - Convert XMPP to Async
2019-03-22 09:49:15 -04:00
Brian Martin
a296f038a7 rearrange start to use asyncio
Create an asyncio loop then start confservers, mqtt, and mqtthelper in loop.

TODO: Re-work xmpp for asyncio
2019-03-21 21:19:29 -04:00
Brian Martin
d5449961f3 Add --listen arg
A system with multiple nics had an issue with selecting the right IP to listen on.

Add --listen command-line arg.
Usage:
run_bumper.py --listen ip.address
2019-03-20 08:05:02 -04:00