class ShellyplugExporter::PlugClient

Overview

Handles HTTP communication with the Shelly plug device.

Defined in:

shellyplug_exporter/plug_client.cr

Constant Summary

SETTINGS_ENDPOINT = "/settings"
STATUS_ENDPOINT = "/status"

Constructors

Instance Method Summary

Constructor Detail

def self.new(config : Config) #

[View source]

Instance Method Detail

def fetch_settings : HTTP::Client::Response #

[View source]
def fetch_status : HTTP::Client::Response #

[View source]