News:

There is a soft-mute function which we use with the commands like "What song is this?" There is one for system volume, one for each of: MediaMonkey, XBMC, iTunes, MediaPortal.

Main Menu

Weather problem

Started by jamesst, July 29, 2014, 01:40:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jamesst

Hi,
Does anyone have problems with fcttext_metric string in wunder plugin.
It doesnt work for me, i get no response.

Thanks for your help.


nime5ter

Have you specified which day you want the data for?

That is, when you use that variable, there is a # placeholder. You should replace that with an actual number.

See: http://voxcommando.com/forum/index.php?topic=928.msg7716#msg7716
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

jitterjames

#2
Probably a good idea to watch the tutorial:


jamesst

Yes I have replaced it and it turns back nothing, it was working before vox 2 fine.
Anyway the fcttext works fine, but I need it in metric.

nime5ter

It's not a VC2 bug (nor would that really make sense).

I have tested the variable {T#.fcttext_metric} with different locations and numbers, and they all work.

The best thing would be for you to post the xml for the command you are using. Maybe we can help to identify the problem.

You can also test using different locations.
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

jamesst

Thank you for your help, it was location. Now is working fine when I changed the weather station to city airport.
It is strange that is wroking fine for non metric forcast at current location.

Thanks

nime5ter

It is strange that a European location would not return metric data, I agree, but it does seem to happen.

I notice that there is no metric forecast for Split, Croatia, for example. I sent a direct request using the Weather Underground website's API console (http://french.wunderground.com/weather/api/d/docs?d=resources/apigee-console), and the field for  "fcttext_metric" comes back empty. Here is part of the data:


{
 "response":  {
   "version": "0.1",
   "termsofService": "http://www.wunderground.com/weather/api/d/terms.html",
   "features":  {
     "forecast10day": 1
   }
 },
 "forecast":  {
   "txt_forecast":  {
     "date": "8:06 PM CEST",
     "forecastday":  [
        {
         "period": 0,
         "icon": "partlycloudy",
         "icon_url": "http://icons.wxug.com/i/c/k/partlycloudy.gif",
         "title": "Tuesday",
         "fcttext": "Partly cloudy. Lows overnight in the low 70s.",
         "fcttext_metric": "",
         "pop": "10"
       },
        {
         "period": 1,
         "icon": "nt_partlycloudy",
         "icon_url": "http://icons.wxug.com/i/c/k/nt_partlycloudy.gif",
         "title": "Tuesday Night",
         "fcttext": "Partly cloudy skies. Low 73F. Winds ESE at 15 to 25 mph.",
         "fcttext_metric": "",
         "pop": "10"
       },
        {
         "period": 2,
         "icon": "chancetstorms",
         "icon_url": "http://icons.wxug.com/i/c/k/chancetstorms.gif",
         "title": "Wednesday",
         "fcttext": "Partly cloudy early with thunderstorms becoming likely during the afternoon. High 77F. Winds SE at 20 to 30 mph. Chance of rain 100%.",
         "fcttext_metric": "",
         "pop": "100"
       },
       


This is the data that VC is accessing.

I'm glad you found another location that worked for you.
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)