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:
mmcw-dev 2018-01-05 17:31:00 -05:00
parent 6c28e729e1
commit 0d251b212e
3 changed files with 7 additions and 5 deletions

View File

@ -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>

View File

@ -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

View File

@ -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 {