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
This commit is contained in:
		@@ -9,7 +9,7 @@ import (
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// GetSensorsByTemperatures returns commulated list of sensors by temperature values
 | 
			
		||||
func GetSensorsByTemperatures(temperatures []*types.Temperature, cnf *config.FluckyConfig) []*types.Sensor {
 | 
			
		||||
func GetSensorsByTemperatures(temperatures []*types.Temperature, cnf *config.Configuration) []*types.Sensor {
 | 
			
		||||
	sensors := []*types.Sensor{}
 | 
			
		||||
	for _, temperature := range temperatures {
 | 
			
		||||
		duplicated := false
 | 
			
		||||
@@ -66,7 +66,7 @@ func GetTemperaturesBetweenTimeRange(from time.Time, till *time.Time, temperatur
 | 
			
		||||
 | 
			
		||||
// GetTemperaturesBySensors returns a list of temperatures given by the sensor id.
 | 
			
		||||
// If the sensor name, wire-id or id can not found in configured sensors, it would be skiped!
 | 
			
		||||
func GetTemperaturesBySensors(sensorNamesOrIDs []string, temperatures []*types.Temperature, cnf *config.FluckyConfig) []*types.Temperature {
 | 
			
		||||
func GetTemperaturesBySensors(sensorNamesOrIDs []string, temperatures []*types.Temperature, cnf *config.Configuration) []*types.Temperature {
 | 
			
		||||
	cachedSensors := []*types.Sensor{}
 | 
			
		||||
	cachedTemperatures := []*types.Temperature{}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user