PKGBUILD/cmd/temperature/temperature.go
Markus Pesch 5220eac16b
fix: breaking changes
changes:
- remove remote operations
- add function to write measured values into a channel
- add get humidity sensors from config
- add get temperature sensors from config
- remove FileLogger
- exclude some functions from pkf into internal
2019-06-13 22:15:48 +02:00

24 lines
407 B
Go

package temperature
import (
"fmt"
"github.com/spf13/cobra"
)
var cnfPath string
var temperatureCmd = &cobra.Command{
Use: "temperature",
Short: "Operate with temperature messures",
Example: fmt.Sprintf("flucky temperature read\nflucky temperature read outdoor"),
}
// Execute a
func InitCmd(cmd *cobra.Command, configPath string) {
cnfPath = configPath
cmd.AddCommand(temperatureCmd)
}