waterplz

package module
v0.0.0-...-018d884 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2024 License: MIT Imports: 10 Imported by: 0

README

WaterPlz

Why

为 iOS 的快捷指令提供简易的 API 来打开西湖大学的寝室热水。另外24小时监控热水系统是否正常工作。

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	LogFileName string
	Debug       bool

	Watchdog    Watchdog
	WeComBotKey string
	// contains filtered or unexported fields
}

func LoadConfig

func LoadConfig() *Config

func (*Config) Save

func (c *Config) Save()

type Watchdog

type Watchdog struct {
	Username     string
	Password     string
	ProjectId    int
	LoopInterval float64
	DeviceMac    string
	// contains filtered or unexported fields
}

func (*Watchdog) Start

func (w *Watchdog) Start(bot *notification.WeComBot)

Directories

Path Synopsis
cmd
main command
playground command