hi
can someone please verify that the weather command is working in vc version 0.984, thank you. I have checked the ports and also disabled all the firewalls and still no luck getting weather information working. All other version of VC are working fine for weather.
works fine here. Did you update from an older version? Maybe you need to clean your dlls. Delete all your dll files and then extract 0984 on top.
otherwise, let me know more about what is actually happening, send a log etc.
QuoteDid you update from an older version? Maybe you need to clean your dlls. Delete all your dll files and then extract 0984 on top.
i extracted it to its own unique folder.
Quotelet me know more about what is actually happening, send a log etc.
i'll send a log soon, thanks.
https://dl.dropbox.com/u/514879/video/wunder.mp4
Quotehttps://dl.dropbox.com/u/514879/video/wunder.mp4
Thanks for the video.
this is the command i am using, unfortunately doesnt work after version 0.980.
<?xml version="1.0" encoding="utf-16"?>
<command id="296" name="Weather Manchester" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>Weather.TWN.1</cmdType>
<cmdString>ukxx0092</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>TTS.Speak</cmdType>
<cmdString>{lastresult}</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<phrase>whats,what's,what is</phrase>
<phrase>the Weather like in manchester</phrase>
<event>Hali.IR.0C0000093A00000F</event>
</command>[attachment=1]
use the weather underground plugin.
Sorry, yes, I pulled that old crappy weather command. I did not even think anyone was still using it.
the wunder plugin is about 1 million times better, I think.
this will get you started:
http://www.youtube.com/watch?v=UjYF36Mg8KU
I totally understand now, why it doesnt work. Thanks for your help.
If you really need it I can probably put the old command back in to 0.985, but I think it's much better to use wunderground.
QuoteIf you really need it I can probably put the old command back in to 0.985, but I think it's much better to use wunderground.
i will give wunderground a try first.
finally got weather working in vc 0.984 using the wunderground plugin. (but i don't like it)
i do prefer the old method for obtaining weather information, its much simpler.
Would it be possible to bring it back in next version of VC ?
It's really not that complicated, and it is so much more powerful. I think you are just being stubborn and resisting change. But I can probably find the old code and put it back in. It's actually easier to set up because by default it figures out your location from your ip address.
then you only need to paste this command in:
<?xml version="1.0" encoding="utf-16"?>
<command id="536" name="wunderground simple" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>WUnder.GetCurrent</cmdType>
<cmdString />
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>OSD.ShowText</cmdType>
<cmdString>{LastResult}</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
</command>
so two steps,
1) enable the plugin
2) paste the command into your tree.
How is that complicated?
I've got the computer telling me three different forecasts depending on whether I say "weather today", "weather tomorrow" or "weather forecast" (gives me highs for the week), using the current weather, option '0' and option '3' in the standard Weather Underground plugin in Voxcommando. I'd like to take out the portions of the highlighted parts of the forecast for the first two types of forecasts (i.e. today's and tomorrows) in the attached. Can you please post what the code should look like so I can cut and paste them into the plugin. Thanks.
Quote from: Snodric on April 28, 2013, 11:45:26 PM
I've got the computer telling me three different forecasts depending on whether I say "weather today", "weather tomorrow" or "weather forecast" (gives me highs for the week), using the current weather, option '0' and option '3' in the standard Weather Underground plugin in Voxcommando. I'd like to take out the portions of the highlighted parts of the forecast for the first two types of forecasts (i.e. today's and tomorrows) in the attached. Can you please post what the code should look like so I can cut and paste them into the plugin. Thanks.
Hi Snodric, the first pictures shows you a example how you can replace text in the plugin. The second picture shows you how you can create variable according to your needs.
I hope that is what you need ;)
Kalle
Thanks Kalle. I had no problem making the change to replace the 'C' with 'Degrees'.
However, I'm really struggling with the other changes. I don't have any (significant) experience 'coding' and have tried putting the variables into line 2 (I wanted to leave the ones I'm using ('Current Weather Format', '0' and '3') but without success. The problem is that I don't have experience with the use of the 'curly' brackets, where to put commas and the meaning of 'C.' or 'D0' etc.
If you do one of the two lines that I've requested, I'm sure that I could figure out the other one!
Also, it would be REALLY useful if there was a table in the Forum that had the 'Conditions', 'Forecast' and '10 Day DATA' that showed :
1. the variable as it is set out in the drag and drop window
2. the actual code as it then appears in the box once you drag it into one of the 4 options
3. a description of the variable as to what it does
4. an example of the variable in a string in one of the options
5. the actual result of the variable (i.e. what comes out when you press 'test'
Hi Snodric,
Please watch the whole video tutorial and then post back if you still have any questions. This is all explained in the video as far as I know. You can probably skip the first 6 minutes or so if you've already got the plugin working for your area.
http://www.youtube.com/watch?v=UjYF36Mg8KU
You don't have to do any "coding" you just need to click "pick variables" and then drag variables into your format fields and change the # to the number for the time period you want.
Here is something along the lines of what you want for Tomorrow's weather:
Weather for {D1.weekday}, {D1.conditions}. High of {D1.high} degrees. Chance of rain: {D1.pop} %
But it is not possible to get the detailed variables for tomorrow night. Only for tomorrow. That is just how Wunderground does it.
I put in the code you suggested but it seems to 'mash' the results together. I've attached a screen print of the code in Option '0' and the result displayed when I click on 'test'
Quote from: Snodric on April 29, 2013, 03:20:36 PM
I put in the code you suggested but it seems to 'mash' the results together. I've attached a screen print of the code in Option '0' and the result displayed when I click on 'test'
Ok, you can delete the replace "C" with "degress".
It's just replacing every occurrence of C with degress, which you don't want.
In this case, because you are creating a custom response you don't need to do any replacing, but if you did still want to replace C for other formats, it would be better to replace
C.
with
Degrees.
in other words, include the period.
Thanks. I stopped replacing the 'c' with 'degrees' and simply put the word 'degrees' into the code wherever I wanted the computer to say 'degrees' and that works perfectly. A couple of follow-up questions, if I may ;D
What does the period (".") represent when it appears OUTSIDE of the curly brackets?
How do you get the computer to pause (I'm having it do tts) between phrases such as follows :
Here's my code for today's weather: The current temperature is {C.temp_c} degrees The forecast for today is a high of {D0.high} and {D0.conditions} with a low tonight of {D1.low}
The output is : The current temperature is 2 degrees the forecast for today is a high of 9 and mostly cloudy with a low tonight of -5
In other words, what can I add to the above code to have it pause after the word 'degrees'?
Quote from: Snodric on April 29, 2013, 04:31:40 PM
What does the period (".") represent when it appears OUTSIDE of the curly brackets?
It represents a period, as in the end of a sentence.
Quote from: Snodric on April 29, 2013, 04:31:40 PM
How do you get the computer to pause (I'm having it do tts)
In other words, what can I add to the above code to have it pause after the word 'degrees'?
TTS will pause when it encounters a comma.
edit: it may vary a bit from one TTS engine (voice) to another but it will pause for various punctuation such as
, . ! : ; and the duration of the pause may vary for each, but comma is a reliable way to pause for most TTS engines.
By the way, I think that:
{D#.low}
Is just the overall low for a particular day, not for that evening, so it might be the temperature in the morning if that is colder than the temp at night.
Of course I could be completely wrong.
Thanks! That's awesome. That fixed it and helped me make it sound nice! Here's my code for today's weather and the result :
Code : The current temperature is {C.temp_c} degrees and {C.weather}. The forecast for today is a high of {D0.high} and {D0.conditions}, with a low tonight of {D1.low}
Result : The current temperature is 2 degrees and Light Snow. The forecast for today is a high of 9 and Mostly Cloudy, with a low tonight of -5
And here's my code for the weeks' forecast :
Code : Forecast for the week is a high of {D0.high} and {D0.conditions} today. {D1.weekday} {D1.high} and {D1.conditions}, {D2.weekday} {D2.high} and {D2.conditions}, {D3.weekday} {D3.high} and {D3.conditions}, {D4.weekday} {D4.high} and {D4.conditions}.
Result : Forecast for the week is a high of 9 and Mostly Cloudy today. Tuesday 3 and Mostly Cloudy, Wednesday 10 and Partly Cloudy, Thursday 16 and Mostly Cloudy, Friday 13 and Chance of Rain.
I assumed that the daily low temperatures start with today's low which would use a '0' for the # in [D#.low} and that tomorrow's low temperature would be {D1.low}
This would be consistent (I think) with the other numbering for daily numbers as they start at '0' for today and '1' for tomorrow and so on, but I'm not sure.
Quote from: Snodric on April 29, 2013, 04:53:58 PM
I assumed that the daily low temperatures start with today's low which would use a '0' for the # in [D#.low} and that tomorrow's low temperature would be {D1.low}
This would be consistent (I think) with the other numbering for daily numbers as they start at '0' for today and '1' for tomorrow and so on, but I'm not sure.
That is correct. I'm just pointing out that
today's low and
tonight's low are not necessarily the same thing.
for the super weather geeks out there, I'm talking about this:
https://pantherfile.uwm.edu/kahl/www/Research/Kahl&Horwitz2003.pdf
but I don't know which convention the WeatherUnderground follows.
Hi James, since I started my quest to get my private pilots license, I have been using Nav Canada for all my weather ( http://www.flightplanning.navcanada.ca/cgi-bin/CreePage.pl?Langue=anglais&NoSession=NS_Inconnu&Page=forecast-observation&TypeDoc=html )
Just learning the codes they use is an adventure onto its own. I have gain a great appreciation for weather forecasting. Your plugin works perfectly for me and I have been using it as a daily overview and then Navcanada for everything else.
I am still just learning but it's been a fun ride so far.