Robert Resch
a3e9463821
fix ip
2021-06-02 14:02:36 +02:00
Robert Resch
fdb934980d
Merge branch 'master' into wip-proxyRequests
2021-04-29 22:53:53 +02:00
Kusha Gharahi
436830cdd6
add LOG_TO_STDOUT env var
2020-10-11 19:13:21 -05:00
Brian Martin
904167a8c5
proxymode db
...
move settings to db and rework code to support
2020-01-20 10:30:10 -05:00
Brian Martin
bdc452b99c
reset connection status at startup
...
reset bot and client connections to false for xmpp/mqtt at startup
2020-01-20 08:34:08 -05:00
Brian Martin
aca40e0e57
mqtt proxy
...
- mqtt and confserver proxy mode working
2020-01-20 00:51:22 -05:00
Brian Martin
d428c5019b
confserver proxy
...
- app is proxying correctly
2020-01-18 13:43:25 -05:00
Brian Martin
d1d2b228ee
implement basic confserver plugins
...
- basic plugin system for confserver
- allows adding api via plugins that can be saved in user data/plugins folder
- relocated routes into internal plugins
- add start_site to replace start_server
- changed init code for starting confserver, this with the above fixes an issue of initializing the app twice
2020-01-04 20:35:08 -05:00
Brian Martin
eb72e003f5
Update __init__.py
2020-01-01 00:35:29 -05:00
Brian Martin
cc16a5ceb5
create passwd file if it doesnt exist
...
create passwd file if it doesnt exist
2019-12-27 11:12:13 -05:00
Brian Martin
c8acac767f
More MQTT Logging
...
MQTT Server logs routed to mqttserver.log
2019-09-27 17:25:57 -04:00
Brian Martin
7fc7cb80cb
api - restart_{service}
...
add restart_{service}
- restart_Helperbot
- restart_MQTTServer
- Removed a few outstanding references to threads
2019-06-20 08:48:01 -04:00
Brian Martin
58b3567887
split models and db from init
...
Move models into their own file
Move db functions into their own file
Update tests
2019-06-19 09:29:45 -04:00
Brian Martin
b48905b4e4
catch bot errors in log
...
Close #10
- New boterror log
- Works for MQTT and XMPP
2019-06-19 07:29:12 -04:00
Brian Martin
f0c13dc8e2
db with open
...
switch to using with open
2019-06-18 20:18:54 -04:00
Brian Martin
f2585b0450
Remove debug prints
...
Remove forgotten prints from debugging
2019-06-15 01:49:38 -04:00
Brian Martin
0b38562b4a
Merge branch 'master' into docker
2019-06-15 00:12:45 -05:00
Brian Martin
6b2ed31c9e
remove first run prompt - fix tests
...
remove first run prompt, default to generate certs
fix tests
2019-06-10 22:10:18 -04:00
Brian Martin
d8b2d02ca4
remove extra listeners
...
removed service_listeners and using bumper_listen
2019-06-09 21:16:37 -04:00
Brian Martin
d5db3b696c
dockerfile and env var
...
Add Dockerfile, requirement.txt, and new BUMPER_CERTS env var.
2019-06-09 20:09:35 -04:00
Brian Martin
1f0e417760
no more start_bumper
...
remove start_bumper
- built into __main__ + __init__
- add tests
2019-06-08 16:45:52 -04:00
Brian Martin
edf5e8e3c0
add first_run
...
if certs aren't in folder, ask to create with create_certs.
2019-06-07 19:16:44 -04:00
Brian Martin
6c429b93e6
more grace
...
more graceful shutdown and error handling
2019-06-07 00:54:12 -04:00
Brian Martin
4e46d7e810
add autoflake
...
add autoflake
remove unused imports
2019-06-06 23:18:28 -04:00
Brian Martin
75810c18e2
Update __init__.py
2019-06-06 22:47:16 -04:00
Brian Martin
72f3b5d049
change execution
...
bumper.start/shutdown
- allow envionrment variables (prep for docker)
- move bumper.db to new "data" directory
start_bumper reworked
- use argparse
2019-06-06 22:46:40 -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
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
79ad55d2ec
Merge branch 'dev_broken-XMPP' into support-ecovacs-home
2019-05-20 22:20:19 -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
c4900be511
Fix db_path and test
...
Earlier commit broke the db_path and tests.....
2019-05-12 15:49:08 -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
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
5efd5112a2
Cleanup remaining contextvar
...
Remove remaining context vars
Fix minor formatting
Rename bumper.py to run_bumper.py to remove conflict with module name
2019-03-18 13:13:38 -04:00
Brian Martin
5392bef74f
Additional tests for confserver
...
Additional tests for confserver
2019-03-15 09:05:54 -04:00
Brian Martin
747eeda4a5
Start adding tests for confserver
...
Start adding tests for confserver
2019-03-14 09:35:37 -04:00
Brian Martin
616729e97f
full coverage for init
...
full coverage for init
- 100% coverage of db operations
2019-03-13 21:07:29 -04:00
Brian Martin
98b65bb808
first test
...
first test
2019-03-11 23:14:50 -04:00
Brian Martin
af3e4ab1ce
reformat files with black
...
reformat files with black
2019-03-11 21:32:55 -04:00
Brian Martin
d6e853158c
Fix revoke expired and remove disconnected
...
Fix revoke expired and remove disconnected
2019-03-11 21:01:47 -04:00
Brian Martin
09e41cbc6e
Move tokens to new table
...
Move tokens to new table
- Authcode linked to token
2019-03-11 10:34:15 -04:00
Brian Martin
8806e804f0
Updated confserver
...
Updated confserver to use tinydb and set users, tokens, authcodes
2019-03-03 10:28:52 -05:00
Brian Martin
a4fec85717
WIP: Bot and Client
...
- Using tinydb
- Bot and clients tracked in db
2019-03-02 16:33:56 -05:00
Brian Martin
e97b28a5c8
ozmo xmpp authentication
...
ozmo auths and shows up in the app
2019-02-24 02:29:40 -05:00
Brian Martin
e7e41ed56b
add black and format
2019-02-22 00:09:19 -05:00
Brian Martin
e17a0cb30b
cleaning up formatting
...
cleaning up formatting
2019-02-20 21:17:35 -05:00
Brian Martin
0a5d93b099
update auth mechanisms
...
use_auth allows the newer auth mechanisms to be optional
changes and fixes to support
TODO: need to get a bot that would connect on XMPP or get sniffed traffic to see the login details
2019-02-20 02:53:49 -05:00