# Macro Language: Miscellaneous Commands

`colormode <mode>`

With this command you can define if colors will be defined as RGB or HSB (0=RGB, 1=HSB).

`list`

List all data buffer on console

`exit`

Stop macro.

`clr`

Clears the console output.

`clrvar`

Clears all global macro variables.

`setvar <var> <expr>`
`<var>=<expr>`

Defines a variable.

`setstring <var> <value>`
`$<var>=<expr>`

Defines a string variable.

`setutimestring <time> <format> <var>`

Defines a time string variable from unix timestamp (time format tokens).

`setmtimestring <time> <format> <var>`

Defines a time string variable from mac timestamp (time format tokens).

`eval <name> <expr>`

Evaluates the expression and defines the result as a string variable.

`format <name> <format> <expr> ... <expr>`

Returns a string created with the given format string. The format can be defined in the usual `printf` notation.

`forecast <model> <lon> <lat> [field]`

Returns a complete set of weather forecast data (10 days) and weather history (14 days).
You can select between two weather forecast models:

icon | Deutscher Wetterdienst ICON
gfs | NOOA Global Forecast System

If field is not given all 12 data sets will be loaded. To get a specific data set add one of the following codes:

0 | temperature (°C) | 6 | cloud cover
1 | surface temperature (°C) | 7 | wind direction
2 | dew point (°C) | 8 | wind speed
3 | humidity (%) | 9 | wind gusts (m/s)
4 | pressure (hPa) | 10 | CAPE (J/Kg)
5 | rain (mm) | 11 | KP index