
willgame2

Hi I'm trying to finish my alarm clock script using script manager and I don't know what to do can anyone help me please?
Here is a copy of my alarm scripting...
# Jocasta Nu alarm clock v1.0
# By William Chase
# =======================
# Assign system variables
# =======================
# System variables program
:variables
$Count=0
$Name="William"
$Robot_name="Jocasta Nu"
$m=0
$h=0
$daytime="unknown"
$nighttime="unknown"
# =======================
# Check the time
# =======================
:Check_the_time
$h=$hour
$m=$minute
Print("Hour = $h")
Print("Minutes = $m")
# =======================
# Is it nightime
# =======================
IF ($h19)
$nightime="yes"
ENDIF
IF ($nighttime="yes")
Print ("it is nighttime")
ENDIF
# =======================
# No alarm needed
# =======================
# =======================
# Is the time 7am hour
# =======================
# =======================
# Is the minute 15
# =======================
# =======================
# Sound alarm
# =======================
# =======================
# Wait 10 sec
# =======================
Code:
otherwise, you can get creative like this example: WaitUntilTime.EZB
I knocked up a speak time project on the cloud a few weeks ago which splits the time in to the various sections such as morning, afternoon, evening and night and also splits the minutes up so it know if to say "$minute minutes to $hour am/pm", "$minute minutes past $hour am/pm" or "$hour $minute am/pm"
That script should hopefully aid you in an alarm function. Use the idea behind splitting the day in to sections for the various alarms and replace the SayWait commands for ControlCommand commands to trigger "alarm actions"
The project is here