Crates.io | dan |
lib.rs | dan |
version | 0.1.1 |
source | src |
created_at | 2022-07-21 22:50:26.3102 |
updated_at | 2022-07-22 16:28:49.60863 |
description | Dan is a home automation programming langauge |
homepage | https://github.com/nathanielc/dan |
repository | https://github.com/nathanielc/dan |
max_upload_size | |
id | 629897 |
size | 96,216 |
Dan is a home automation programming language. The langauge has native support for working with MQTT.
Lock all the doors at 10PM each night.
scene night {
print "starting night scene"
set zwave/Front/DoorLock/98/0/targetMode/set {value: 255}
set zwave/Garage/DoorLock/98/0/targetMode/set {value: 255}
set zwave/Kitchen/DoorLock/98/0/targetMode/set {value: 255}
}
at 10:00PM start night
Install the dan binary using cargo:
$ cargo install dan
Place the above example in a directory ./dan.d
and invoke dan:
$ dan --mqtt-url mqtt://localhost --dir ./dan.d