events

package
v0.0.0-...-c251b99 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BatteryLevel

func BatteryLevel(i map[string]any) map[string]any

Waits until battery is at certain level Arguments: - level: int - type: string ("lower"/"higher") Returns: - level: int - current battery level

func BatteryStatus

func BatteryStatus(i map[string]any) map[string]any

Waits until battery is (dis)charging/full Arguments: - status: string ("Charging"/"Discharging"/"Full") Returns: - status: string - curent battery status ("Charging"/"Discharging"/"Full")

func Bluetooth

func Bluetooth(i map[string]any) map[string]any

Waits until bluetooth state changes Arguments: - status: string ("enabled"/"disabled") Returns: - status: string ("enabled"/"disabled")

func FileChanged

func FileChanged(i map[string]any) map[string]any

Waits until a file is changed. Arguments: - file: string Returns: - file: string

func FileCreated

func FileCreated(i map[string]any) map[string]any

Waits until a file is created in a certain folder. Arguments: - folder: string Returns: - folder: string

func Network

func Network(i map[string]any) map[string]any

Waits until certain network is connected/disconnected Arguments: - status: string ("enabled"/"disabled") - network: string Returns: - status: string ("enabled"/"disabled") - network: string

func Time

func Time(i map[string]any) map[string]any

Waits until a certain time. Arguments: - time: string ("HH:MM") - weekdays: string ("1111100") - starting with Mo, 1 means run, 0 not run Returns: - time: string - current time (HH:MM)

func Wifi

func Wifi(i map[string]any) map[string]any

Waits until wifi state changes Arguments: - status: string ("enabled"/"disabled") Returns: - status: string ("enabled"/"disabled")

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL