2018-12-04 18:11:50 +00:00
|
|
|
package humidity
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
2019-06-23 19:33:45 +00:00
|
|
|
var compression bool
|
2019-06-16 11:00:50 +00:00
|
|
|
var configFile string
|
2019-06-23 19:33:45 +00:00
|
|
|
var round float64
|
2018-12-04 18:11:50 +00:00
|
|
|
|
|
|
|
var humidityCmd = &cobra.Command{
|
|
|
|
Use: "humidity",
|
|
|
|
Short: "Read humidity from sensor",
|
|
|
|
}
|
|
|
|
|
|
|
|
// Execute a
|
2019-06-16 11:00:50 +00:00
|
|
|
func InitCmd(cmd *cobra.Command, cnfFile string) {
|
|
|
|
configFile = cnfFile
|
2018-12-04 18:11:50 +00:00
|
|
|
|
|
|
|
cmd.AddCommand(humidityCmd)
|
|
|
|
|
|
|
|
}
|