Skip to content

Commit 670ebd6

Browse files
Bjørn KarmannBjørn Karmann
authored andcommitted
Licence updates
1 parent 3880ddd commit 670ebd6

File tree

9 files changed

+129
-5
lines changed

9 files changed

+129
-5
lines changed

.DS_Store

8 KB
Binary file not shown.

app.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
"""
2+
Project Alias - Rename your assistant and makes sure it never listens.
3+
Copyright (C) 2020 Bjørn Karmann & Tore Knudsen
4+
5+
This program is free software: you can redistribute it and/or modify
6+
it under the terms of the GNU General Public License as published by
7+
the Free Software Foundation, either version 3 of the License, or
8+
(at your option) any later version.
9+
10+
This program is distributed in the hope that it will be useful,
11+
but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
GNU General Public License for more details.
14+
15+
You should have received a copy of the GNU General Public License
16+
along with this program. If not, see <https://www.gnu.org/licenses/>.
17+
"""
18+
119
# coding=utf-8
220
import time
321
import atexit

modules/globals.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
"""
2+
Project Alias - Rename your assistant and makes sure it never listens.
3+
Copyright (C) 2020 Bjørn Karmann & Tore Knudsen
4+
5+
This program is free software: you can redistribute it and/or modify
6+
it under the terms of the GNU General Public License as published by
7+
the Free Software Foundation, either version 3 of the License, or
8+
(at your option) any later version.
9+
10+
This program is distributed in the hope that it will be useful,
11+
but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
GNU General Public License for more details.
14+
15+
You should have received a copy of the GNU General Public License
16+
along with this program. If not, see <https://www.gnu.org/licenses/>.
17+
"""
18+
119
import os
220

321
def initialize():

modules/led.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
"""
2+
Project Alias - Rename your assistant and makes sure it never listens.
3+
Copyright (C) 2020 Bjørn Karmann & Tore Knudsen
4+
5+
This program is free software: you can redistribute it and/or modify
6+
it under the terms of the GNU General Public License as published by
7+
the Free Software Foundation, either version 3 of the License, or
8+
(at your option) any later version.
9+
10+
This program is distributed in the hope that it will be useful,
11+
but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
GNU General Public License for more details.
14+
15+
You should have received a copy of the GNU General Public License
16+
along with this program. If not, see <https://www.gnu.org/licenses/>.
17+
"""
18+
119
from modules import apa102
220
global LED
321

modules/settings.py

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
"""
2+
Project Alias - Rename your assistant and makes sure it never listens.
3+
Copyright (C) 2020 Bjørn Karmann & Tore Knudsen
4+
5+
This program is free software: you can redistribute it and/or modify
6+
it under the terms of the GNU General Public License as published by
7+
the Free Software Foundation, either version 3 of the License, or
8+
(at your option) any later version.
9+
10+
This program is distributed in the hope that it will be useful,
11+
but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
GNU General Public License for more details.
14+
15+
You should have received a copy of the GNU General Public License
16+
along with this program. If not, see <https://www.gnu.org/licenses/>.
17+
"""
18+
119
import json
220
from modules import globals
321

@@ -15,8 +33,8 @@ def read():
1533
# get setting and write names into keyphrase.list file
1634
def updateServer(data):
1735
print(data)
18-
#sensitivity = data['setting']['sensitivity'] # 0 - 10
19-
36+
#sensitivity = data['setting']['sensitivity'] # 0 - 10
37+
2038
with open(globals.KEYWORD_PATH, 'w') as f:
2139
for item in data['keyphrase']:
2240
#threshold = int(mapF(len(item['name']),4, 15, 0 , 30)) + int(sensitivity)
@@ -25,4 +43,4 @@ def updateServer(data):
2543
f.write("%s\n" % keyphrase)
2644

2745
def mapF(x, in_min, in_max, out_min, out_max):
28-
return (x - in_min) * (out_max - out_min) / (in_max-in_min) + out_min;
46+
return (x - in_min) * (out_max - out_min) / (in_max-in_min) + out_min;

modules/sound.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
"""
2+
Project Alias - Rename your assistant and makes sure it never listens.
3+
Copyright (C) 2020 Bjørn Karmann & Tore Knudsen
4+
5+
This program is free software: you can redistribute it and/or modify
6+
it under the terms of the GNU General Public License as published by
7+
the Free Software Foundation, either version 3 of the License, or
8+
(at your option) any later version.
9+
10+
This program is distributed in the hope that it will be useful,
11+
but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
GNU General Public License for more details.
14+
15+
You should have received a copy of the GNU General Public License
16+
along with this program. If not, see <https://www.gnu.org/licenses/>.
17+
"""
18+
119
from modules import globals
220
from modules import led
321
from modules import settings

modules/static/style/style.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
@font-face {
32
font-family: 'Work Sans';
43
src: url('../assets/fonts/worksans-semibold-webfont.woff2') format('woff2'),

modules/templates/index.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
<!--
2+
Project Alias - Rename your assistant and makes sure it never listens.
3+
Copyright (C) 2020 Bjørn Karmann & Tore Knudsen
4+
5+
This program is free software: you can redistribute it and/or modify
6+
it under the terms of the GNU General Public License as published by
7+
the Free Software Foundation, either version 3 of the License, or
8+
(at your option) any later version.
9+
10+
This program is distributed in the hope that it will be useful,
11+
but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
GNU General Public License for more details.
14+
15+
You should have received a copy of the GNU General Public License
16+
along with this program. If not, see <https://www.gnu.org/licenses/>.
17+
-->
18+
119
<!DOCTYPE html>
220
<html lang="">
321
<head>

sleep.py

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
1+
"""
2+
Project Alias - Rename your assistant and makes sure it never listens.
3+
Copyright (C) 2020 Bjørn Karmann & Tore Knudsen
4+
5+
This program is free software: you can redistribute it and/or modify
6+
it under the terms of the GNU General Public License as published by
7+
the Free Software Foundation, either version 3 of the License, or
8+
(at your option) any later version.
9+
10+
This program is distributed in the hope that it will be useful,
11+
but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
GNU General Public License for more details.
14+
15+
You should have received a copy of the GNU General Public License
16+
along with this program. If not, see <https://www.gnu.org/licenses/>.
17+
"""
18+
119
import os
220
import time
321

422
time.sleep(5)
523
os.system('sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 5050')
6-

0 commit comments

Comments
 (0)