diff --git a/mesh_bot.py b/mesh_bot.py index ac2fb4f..ceecb4c 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -1145,7 +1145,7 @@ def handle_mwx(message_from_id, deviceID, cmd): return my_settings.NO_ALERTS return get_nws_marine(zone=myCoastalZone, days=coastalForecastDays) -def handle_wxc(message_from_id, deviceID, cmd, report_days=None, vox=False): +def handle_wxc(message_from_id, deviceID, cmd, days=None, vox=False): # Weather from NOAA or Open-Meteo location = get_node_location(message_from_id, deviceID) if my_settings.use_meteo_wxApi and not "wxc" in cmd and not use_metric: @@ -1156,10 +1156,10 @@ def handle_wxc(message_from_id, deviceID, cmd, report_days=None, vox=False): weather = get_wx_meteo(str(location[0]), str(location[1]), 1) elif not my_settings.use_meteo_wxApi and "wxc" in cmd or my_settings.use_metric: #logger.debug("System: Bot Returning NOAA API for weather metric") - weather = get_NOAAweather(str(location[0]), str(location[1]), 1, report_days=report_days) + weather = get_NOAAweather(str(location[0]), str(location[1]), 1, report_days=days) else: #logger.debug("System: Bot Returning NOAA API for weather imperial") - weather = get_NOAAweather(str(location[0]), str(location[1]), report_days=report_days) + weather = get_NOAAweather(str(location[0]), str(location[1]), report_days=days) return weather def handle_emergency_alerts(message, message_from_id, deviceID):