Initial commit
This commit is contained in:
39
mos.yml
39
mos.yml
@@ -1,21 +1,54 @@
|
||||
author: mongoose-os
|
||||
description: Setup WiFi via Web UI
|
||||
name: mg_sonoff
|
||||
author: Dirk Jahnke
|
||||
description: Control sonoff devices without having them communicate to their internet servers. Instead integrate them into you own home automation based on MQTT or RPC.
|
||||
version: 1.0
|
||||
|
||||
libs_version: ${mos.version}
|
||||
modules_version: ${mos.version}
|
||||
mongoose_os_version: ${mos.version}
|
||||
|
||||
platforms: [esp8266]
|
||||
|
||||
arch: esp8266
|
||||
|
||||
filesystem:
|
||||
- fs
|
||||
|
||||
libs:
|
||||
- origin: https://github.com/mongoose-os-libs/ca-bundle
|
||||
- origin: https://github.com/mongoose-os-libs/i2c
|
||||
- origin: https://github.com/mongoose-os-libs/http-server
|
||||
- origin: https://github.com/mongoose-os-libs/ota-http-server
|
||||
- origin: https://github.com/mongoose-os-libs/mqtt
|
||||
- origin: https://github.com/mongoose-os-libs/rpc-service-config
|
||||
- origin: https://github.com/mongoose-os-libs/rpc-service-fs
|
||||
- origin: https://github.com/mongoose-os-libs/rpc-uart
|
||||
# - origin: https://github.com/mongoose-os-libs/rpc-uart
|
||||
- origin: https://github.com/mongoose-os-libs/rpc-mqtt
|
||||
- origin: https://github.com/mongoose-os-libs/wifi
|
||||
# - origin: https://github.com/mongoose-os-libs/mjs
|
||||
|
||||
|
||||
cdefs:
|
||||
MGOS_ENABLE_WEB_CONFIG: 1
|
||||
MGOS_ENABLE_FILE_UPLOAD: 1
|
||||
MGOS_ENABLE_TUNNEL: 0
|
||||
|
||||
config_schema:
|
||||
- ["http.enable", true]
|
||||
# - ["http.document_root", "/"]
|
||||
# - ["http.hidden_files", "s_*"]
|
||||
# - ["http.auth_file", "s_pass"]
|
||||
- ["wifi.ap.enable", true]
|
||||
- ["wifi.ap.ssid", "SONOFF_??????"]
|
||||
- ["wifi.ap.pass", "MySonoff"]
|
||||
# - ["wifi.sta.enable", false]
|
||||
- ["sonoff", "o", {title: "Sonoff specific parameters"}]
|
||||
- ["sonoff.switch_status_pub_topic", "s", "sonoff/??????/switch", {title: "Topic to publish switch status, ?????? is the device ID of this device"}]
|
||||
- ["sonoff.command_sub_topic", "s", "sonoff/??????/command", {title: "Topic to subscribe to receive commands for this device"}]
|
||||
|
||||
build_vars:
|
||||
# sonoff basic has 1MBytes flash only
|
||||
FLASH_SIZE: 1048576
|
||||
|
||||
tags:
|
||||
- c
|
||||
|
||||
Reference in New Issue
Block a user