more G-Labs products

Author Topic: Internal buzzer  (Read 1532 times)

April 08, 2014, 05:36:39 PM
Read 1532 times

duch

  • *
  • Information
  • Newbie
  • Posts: 20
Hello,

I would like to hear a brief beep (about 1 second) from the motherboard buzzer when the door is opened (door/Window sensor)

How to write the code to run ?

I suppose it's something like that
Code: [Select]
Beep (XX,XX) but i am not familiar with C#  ???

Could you help me ?

Thank you
« Last Edit: August 10, 2014, 06:28:18 PM by duch »

April 08, 2014, 07:19:55 PM
Reply #1

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
try

Code: [Select]
Console.Beep();

g.

April 08, 2014, 08:46:54 PM
Reply #2

duch

  • *
  • Information
  • Newbie
  • Posts: 20

August 10, 2014, 06:27:47 PM
Reply #3

duch

  • *
  • Information
  • Newbie
  • Posts: 20
Hello again,

For my young pupils, I would like to discover home automation without the need of writing code. They are 12 years old and not familiar with homegenie and they will be ... 30 in the classroom ...

So, I have bought door/window sensors and I would like them to create a program using the Wizard Script option. My goal is :
Quote
When the door is open, the motherboard buzzer is running (about 1 sec.)

For the condition, I want them to use the capture button (for example ZWave xx property DoorWindows Equals 255)
For the command I want them to choose a program target in the automation program list.

But how to create the program target without a trigger code ? Or what I have to write in the trigger code ? I've tried Return False, Return True but it doesn't work ...  :(

For the code to run, I wrote what Gene told me
Code: [Select]
Console.Beep(); , and it works fine ... Maybe, need I something more to write  there ?

Could you help me again ?

Thank you
« Last Edit: August 10, 2014, 06:29:53 PM by duch »