Add path module to db to better format url? Why is database no longer writing?
Move ip above list of wifi. List package.version in app server creation.
This commit is contained in:
parent
6c28e729e1
commit
0d251b212e
|
@ -75,14 +75,14 @@
|
|||
</div>
|
||||
<div class="ble">
|
||||
<h2>WIFI</h2>
|
||||
<div id="ip">
|
||||
Local IP: null
|
||||
</div>
|
||||
<div>
|
||||
<select id="available" class="" onchange="mobile.editWifi();">
|
||||
<option>N/A</option>
|
||||
</select>
|
||||
</div>
|
||||
<div id="ip">
|
||||
Local IP: null
|
||||
</div>
|
||||
<div>
|
||||
<input type="password" id="password" class="" placeholder="Wifi Password" />
|
||||
</div>
|
||||
|
|
2
index.js
2
index.js
|
@ -15,7 +15,7 @@ const INDEXPATH = './app/www/index.html'
|
|||
|
||||
let app = restify.createServer({
|
||||
name: APPNAME,
|
||||
version: '0.0.1'
|
||||
version: PACKAGE.version
|
||||
})
|
||||
|
||||
let ble
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
'use strict'
|
||||
|
||||
const os = require('os')
|
||||
const path = require('path')
|
||||
const sqlite3 = require('sqlite3').verbose()
|
||||
const squel = require('squel')
|
||||
const DB_FILE = os.homedir() + '/.intval3.db'
|
||||
|
||||
const DB_FILE = path.join(os.homedir(), '.intval3.db')
|
||||
const db = new sqlite3.Database(DB_FILE)
|
||||
|
||||
class DB {
|
||||
|
|
Loading…
Reference in New Issue