Author Topic: VC Programming help: using conditional logic to get custom weather feedback  (Read 3487 times)

0 Members and 1 Guest are viewing this topic.

ddl

  • Sr. Member
  • ****
  • Posts: 118
  • Karma: 0
    • View Profile
I would like vc to respond and say something to me based on certain conditions.  For example:  I am looking for vc to tell me "that its really cold outside and i should grab a heavy coat to stay warm".  I understand how to format the text to speech part but not sure how to write the "if then" logic.  Here is what I think I need to program.

If... the current temperature is below 32 degrees fahrenheit
Then... tts "Man its freezin out there! You should grab a heavy coat to stay warm"

I would like the command to be triggered when the pc wakes in the morning.

Any help with the actions and logic would be appreciated.

d
« Last Edit: November 21, 2013, 05:02:47 PM by nime5ter »

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2009
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
See the thread "weather depending goodbye": http://voxcommando.com/forum/index.php?topic=776.0

It's a good idea to read the whole thread. Several examples are provided. See especially the WUnderground commands at the end of the thread.

Other forum posts discuss how to trigger a command using an event. A search on the forum or Google search should retrieve them. There are also tutorial videos on how to use events in VoxCommando, as well as information on the wiki.
« Last Edit: November 21, 2013, 05:03:11 PM by nime5ter »
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)

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2319
  • Karma: 47
    • View Profile
Hi ddl, this is what you can easy figured out by your self ;)
Please take a look here http://voxcommando.com/mediawiki/index.php?title=Logic_Block, this show you how the "logic block" works and explain you the parameter (A<B, A==B, AcontainsB). If you know how you can scrape your outside temperatur from a sensor or VC weather plugin (you will find some examples here in the forum) it is really easy to do.  :bignod

If you don't figured out how you can do this, let us know to show you the way  ;)

@nime5ter: Ups, you are faster  ::wave
« Last Edit: November 21, 2013, 05:03:30 PM by nime5ter »
***********  get excited and make things  **********