8 Star 23 Fork 5

Walkline / Remote WOL MicroPython

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
config.py 1.14 KB
一键复制 编辑 原始数据 按行查看 历史
"""
The MIT License (MIT)
Copyright © 2021 Walkline Wang (https://walkline.wang)
https://gitee.com/walkline/remote-wol-micropython
"""
from utils.wifihandler import WifiHandler
class Config(object):
"""
硬件配置文件
"""
VERSION_0 = "Version0"
VERSION_1 = "Version1"
HARDWARE_VERSION = VERSION_0
HARDWARE_NAME = "Remote WOL v0"
RESET_BUTTON = 0 # GPIO0 `BOOT Button`
BUTTON_PRESS_TIMEOUT = 5 * 1000 # Button long press timeout
INDICATE_LED = 2
# Version1 Settings
DS18B20_DATALINE = 26 # GPIO26
DATA_TIMER_PERIOD = 5 * 60 * 1000 # update temperature data period
LOG_FILE_LIMIT = 200 * 1024
"""
# Internet 测试文件设置
"""
# 二选一,或者自己指定
INTERNET_TESTING_URL = "http://walkline.wang/success.html"
# INTERNET_TESTING_URL = "https://gitee.com/walkline/WeatherStation/raw/master/success.html"
"""
# WebSocket 设置
"""
WEBSOCKET_PATH = "/control"
"""
# AP 热点设置
"""
AP_SSID_PREFIX = "wol_"
AP_SSID = "{}{}".format(AP_SSID_PREFIX, WifiHandler.get_mac_address())
AP_AUTHMODE = 0
AP_HOST = "192.168.66.1"
AP_PORT = 80
AP_ROOTPATH = "/web"
AP_IFCONFIG = (AP_HOST, "255.255.255.0", AP_HOST, AP_HOST)
Python
1
https://gitee.com/walkline/remote-wol-micropython.git
git@gitee.com:walkline/remote-wol-micropython.git
walkline
remote-wol-micropython
Remote WOL MicroPython
master

搜索帮助