!QhvgabMQzwEQeWehhZ:lossy.network

NixOS Home Automation

511 Members
Declarative Home Automation and other Sidequests | https://wiki.nixos.org/wiki/Home_Assistant133 Servers

Load older messages


SenderMessageTime
19 Dec 2024
@hexa:lossy.network@hexa:lossy.networkand you only get the json subset in nix23:33:40
@ghostbuster91:matrix.orgghostbuster91I don't need my generated json/yaml to be compact or readable 23:34:05
@ghostbuster91:matrix.orgghostbuster91I don't care about low-level assembly format23:34:16
@ghostbuster91:matrix.orgghostbuster91(apart from debugging it :D )23:34:41
20 Dec 2024
@spacekitteh:matrix.orgspacekitteh 'cus yaml sucks 02:24:39
@spacekitteh:matrix.orgspacekittehxml all the way baybee02:24:53
@hexa:lossy.network@hexa:lossy.networkno.02:24:57
@hexa:lossy.network@hexa:lossy.networkyaml before 1.2 sucks02:25:12
@hexa:lossy.network@hexa:lossy.networkbasically yaml 1.1 sucks02:25:16
@spacekitteh:matrix.orgspacekittehdoes this room support polls02:25:34
@hexa:lossy.network@hexa:lossy.networkso in python use https://github.com/perlpunk/pyyaml-core or ruamel.yaml02:25:45
@spacekitteh:matrix.orgspacekittehyes yes it does, good02:25:51
@hexa:lossy.network@hexa:lossy.networkit does02:25:53
@spacekitteh:matrix.orgspacekittehcan i make a poll about how to implement something in the thread border router module i'm working on?02:26:26
@hexa:lossy.network@hexa:lossy.networkwhy does it neeed to be a poll?02:26:49
@hexa:lossy.network@hexa:lossy.networkdo you want people to just click an answer without any particular reasoning?02:27:08
@spacekitteh:matrix.orgspacekitteh'cus there are several ways i can implement some settings, and i want to see which will be the most convenient for people02:27:22
@spacekitteh:matrix.orgspacekittehbasically, do people want to supply a binary blob for their configuration file, or would they prefer setting a whole bunch of options which then is used to make a script which runs after service startup; if the former, would they want the configuration file to be mutable or not02:30:02
@spacekitteh:matrix.orgspacekittehi get why it's a binary blob, as it's usually for storage on flash/EEPROMs, and posix is a special case, but damn it's annoying02:32:21
@hexa:lossy.network@hexa:lossy.networkwhat is the binary blob?02:32:52
@spacekitteh:matrix.orgspacekittehbasically a bunch of TLVs describing the network configuration02:33:38
@hexa:lossy.network@hexa:lossy.networkso it sounds likely that the user wants to configure that02:34:28
@hexa:lossy.network@hexa:lossy.networkin an easy way02:34:33
@spacekitteh:matrix.orgspacekitteh yeah. but there is basically no easy way other than using the daemon's CLI to set stuff, and then grabbing the file02:35:44
@spacekitteh:matrix.orgspacekittehhowever, it /is/ persisted02:36:30
@spacekitteh:matrix.orgspacekittehbasically, most of these settings need to be set/initialised one way or another: https://github.com/openthread/openthread/blob/main/src/cli/README_DATASET.md02:39:03
@spacekitteh:matrix.orgspacekittehand a few others should be customisable02:40:01
@spacekitteh:matrix.orgspacekittehthe more i'm thinking about this the more i think i'll go the script way, and tack on an extraConfigScript option to run after the necessary ones02:42:15
@spacekitteh:matrix.orgspacekittehthat way, the entire config file doesn't have to be treated as a secret, rather than just the PSK 02:43:34
@hexa:lossy.network@hexa:lossy.networkprobably for the best02:44:53

Show newer messages


Back to Room ListRoom Version: 6