Mon, 03 Apr 2023 16:07:34 +0200
In the esp-idf-lib the adps9930 driver uses a device descriptor structure instead of just i2c_dev_t. Fixed a linking issue. Added APDS9930 task. Added getLightValues function. Added wifi quality value to the MQTT payload. The payload is complete and will be published.
# frozen_string_literal: true require "yaml" require_relative "group" class GroupList # path to `groups.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.map { |g| Group.new(g) } end def lookup(name) metadata.select { |g| g["name"] == name }.map { |g| Group.new(g) } end end