Sun, 10 Sep 2023 17:29:15 +0200
Version 0.4.3. Attempt to fix the sunlight overflow of the APDS9930 sensor in the private part of the esp-idf-lib. Removed some error checks from functions that always return OK. Store light sensor registers in the state record and report the values in the json result string.
# frozen_string_literal: true require "yaml" class PersonList # path to `persons.yml` def initialize(arg) @path = File.expand_path(arg) end attr_reader :path def load_file File.read(path) end def parse YAML.safe_load(load_file) end def metadata return @metadata if @metadata @metadata = parse end def all metadata end def lookup(name) metadata.select { |g| g["name"] == name } end end