Here is a very simple rule example of how to get the local weather based on your IP in KRL and display it to the user in a little notify box.
rule current_weather is active {
select using ".*" setting ()
pre {
temp = weather:curr_temp();
msg = <<
#{temp}
>>;
}
notify("Current Temp", msg) with sticky = true;
}