GyuhoLee

[Update] Index page prototype

......@@ -3,17 +3,26 @@
<head>
<meta charset="UTF-8">
<title>OSW</title>
<link rel="stylesheet" href="/css/style.css" crossorigin="anonymous">
<title>OSSW</title>
<link rel="stylesheet" href="/style.css" crossorigin="anonymous">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css?family=Jua&display=swap" rel="stylesheet">
</head>
<body>
helloworld
<nav class="navbar navbar-light bg-light" style="border-bottom: 1px solid lightgray;">
<a class="navbar-brand" href="#" style="margin-left: 15px;">
<img src="/image/logo.png" style="height:250px;"/>
</a>
</nav>
<div class = "main">
<img src="/image/thermometer.jpg" class = "icon">
</div>
<div class = "sub">
<input type="text" id="location_input" value="영통1동" autofocus="true">
<button id="location_button">입력</button>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.min.js"
integrity="sha384-tsQFqpEReu7ZLhBV2VZlAu7zcOV+rXbYlF2cqB8txI/8aZajjp4Bqd+V6D5IgvKT"
crossorigin="anonymous"></script>
......
......@@ -15,9 +15,8 @@ code = []
for cell in sheet['E']:
code.append(cell.value)
#nodejs 연동용
#sys.stdin.reconfigure(encoding='utf-8')
#sys.stdout.reconfigure(encoding='utf-8')
sys.stdin.reconfigure(encoding='utf-8')
sys.stdout.reconfigure(encoding='utf-8')
area = input()
print(area)
col = code.index(area)
......@@ -71,11 +70,11 @@ if max(sens_temper) <= 8:
print("패딩, 겨울야상, 양털자켓, 폴라티, 니트, 기모바지")
print("쌀쌀한 날씨입니다. 생각보다 추워요!")
cold_danger=1
elif min(sens_temper) < -3 and min(sens_temp)>=-10:
elif min(sens_temper) < -3 and min(sens_temper)>=-10:
print("패딩, 겨울야상, 양털자켓, 폴라티, 니트, 기모바지")
print("마스크, 목도리, 장갑을 착용하세요!")
cold_danger=2
if min(sens_temper) < -10and min(sens_temper)>=-15:
if min(sens_temper) < -10 and min(sens_temper)>=-15:
print("피부를 되도록 노출하지 마세요")
print("최대한 따뜻하게 입고 다니세요")
cold_danger=3
......
.main, .sub{
margin-top: 200px;
text-align: center;
background:color= gray;
}
.icon{
width: 550px;
height: 550px;
}
#location_input{
width: 400px;
font-size: 50px;
}
#location_button{
font-size:50px;
}
\ No newline at end of file
......@@ -14,7 +14,7 @@ var app = http.createServer(function(request,response){
response.end(fs.readFileSync(__dirname + url));
});
app.listen(3000);
app.listen(8080);
const {PythonShell} = require('python-shell');
......@@ -31,6 +31,7 @@ var test = new PythonShell('recommend_clothes.py', options);
var data='영통1동';
test.send(data);
test.on('message',function(message){
arr = message.split(' ');
arr = message.split('\n');
console.log(arr);
})
......