kercre123 / wire-prod-pod

49 stars 9 forks source link

Weather check not working on openweathermap.org api #35

Closed ManicQuinn closed 1 year ago

ManicQuinn commented 1 year ago

Not sure why, but it isn't working for the simple "what is the weather today" check, however it does work if you imply a location, is Vector not able to understand the location I gave it? This is the error:

Feb 09 06:24:48 escapepod start.sh[14937]: Bot 1 Stream type: OPUS
Feb 09 06:24:48 escapepod start.sh[14937]: (Bot 1, Vosk) Processing...
Feb 09 06:24:53 escapepod start.sh[14937]: (Bot 1) End of speech detected.
Feb 09 06:24:53 escapepod start.sh[14937]: Bot 1 Transcribed text: what if the weather today
Feb 09 06:24:53 escapepod start.sh[14937]: Not a custom intent
Feb 09 06:24:53 escapepod start.sh[14937]: Partial match for intent intent_weather_extend (weather)
Feb 09 06:24:53 escapepod start.sh[14937]: Found robot settings jdoc for 00802330, using location and units from that
Feb 09 06:24:53 escapepod start.sh[14937]: Found bot config for 00802330
Feb 09 06:24:53 escapepod start.sh[14937]: Checking params for candidate intent intent_weather_extend
Feb 09 06:24:53 escapepod start.sh[14937]: No location parsed from speech
Feb 09 06:24:53 escapepod start.sh[14937]: Looking for forecast 0 hours from now...
Feb 09 06:24:53 escapepod start.sh[14937]: Weather API Enabled
Feb 09 06:24:53 escapepod start.sh[14937]: Weather units set to C
Feb 09 06:24:53 escapepod start.sh[14937]: Geo provided no response.
Feb 09 06:24:53 escapepod start.sh[14937]: Bot 1 Intent Sent: intent_weather_extend
Feb 09 06:24:53 escapepod start.sh[14937]: Bot 1 Parameters Sent: map[condition:undefined is_forecast:false local_datetime:test speakable_location_string:Asia/Singapore temperature:120 temperature_unit:C]
Feb 09 06:24:53 escapepod start.sh[14937]: Bot 1 request served.
kercre123 commented 1 year ago

It could be because the API doesn't understand the location or you have put in an incorrect API key. In the bot setup interface, could you try changing the bot location to just "Singapore" and try again?

ManicQuinn commented 1 year ago

It could be because the API doesn't understand the location or you have put in an incorrect API key. In the bot setup interface, could you try changing the bot location to just "Singapore" and try again?

I can't really try again as I have moved to wire-pod unfortunately, but it works fine on wire-pod with the settings I've set. I made sure to check the website itself if it had my location too, I'll close the issue since I can't help with it anymore ;w;