Author Topic: Weather problem  (Read 2406 times)

0 Members and 1 Guest are viewing this topic.

jamesst

  • $upporter
  • Jr. Member
  • *****
  • Posts: 25
  • Karma: 0
    • View Profile
Weather problem
« on: July 29, 2014, 01:40:43 PM »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Weather problem
« Reply #1 on: July 29, 2014, 01:54:15 PM »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Weather problem
« Reply #2 on: July 29, 2014, 02:45:52 PM »
Probably a good idea to watch the tutorial:

« Last Edit: July 29, 2014, 02:49:10 PM by jitterjames »

jamesst

  • $upporter
  • Jr. Member
  • *****
  • Posts: 25
  • Karma: 0
    • View Profile
Re: Weather problem
« Reply #3 on: July 29, 2014, 03:20:56 PM »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Weather problem
« Reply #4 on: July 29, 2014, 03:27:40 PM »
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

  • $upporter
  • Jr. Member
  • *****
  • Posts: 25
  • Karma: 0
    • View Profile
Re: Weather problem
« Reply #5 on: July 29, 2014, 04:26:05 PM »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Weather problem
« Reply #6 on: July 29, 2014, 05:09:28 PM »
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:

Code: [Select]
{
  "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)