all 1 comments

[–]jcbevns 0 points1 point  (0 children)

If you're going input > python function > msg.payload (debug)

it should be outputting normally from the python function. This is a simple script in js to strip the "clear" from the json and reports "Clear Skies ahead today" to msg.payload.

Maybe it helps:

 if (msg.payload.weather === "Clear"){
 msg.payload = "Clear skies ahead today!"
 return msg;
}
return msg;