@@ -1151,6 +1151,12 @@ static void parseOption(FFinstance* instance, FFdata* data, const char* key, con
11511151 optionParseString (key , value , & instance -> config .publicIP .outputFormat );
11521152 else if (strcasecmp (key , "--public-ip-error" ) == 0 )
11531153 optionParseString (key , value , & instance -> config .publicIP .errorFormat );
1154+ else if (strcasecmp (key , "--weather-key" ) == 0 )
1155+ optionParseString (key , value , & instance -> config .weather .key );
1156+ else if (strcasecmp (key , "--weather-format" ) == 0 )
1157+ optionParseString (key , value , & instance -> config .weather .outputFormat );
1158+ else if (strcasecmp (key , "--weather-error" ) == 0 )
1159+ optionParseString (key , value , & instance -> config .weather .errorFormat );
11541160 else if (strcasecmp (key , "--player-key" ) == 0 )
11551161 optionParseString (key , value , & instance -> config .player .key );
11561162 else if (strcasecmp (key , "--player-format" ) == 0 )
@@ -1295,6 +1301,10 @@ static void parseOption(FFinstance* instance, FFdata* data, const char* key, con
12951301 optionParseString (key , value , & instance -> config .publicIpUrl );
12961302 else if (strcasecmp (key , "--public-ip-timeout" ) == 0 )
12971303 instance -> config .publicIpTimeout = optionParseUInt32 (key , value );
1304+ else if (strcasecmp (key , "--weather-output-format" ) == 0 )
1305+ optionParseString (key , value , & instance -> config .weatherOutputFormat );
1306+ else if (strcasecmp (key , "--weather-timeout" ) == 0 )
1307+ instance -> config .weatherTimeout = optionParseUInt32 (key , value );
12981308 else if (strcasecmp (key , "--gl" ) == 0 )
12991309 {
13001310 optionParseEnum (key , value , & instance -> config .glType ,
@@ -1430,6 +1440,8 @@ static void parseStructureCommand(FFinstance* instance, FFdata* data, const char
14301440 ffPrintLocalIp (instance );
14311441 else if (strcasecmp (line , "publicip" ) == 0 )
14321442 ffPrintPublicIp (instance );
1443+ else if (strcasecmp (line , "weather" ) == 0 )
1444+ ffPrintWeather (instance );
14331445 else if (strcasecmp (line , "player" ) == 0 )
14341446 ffPrintPlayer (instance );
14351447 else if (strcasecmp (line , "media" ) == 0 || strcasecmp (line , "song" ) == 0 )
0 commit comments