Skip to content

Latest commit

 

History

History
15 lines (14 loc) · 762 Bytes

DEV_WEATHER.md

File metadata and controls

15 lines (14 loc) · 762 Bytes

Developing New Weather Provider Plugins

  1. Inherit Weather class and Override
	Weather::ReturnVals GetVals(void) const override;
	Weather::ReturnVals GetVals(const Weather::Settings & settings) const override;
  1. Add commented out #define WEATHER_YOUR_PROVIDER line to settings.h
  2. Add #elif defined(WEATHER_YOUR_PROVIDER) blocks to the following places:
  • core.cpp includes
  • core.cpp static runStateClass::DurationAdjustments AdjustDurations(Schedule * sched) function
  • web.cpp includes
  • web.cpp static void JSONSettings(const KVPairs & key_value_pairs, FILE * stream_file) function
  • web.cpp static void JSONwCheck(const KVPairs & key_value_pairs, FILE * stream_file) function
  1. Add any new files to CMakeLists.txt and Makefile