-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Wifi Scanning Added Socket Connection Added Autologin Added NOtifybox Added configManager (realtime config)
- Loading branch information
lucsoft
committed
Jun 29, 2019
1 parent
53be946
commit f2dd7f6
Showing
15 changed files
with
614 additions
and
267 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"infos": { | ||
"mainframe":"0.2.5", | ||
"moduleManager": "0.2" | ||
}, | ||
"modules": { | ||
"lucsoft.homeSYSWeb": { | ||
"token": "" | ||
}, | ||
"lucsoft.eventManager": { | ||
"important": 250, | ||
"high": 1000, | ||
"mid": 2500, | ||
"low": 10000 | ||
}, | ||
"lucsoft.webServer": { | ||
"loginPassword": "Mqjz8Zy4LcY348KB", | ||
"trending": "/v1/store.php?type=trending", | ||
"token": "", | ||
"hostname":"homesys.lucsoft.de", | ||
"theme":"white" | ||
}, | ||
"lucsoft.commandManager": { | ||
"enableLED":"echo default-on > /sys/class/leds/led1/trigger", | ||
"disableLED": "echo none > /sys/class/leds/led1/trigger" | ||
}, | ||
"lucsoft.HAPWrapper": { | ||
"username": "C1:23:4D:E3:CA:FA", | ||
"pincode": "131-31-313" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
var fs = require("fs"); | ||
var config = module.exports = {}; | ||
config.config = {}; | ||
config.load = () => { | ||
config.config = require("./config.json"); | ||
}; | ||
config.get = (id) => { | ||
return config.config.modules[id]; | ||
}; | ||
config.infos = () => { | ||
return config.config.infos; | ||
}; | ||
config.set = (id,name) => { | ||
config.config.modules[id][name]; | ||
}; | ||
config.push = (id,name) => { | ||
config.config.modules[id][name]; | ||
fs.writeFileSync(process.cwd() + "/lib/config.json",JSON.stringify(config.config)); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>HomeSYS Setup</title> | ||
<script src="https://api.lucsoft.de/flatweb/beta/webgen"></script> | ||
<script src="https://api.lucsoft.de/flatweb/beta/jquery.js"></script> | ||
<script src="/lib/socket.io.js"></script> | ||
<link href="https://fonts.googleapis.com/css?family=Material+Icons|Roboto:200,300,100" rel="stylesheet"> | ||
<link rel="stylesheet" href="https://api.lucsoft.de/flatweb/beta/init.php"> | ||
<theme><link rel="stylesheet" href="https://api.lucsoft.de/flatweb/beta/css/white.css"></theme> | ||
</head> | ||
<body class="FlatWeb nochange"> | ||
<article id="page" class=""> | ||
</article> | ||
<script> | ||
var test,socket; | ||
elementscount++; | ||
$("#page").append(`<cardlist id="${elementscount}" style="max-width:50rem" class="iconlist"></cardlist>`); | ||
$(`#${elementscount}`).addClass("max-width"); | ||
$(`#${elementscount}`).addClass("grid_columns_1"); | ||
|
||
var elementscountid = elementscount; | ||
elementscount++; | ||
$(`#${elementscountid}`).append(`<card id="${elementscount}"class="iconbox nohover"><img src="/imgs/homesys.png"></card>`); | ||
|
||
var card = elementscount; | ||
$(`#${card}`).addClass("blob"); | ||
|
||
changeSpaceing(1, 2); | ||
newline(); | ||
addElement("window", { | ||
content: `<span class="text">There are some Steps required to use HomeSYS<br></span> | ||
<list class="style2 nomargin"> | ||
<item><span class="left">Password<span class="desc">Required</span></span><span class="right"><input id="input_street" type="password" placeholder=""></span></item> | ||
<item><span class="left">Dark-Theme</span><span class="right"><switch onclick="toggleDarkWhite(() => {});$('#input_theme_i').toggleClass('active');$('#input_theme').click();" id="input_theme_i"></switch><input id="input_theme" class="hide"type="checkbox" ></span></item> | ||
</list>`, | ||
text: { | ||
title: "Finishing HomeSYS Installtion" | ||
}, | ||
buttons: [ | ||
{ | ||
text:"Next", | ||
color:"", | ||
onclick: (ez) => { | ||
} | ||
} | ||
] | ||
},() => {}); | ||
|
||
|
||
|
||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.