Documentation
¶
Index ¶
- Constants
- func Execute() error
- func MinimumArraySize(count int, args []string) []string
- type CmdApi
- func (c *CmdApi) ApiLogin(force bool) error
- func (c *CmdApi) AttachCommand(cmd *cobra.Command) *cobra.Command
- func (c *CmdApi) AttachFlags(cmd *cobra.Command, viper *viper.Viper)
- func (c *CmdApi) CmdApi(cmd *cobra.Command, args []string)
- func (c *CmdApi) CmdApiGet(_ *cobra.Command, args []string) error
- func (c *CmdApi) CmdApiList(cmd *cobra.Command, args []string)
- func (c *CmdApi) CmdApiPut(_ *cobra.Command, _ []string)
- type CmdData
- type CmdDefault
- type CmdHa
- type CmdInfo
- type CmdModbus
- func (c *CmdModbus) AttachCommand(cmd *cobra.Command) *cobra.Command
- func (c *CmdModbus) AttachFlags(cmd *cobra.Command, viper *viper.Viper)
- func (c *CmdModbus) CmdModbus(cmd *cobra.Command, _ []string) error
- func (c *CmdModbus) CmdModbusGet(_ *cobra.Command, args []string) error
- func (c *CmdModbus) CmdModbusScan(_ *cobra.Command, args []string) error
- func (c *CmdModbus) ModbusArgs(_ *cobra.Command, _ []string) error
- type CmdMqtt
- func (c *CmdMqtt) AttachCommand(cmd *cobra.Command) *cobra.Command
- func (c *CmdMqtt) AttachFlags(cmd *cobra.Command, viper *viper.Viper)
- func (c *CmdMqtt) CmdMqtt(cmd *cobra.Command, _ []string) error
- func (c *CmdMqtt) CmdMqttRun(_ *cobra.Command, _ []string) error
- func (c *CmdMqtt) CmdMqttSync(_ *cobra.Command, args []string) error
- func (c *CmdMqtt) Cron() error
- func (c *CmdMqtt) GetEndPoints() error
- func (c *CmdMqtt) GetFetchSchedule() string
- func (c *CmdMqtt) GetSleepDelay() string
- func (c *CmdMqtt) MqttArgs(_ *cobra.Command, _ []string) error
- func (c *CmdMqtt) Options() error
- func (c *CmdMqtt) Update(endpoint string, data api.DataMap, newDay bool) error
- func (c *CmdMqtt) UpdatePoint(entry *api.DataEntry) error
- type CmdShow
- func (c *CmdShow) AttachCommand(cmd *cobra.Command) *cobra.Command
- func (c *CmdShow) AttachDevice(cmd *cobra.Command) *cobra.Command
- func (c *CmdShow) AttachDeviceData(cmd *cobra.Command) *cobra.Command
- func (c *CmdShow) AttachDeviceGraph(cmd *cobra.Command) *cobra.Command
- func (c *CmdShow) AttachDeviceList(cmd *cobra.Command) *cobra.Command
- func (c *CmdShow) AttachDeviceModels(cmd *cobra.Command) *cobra.Command
- func (c *CmdShow) AttachDevicePoints(cmd *cobra.Command) *cobra.Command
- func (c *CmdShow) AttachDeviceSave(cmd *cobra.Command) *cobra.Command
- func (c *CmdShow) AttachMeta(cmd *cobra.Command) *cobra.Command
- func (c *CmdShow) AttachMetaMqtt(cmd *cobra.Command) *cobra.Command
- func (c *CmdShow) AttachMetaRealTime(cmd *cobra.Command) *cobra.Command
- func (c *CmdShow) AttachMetaUnitList(cmd *cobra.Command) *cobra.Command
- func (c *CmdShow) AttachPoint(cmd *cobra.Command) *cobra.Command
- func (c *CmdShow) AttachPointData(cmd *cobra.Command) *cobra.Command
- func (c *CmdShow) AttachPointDevice(cmd *cobra.Command) *cobra.Command
- func (c *CmdShow) AttachPointDeviceGraph(cmd *cobra.Command) *cobra.Command
- func (c *CmdShow) AttachPointDeviceSave(cmd *cobra.Command) *cobra.Command
- func (c *CmdShow) AttachPointDeviceTable(cmd *cobra.Command) *cobra.Command
- func (c *CmdShow) AttachPointGraph(cmd *cobra.Command) *cobra.Command
- func (c *CmdShow) AttachPointPs(cmd *cobra.Command) *cobra.Command
- func (c *CmdShow) AttachPointPsGraph(cmd *cobra.Command) *cobra.Command
- func (c *CmdShow) AttachPointPsSave(cmd *cobra.Command) *cobra.Command
- func (c *CmdShow) AttachPointPsTable(cmd *cobra.Command) *cobra.Command
- func (c *CmdShow) AttachPointSave(cmd *cobra.Command) *cobra.Command
- func (c *CmdShow) AttachPointScan(cmd *cobra.Command) *cobra.Command
- func (c *CmdShow) AttachPointTemplate(cmd *cobra.Command) *cobra.Command
- func (c *CmdShow) AttachPointTemplateGraph(cmd *cobra.Command) *cobra.Command
- func (c *CmdShow) AttachPointTemplateSave(cmd *cobra.Command) *cobra.Command
- func (c *CmdShow) AttachPointTemplateTable(cmd *cobra.Command) *cobra.Command
- func (c *CmdShow) AttachPs(cmd *cobra.Command) *cobra.Command
- func (c *CmdShow) AttachPsData(cmd *cobra.Command) *cobra.Command
- func (c *CmdShow) AttachPsDetail(cmd *cobra.Command) *cobra.Command
- func (c *CmdShow) AttachPsGraph(cmd *cobra.Command) *cobra.Command
- func (c *CmdShow) AttachPsIdList2(cmd *cobra.Command) *cobra.Command
- func (c *CmdShow) AttachPsList(cmd *cobra.Command) *cobra.Command
- func (c *CmdShow) AttachPsPoints(cmd *cobra.Command) *cobra.Command
- func (c *CmdShow) AttachPsSave(cmd *cobra.Command) *cobra.Command
- func (c *CmdShow) AttachPsTree(cmd *cobra.Command) *cobra.Command
- func (c *CmdShow) AttachTemplate(cmd *cobra.Command) *cobra.Command
- func (c *CmdShow) AttachTemplateData(cmd *cobra.Command) *cobra.Command
- func (c *CmdShow) AttachTemplateGraph(cmd *cobra.Command) *cobra.Command
- func (c *CmdShow) AttachTemplateList(cmd *cobra.Command) *cobra.Command
- func (c *CmdShow) AttachTemplatePoints(cmd *cobra.Command) *cobra.Command
- func (c *CmdShow) AttachTemplateSave(cmd *cobra.Command) *cobra.Command
- type Cmds
- type MqttEndPoint
- type MqttEndPoints
Constants ¶
View Source
const ( DefaultServiceName = "GoSungrow" DefaultServiceArea = "Roof" DefaultVendor = "MickMake" )
View Source
const ( OptionLogLevel = "loglevel" OptionFetchSchedule = "fetchschedule" OptionSleepDelay = "sleepdelay" OptionServiceState = "servicestate" )
View Source
const (
ArgsDateInterval = "[YYYYmmdd[HHMMSS] | .] [YYYYmmdd[HHMMSS] | .] [interval | .]"
)
View Source
const DefaultMqttFile = `` /* 305-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func MinimumArraySize ¶
Types ¶
type CmdApi ¶
type CmdDefault ¶
type CmdHa ¶
type CmdHa CmdDefault
type CmdModbus ¶
type CmdModbus struct { CmdDefault Username string Password string Host string Port string Client cmdModbus.Modbus // contains filtered or unexported fields }
func NewCmdModbus ¶
func (*CmdModbus) AttachCommand ¶
func (*CmdModbus) AttachFlags ¶
func (*CmdModbus) CmdModbusGet ¶
func (*CmdModbus) CmdModbusScan ¶
type CmdMqtt ¶
type CmdMqtt struct { CmdDefault // HASSIO MQTT Username string Password string Host string Port string Client *cmdHassio.Mqtt // contains filtered or unexported fields }
func NewCmdMqtt ¶
func (*CmdMqtt) GetEndPoints ¶
func (*CmdMqtt) GetFetchSchedule ¶
func (*CmdMqtt) GetSleepDelay ¶
type CmdShow ¶
type CmdShow CmdDefault
func NewCmdShow ¶
func NewCmdShow() *CmdShow
func (*CmdShow) AttachDeviceData ¶
func (*CmdShow) AttachDeviceGraph ¶
func (*CmdShow) AttachDeviceList ¶
func (*CmdShow) AttachDeviceModels ¶
func (*CmdShow) AttachDevicePoints ¶
func (*CmdShow) AttachDeviceSave ¶
func (*CmdShow) AttachMetaMqtt ¶
func (*CmdShow) AttachMetaRealTime ¶
func (*CmdShow) AttachMetaUnitList ¶
func (*CmdShow) AttachPointData ¶
func (*CmdShow) AttachPointDevice ¶
func (*CmdShow) AttachPointDeviceGraph ¶
func (*CmdShow) AttachPointDeviceSave ¶
func (*CmdShow) AttachPointDeviceTable ¶
func (*CmdShow) AttachPointGraph ¶
func (*CmdShow) AttachPointPsGraph ¶
func (*CmdShow) AttachPointPsSave ¶
func (*CmdShow) AttachPointPsTable ¶
func (*CmdShow) AttachPointSave ¶
func (*CmdShow) AttachPointScan ¶
func (*CmdShow) AttachPointTemplate ¶
func (*CmdShow) AttachPointTemplateGraph ¶
func (*CmdShow) AttachPointTemplateSave ¶
func (*CmdShow) AttachPointTemplateTable ¶
func (*CmdShow) AttachPsDetail ¶
func (*CmdShow) AttachPsIdList2 ¶
func (*CmdShow) AttachPsPoints ¶
func (*CmdShow) AttachTemplate ¶
func (*CmdShow) AttachTemplateData ¶
func (*CmdShow) AttachTemplateGraph ¶
func (*CmdShow) AttachTemplateList ¶
func (*CmdShow) AttachTemplatePoints ¶
type Cmds ¶
type MqttEndPoint ¶
type MqttEndPoints ¶
type MqttEndPoints map[string]MqttEndPoint
func (*MqttEndPoints) Names ¶
func (c *MqttEndPoints) Names() []string
Click to show internal directories.
Click to hide internal directories.