1 Star 13 Fork 4

风之羽 / 自动浇花

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
mos.yml 4.60 KB
一键复制 编辑 原始数据 按行查看 历史
风之羽 提交于 2017-12-02 16:38 . index.html add ds18b20选项
author: mongoose-os
description: An empty app that does nothing
version: 1.0
libs_version: ${mos.version}
modules_version: ${mos.version}
mongoose_os_version: ${mos.version}
# Optional. List of tags for online search.
tags:
- c
# List of files / directories with C sources. No slashes at the end of dir names.
sources:
- src
# List of dirs. Files from these dirs will be copied to the device filesystem
filesystem:
- fs
# Custom configuration entries, settable via "device configuration"
# Below is a custom firmware configuration example.
# Uncomment and modify according to your needs:
config_schema:
# mqtt
- ["mqtt.enable", true]
- ["mqtt.pub", "s", "/th", {title: "Publish temp and hum"}]
#- ["mqtt.sub", "s", "/rpc_cmd", {title: "Subscribe rpc_cmd"}]
- ["mqtt.server","m13.cloudmqtt.com:18957"]
- ["mqtt.user", "yusp"]
- ["mqtt.pass", "60240abc"]
# i2c
- ["i2c.enable", true]
# sntp
- ["sntp.retry_min", 30]
- ["sntp.retry_max", 60]
# wifi
- ["wifi.sta.enable", false]
- ["wifi.sta.ssid", "fengy09"]
- ["wifi.sta.pass", "01234567abc"]
- ["wifi.ap.enable", false]
#- ["wifi.sta.nameserver", "114.114.114.114"]
- ["sntp.server", "0.asia.pool.ntp.org"]
- ["debug.level", 2]
# dev
- ["dev", "o", {title: "device"}]
- ["dev.title", "s", "", {title: "title"}]
- ["dev.th", "s", "ds18b20", {title: "temp&hum sensor"}]
# r0
- ["r0", "o", {title: "relay_0"}]
- ["r0.idx", "i", 0, {title: "relay no."}]
- ["r0.enable", "b", false, {title: "enabled"}]
- ["r0.pulse", "b", true, {title: "always on"}]
- ["r0.on", "i", 10, {title: "level on"}]
- ["r0.off", "i", 10, {title: "level off"}]
- ["r0.title", "s", "relay 0", {title: "description"}]
- ["r0.priority", "i", 1, {title: "priority level"}]
- ["r0.schedule", "s", "{\"a0\":25200,\"a1\":1,\"b0\":28800,\"b1\":0,\"c0\":32400,\"c1\":0,\"d0\":36000,\"d1\":0,\"e0\":39600,\"e1\":0,\"f0\":43200,\"f1\":0}", {title: "schedule for relay"}]
# r1
- ["r1", "o", {title: "relay_0"}]
- ["r1.idx", "i", 1, {title: "relay no."}]
- ["r1.enable", "b", false, {title: "enabled"}]
- ["r1.pulse", "b", false, {title: "always on"}]
- ["r1.on", "i", 10, {title: "level on"}]
- ["r1.off", "i", 10, {title: "level off"}]
- ["r1.title", "s", "relay 1", {title: "description"}]
- ["r1.priority", "i", 1, {title: "priority level"}]
- ["r1.schedule", "s", "{\"a0\":25200,\"a1\":2,\"b0\":28800,\"b1\":0,\"c0\":32400,\"c1\":0,\"d0\":36000,\"d1\":0,\"e0\":39600,\"e1\":0,\"f0\":43200,\"f1\":0}", {title: "schedule for relay"}]
# r2
- ["r2", "o", {title: "relay_0"}]
- ["r2.idx", "i", 2, {title: "relay no."}]
- ["r2.enable", "b", false, {title: "enabled"}]
- ["r2.pulse", "b", false, {title: "always on"}]
- ["r2.on", "i", 10, {title: "level on"}]
- ["r2.off", "i", 10, {title: "level off"}]
- ["r2.title", "s", "relay 1", {title: "description"}]
- ["r2.priority", "i", 1, {title: "priority level"}]
- ["r2.schedule", "s", "{\"a0\":25200,\"a1\":3,\"b0\":28800,\"b1\":0,\"c0\":32400,\"c1\":0,\"d0\":36000,\"d1\":0,\"e0\":39600,\"e1\":0,\"f0\":43200,\"f1\":0}", {title: "schedule for relay"}]
# These settings get compiled into the C structure, and can be accessed
# These settings get compiled into the C structure, and can be accessed
# from the C code this way:
#
# printf("Hello from %s!\n", get_cfg()->device.id);
#
# Settings are cool: can be modified remotely without full firmware upgrade!
#
# To see all available compiled settings, buid the firmware and open
# build/gen/sys_config.c or build/gen/sys_config.h file.
#
# Also, in this config_schema section, you can override existing
# settings that has been created by other libraries. For example, debug log
# level is 2 by default. For this firmware we can override it to 3:
#
# List of libraries used by this app, in order of initialisation
# - origin: https://github.com/mongoose-os-libs/http-server
libs:
- 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/i2c
- origin: https://github.com/mongoose-os-libs/rpc-mqtt
- origin: https://github.com/mongoose-os-libs/rpc-common
- origin: https://github.com/mongoose-os-libs/rpc-loopback
- origin: https://github.com/mongoose-os-libs/rpc-uart
- origin: https://github.com/mongoose-os-libs/wifi
- origin: https://github.com/mongoose-os-libs/http-server
- origin: https://github.com/mongoose-os-libs/dns-sd
- origin: https://github.com/mongoose-os-libs/mqtt
- origin: https://github.com/mongoose-os-libs/onewire
# Used by the mos tool to catch mos binaries incompatible with this file format
manifest_version: 2017-05-18
C
1
https://gitee.com/maizhi/NodemcuChuanGanQi.git
git@gitee.com:maizhi/NodemcuChuanGanQi.git
maizhi
NodemcuChuanGanQi
自动浇花
dev

搜索帮助