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
		
			
				
	
	
		
			29 lines
		
	
	
		
			497 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			497 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package temperature
 | 
						|
 | 
						|
import (
 | 
						|
	"fmt"
 | 
						|
 | 
						|
	"github.com/spf13/cobra"
 | 
						|
)
 | 
						|
 | 
						|
var listTemperatureCmd = &cobra.Command{
 | 
						|
	Use:     "list",
 | 
						|
	Short:   "print temperatures",
 | 
						|
	Example: fmt.Sprintf("flucky temperature logs"),
 | 
						|
	Run: func(cmd *cobra.Command, args []string) {
 | 
						|
 | 
						|
		// read configuration
 | 
						|
		// fc, err := config.Read(cnfPath)
 | 
						|
		// if err != nil {
 | 
						|
		// 	list.Fatalln(err)
 | 
						|
		// }
 | 
						|
 | 
						|
		//cli.PrintTemperatures(temperatures, fc, os.Stdout)
 | 
						|
 | 
						|
	},
 | 
						|
}
 | 
						|
 | 
						|
func init() {
 | 
						|
	temperatureCmd.AddCommand(listTemperatureCmd)
 | 
						|
}
 |