Skip to Navigation

2. Scripts Zone

In your CloudDot scripts, we provide you with a few helpers to make your life easier.

  • Channel – Good for quick getting and setting of CloudDot channel values
  • Record – For timestamps, raw values, and other things collected on your CloudDot channel
  • Script – For using variables, and calling functions, from other scripts in your script.
  • email() – For sending email.
  • localTime() – For converting UTC into a time that makes sense for you.

To show you how to use these features, we will have code examples. A code example will look like this:

# The following line, without the '>>>' can be in a script
>>> print Channel.Temperature
78 °F # This shows the result of the line above.

We use the '>>>' to show what you could have in your script. You should not put the '>>>' in your code on CloudDot. We use them to show the difference between what you put in your script and the result.

A line without '>>>' shows the result of the line above, this will show up in the "Output" section on the Scripts page.

Comments

No comments yet. Speak up. We're listening.