carp-dk / carp-dk/carp.sensing-flutter
weather probe not working when air quality is included
- Dominant language
- Dart
- Stars
- 84
- Forks
- 31
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 6
Description
Weather seems to work ok when I use all sensors excluding air quality. Once I add air quality I don't get anything anymore from weather.
code (with sampling every 10s. In real experiment the sampling will obviously be at a lower frequency).
```
AirQualityService airService =
AirQualityService(apiKey: APIAIR);
protocol.addConnectedDevice(airService);
protocol.addTriggeredTask(
IntervalTrigger(period: Duration(seconds: 10)),
BackgroundTask()
..addMeasure(Measure(type: ContextSamplingPackage.AIR_QUALITY)),
airService);
WeatherService weatherService =
WeatherService(apiKey: APIWEATHER);
protocol.addConnectedDevice(weatherService);
protocol.addTriggeredTask(
IntervalTrigger(period: Duration(seconds: 10)),
BackgroundTask()
..addMeasure(Measure(type: ContextSamplingPackage.WEATHER)),
weatherService);
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.