wip
This commit is contained in:
12
README.md
12
README.md
@@ -1,6 +1,16 @@
|
|||||||
# Domo
|
# Domo
|
||||||
|
|
||||||
Domotic Firmware
|
## Domotic Firmware
|
||||||
|
|
||||||
Domo est un firmware pour Raspberry qui permet de controler un arrosage, de volets roulants
|
Domo est un firmware pour Raspberry qui permet de controler un arrosage, de volets roulants
|
||||||
ou des prises connecté DIO en 433 Mhz.
|
ou des prises connecté DIO en 433 Mhz.
|
||||||
|
|
||||||
|
## Utilisation de la console bluetooth
|
||||||
|
|
||||||
|
- hcitool scan
|
||||||
|
```
|
||||||
|
# hcitool scan
|
||||||
|
Scanning ...
|
||||||
|
00:12:6F:33:C9:FE Cabasse Stream Source
|
||||||
|
98:D3:35:00:A6:1C HC-05
|
||||||
|
```
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ USE_PROCD=1
|
|||||||
start_service () {
|
start_service () {
|
||||||
|
|
||||||
procd_open_instance
|
procd_open_instance
|
||||||
procd_set_param command "$PROG" -p $PORT -f -h /usr/local/share/restd/
|
procd_set_param command "$PROG" -p $PORT -f -h /usr/local/share/uhttpd/ -U /usr/local/configs/uhttpd/
|
||||||
procd_set_param pidfile "$PIDFILE"
|
procd_set_param pidfile "$PIDFILE"
|
||||||
procd_set_param respawn
|
procd_set_param respawn
|
||||||
procd_set_param stdout 1 # forward stdout of the command to logd
|
procd_set_param stdout 1 # forward stdout of the command to logd
|
||||||
|
|||||||
@@ -48,4 +48,4 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
install.sd:
|
install.sd:
|
||||||
sudo dd if=$(BR_STAGING)/buildroot/images/sdcard.img of=/dev/mmcblk0 && sync && sync
|
sudo dd if=$(BR_STAGING)/buildroot/images/sdcard.img of=/dev/sdb && sync && sync
|
||||||
|
|||||||
@@ -37,6 +37,9 @@ BR2_PACKAGE_UBOOT_TOOLS=y
|
|||||||
BR2_PACKAGE_NCURSES=y
|
BR2_PACKAGE_NCURSES=y
|
||||||
BR2_PACKAGE_AVAHI=y
|
BR2_PACKAGE_AVAHI=y
|
||||||
BR2_PACKAGE_AVAHI_DAEMON=y
|
BR2_PACKAGE_AVAHI_DAEMON=y
|
||||||
|
BR2_PACKAGE_DROPBEAR=y
|
||||||
|
# BR2_PACKAGE_DROPBEAR_CLIENT is not set
|
||||||
|
BR2_PACKAGE_DROPBEAR_DISABLE_REVERSEDNS=y
|
||||||
BR2_TARGET_ROOTFS_CPIO=y
|
BR2_TARGET_ROOTFS_CPIO=y
|
||||||
BR2_TARGET_ROOTFS_CPIO_LZO=y
|
BR2_TARGET_ROOTFS_CPIO_LZO=y
|
||||||
BR2_TARGET_ROOTFS_CPIO_UIMAGE=y
|
BR2_TARGET_ROOTFS_CPIO_UIMAGE=y
|
||||||
|
|||||||
@@ -150,6 +150,7 @@ static int usage(const char *name)
|
|||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_REST_API_PLUGING
|
#ifdef HAVE_REST_API_PLUGING
|
||||||
" -U directory Specify the config root path\n"
|
" -U directory Specify the config root path\n"
|
||||||
|
" -u directory plugin directory root path\n"
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_UBUS
|
#ifdef HAVE_UBUS
|
||||||
" -u string URL prefix for UBUS via JSON-RPC handler\n"
|
" -u string URL prefix for UBUS via JSON-RPC handler\n"
|
||||||
@@ -454,6 +455,9 @@ int main(int argc, char **argv)
|
|||||||
case 'U':
|
case 'U':
|
||||||
conf.ubus_prefix = optarg;
|
conf.ubus_prefix = optarg;
|
||||||
break;
|
break;
|
||||||
|
case 'u':
|
||||||
|
conf.ubus_prefix = optarg;
|
||||||
|
break;
|
||||||
#endif
|
#endif
|
||||||
default:
|
default:
|
||||||
return usage(argv[0]);
|
return usage(argv[0]);
|
||||||
|
|||||||
5
src/prog/dashboard3/package-lock.json
generated
5
src/prog/dashboard3/package-lock.json
generated
@@ -11787,6 +11787,11 @@
|
|||||||
"integrity": "sha512-/ffmsiVuPC8PsWcFkZngdpas19ABm5mh2wA7iDqcltyCTwlgZjHGeJYOXkBMo422iPwIcviOtrTCUpSfXmToLQ==",
|
"integrity": "sha512-/ffmsiVuPC8PsWcFkZngdpas19ABm5mh2wA7iDqcltyCTwlgZjHGeJYOXkBMo422iPwIcviOtrTCUpSfXmToLQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"vue-axios": {
|
||||||
|
"version": "2.1.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/vue-axios/-/vue-axios-2.1.1.tgz",
|
||||||
|
"integrity": "sha512-Ek1STxe7G8H+ylkru1v1z6sIuUr4UkpYXjNLvDsqQNQIQ1CyrDk17KG2GaCjvhopu1wn7d8iAM9DJ5prn+FnrQ=="
|
||||||
|
},
|
||||||
"vue-eslint-parser": {
|
"vue-eslint-parser": {
|
||||||
"version": "2.0.3",
|
"version": "2.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/vue-eslint-parser/-/vue-eslint-parser-2.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/vue-eslint-parser/-/vue-eslint-parser-2.0.3.tgz",
|
||||||
|
|||||||
@@ -11,7 +11,8 @@
|
|||||||
"test": "echo \"No test specified\" && exit 0"
|
"test": "echo \"No test specified\" && exit 0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^0.18.0"
|
"axios": "^0.18.0",
|
||||||
|
"vue-axios": "^2.1.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"babel-eslint": "^8.2.1",
|
"babel-eslint": "^8.2.1",
|
||||||
|
|||||||
@@ -18,6 +18,8 @@ module.exports = function (ctx) {
|
|||||||
],
|
],
|
||||||
supportIE: false,
|
supportIE: false,
|
||||||
build: {
|
build: {
|
||||||
|
sourceMap: false,
|
||||||
|
minify: true,
|
||||||
scopeHoisting: true,
|
scopeHoisting: true,
|
||||||
vueRouterMode: 'history',
|
vueRouterMode: 'history',
|
||||||
// vueCompiler: true,
|
// vueCompiler: true,
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import Vuex from 'vuex'
|
import Vuex from 'vuex'
|
||||||
|
import axios from 'axios'
|
||||||
|
import VueAxios from 'vue-axios'
|
||||||
|
|
||||||
import domoStore from './domo-store'
|
import domoStore from './domo-store'
|
||||||
|
|
||||||
Vue.use(Vuex)
|
Vue.use(Vuex)
|
||||||
|
Vue.use(VueAxios, axios)
|
||||||
|
|
||||||
const store = new Vuex.Store({
|
const store = new Vuex.Store({
|
||||||
modules: {
|
modules: {
|
||||||
|
|||||||
Reference in New Issue
Block a user