File tree Expand file tree Collapse file tree 5 files changed +3
-23
lines changed Expand file tree Collapse file tree 5 files changed +3
-23
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ Start HiveMind WebChat
21
21
optional arguments:
22
22
-h, --help show this help message and exit
23
23
--port PORT port to run webchat (default 9090)
24
- --announce announce HiveMind node in local network
25
24
```
26
25
27
26
Access from web browser ` http://localhost:9090 `
Original file line number Diff line number Diff line change 6
6
def main ():
7
7
parser = argparse .ArgumentParser (description = "Start HiveMind WebChat" )
8
8
parser .add_argument ("--port" , help = "port to run webchat (default 9090)" , default = 9090 )
9
- parser .add_argument ("--announce" , help = "announce HiveMind node in local network" , action = "store_true" )
10
9
11
10
args = parser .parse_args ()
12
11
13
- presence = None
14
-
15
- if args .announce :
16
- try :
17
- from HiveMind_presence import LocalPresence
18
- presence = LocalPresence (port = 9090 ,
19
- service_type = "HiveMind-WebChat" )
20
- # TODO upnp server might be running for hivemind already if on same device
21
- # TODO scan utils should account for this service_type
22
- presence .start ()
23
- except ImportError :
24
- print ("Can not announce node in local network" )
25
- print ("pip install HiveMind_presence~=0.0.2a2" )
26
- except Exception as e :
27
- print (f"Failed to announce node: { e } " )
28
-
29
12
webchat .main (args .port )
30
- if presence :
31
- presence .stop ()
32
13
33
14
34
15
if __name__ == '__main__' :
Original file line number Diff line number Diff line change 33
33
< div class ="mycroft ">
34
34
< nav class ="navbar navbar-inverse navbar-fixed-top ">
35
35
< div class ="navbar-header ">
36
- < a class ="navbar-brand " href ="# "> < img src ="static/img/Logo2 .png " alt ="Mycroft Logo ">
36
+ < a class ="navbar-brand " href ="# "> < img src ="static/img/ovos-logo-512 .png " alt ="Mycroft Logo ">
37
37
</ a >
38
38
</ div >
39
39
Original file line number Diff line number Diff line change 2
2
3
3
setup (
4
4
name = 'hivemind_webchat' ,
5
- version = '0.2.2 ' ,
5
+ version = '0.3.0 ' ,
6
6
packages = ['hivemind_webchat' ],
7
7
include_package_data = True ,
8
8
install_requires = ["tornado" ],
13
13
description = 'local hivemind webchat' ,
14
14
entry_points = {
15
15
'console_scripts' : [
16
- 'HiveMind -webchat=hivemind_webchat.__main__:main'
16
+ 'hivemind -webchat=hivemind_webchat.__main__:main'
17
17
]
18
18
}
19
19
)
You can’t perform that action at this time.
0 commit comments