Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expression_function



Panel
titleDescription

 Runs Runs a single line of Python code as an expression. If a poll rate is specified, the function will be run repeatedly at the poll rate. This is a very powerful way for you to add extensions to the expression language. For example, one could write a project script module function called shared.weather.getTempAt(zip) that queried a web service for the current temperature at a given zipcode, and then bind the value of a label to the return value of that function.

The scriptFunction is a entered as a string and the pollRate is in milliseconds. You can optionally add any function arguments after the poll rate.

...