Introduction
SiB™ vs SID mode
Programs in SiB™ mode
Programs in SID mode
Sample Programs
- Door Bell - Emergency Button - Freezer Monitor - I Love You - Lights Demo - Magnetic Alarm - Motion Sensor - Sweet Dreams - Thermometer - Water/Moisture Sensor - Yes or No
Commands
A - Z Configuration GPIO Programming Time Sensor Messaging
| DL
This command pauses your SiB™ program for the amount of time specified.DL
Usage: DL[+] time
This command pauses your SiB™ program for the amount of time specified.
The time parameter is by default a value in milliseconds; however the following suffixes are permitted:
s = seconds, m = minutes, h = hours. For example, DL 1h will delay execute for one hour.
Your SiB™ continues to operate during that time and unless notifications are disabled, your SiB™ will accept and queue commands received by IM.
This command can be enhanced with the + symbol, for example: DL+ 1h. This symbol instructs your SiB™ to use calibrated time. See
HELP CALIB for more information.
See also: CALIB TIME, SL, SLB
RUNAT
Defines a program to run at a specific time of day.RUNAT
Usage:
RUNAT time
[code]
...
Defines a program to run at a specific time of day.
The time is given in HH:MM 24 hour format.
Example:
RUNAT 12:00
IM It is noon
SL
Sleeps for the given amount of time.SL
Usage: SL[+] time|off|button
Sleeps for the given amount of time.
If 'off' is supplied rather than a time, the SiB™ will go to sleep with NO MEANS of waking up.
If 'button' is supplied rather than a time, the SiB™ will go to sleep until a button press is detected.
When issuing this command, the SiB™ will go into a deep sleep state. It will sleep for the specified amount of time.
The time parameter is in milliseconds, however the following suffixes are permitted: s = seconds, m = minutes, h = hours.
If a sleep time longer than one hour is specified, the SiB™ will wake up every hour and check for new notifications until the time runs out.
This allows the sleep cycle to be interrupted; i.e., to run another program, to stop or reconfigure the SiB™, etc.
The SL command can be enhanced using the + symbol, where the time to sleep will be calculated using the result for CALIB TIME.
The deep sleep can also be interrupted by a button press.
If the button is in SiB™ mode, a button press will wake up the device and initiate the button-click sequence; the resulting program will
be loaded and the current running program will not resume.
See also: SLB, DL
SLB
By default (with no time specified), SLB will put the SiB™ to sleep until a button press is detected.SLB
Usage: SLB [time]
By default (with no time specified), SLB will put the SiB™ to sleep until a button press is detected.
If a time is provided in milliseconds, the SiB™ will go to sleep and wake up after the given time OR when a button press is detected.
See also: SL, DL
UDL
This function sleeps for the given number of microseconds.UDL
Usage: UDL time_us
This function sleeps for the given number of microseconds.
The time parameter here is accepted only in microseconds.
WAKEAT
Sleeps until the specified time(s).WAKEAT
Usage: WAKEAT 0:12 13:45
Sleeps until the specified time(s).
The WAKEAT function puts the SiB™ to sleep until the specified time. This command should be used in a SID mode program to trigger timed actions, such as reminders.
For example:
PROG reminder
WAKEAT 9:00
IM Time to go to work!
WAKEAT 17:00
IM Time to go home!
LOOP
Multiple times can be specified in a single command to create a repeating reminder:
WAKEAT 6:00 12:00 18:00
The time given must be in 24-hour format. Use the TZO command to set your timezone before using this command.
See also: WAKEATB, TZO
WAKEATB
Sleeps until the specified time(s) or until the SiB™ button is pressed.WAKEATB
Usage: WAKEATB 0:12 13:45
Sleeps until the specified time(s) or until the SiB™ button is pressed.
This command is identical to the WAKEAT command, but in addition, allows the SiB™ button to wake the SiB™ at any time.
See the WAKEAT command for usage details.
See also: WAKEAT, TZO
|