I have made a solution, that referenceses several sources for information, a file, a webpage etc. It then determins the proper state for a GPIO pin from the data, and sets it.
My problem is that the GPIO node only takes it's input from msg.payload, so I don't see any way of controlling other GPIO pins on the raspberry from the same function node, and it's a pain to do some of the same work multiple times in different function nodes.
I guess another option was to use some global variables, but as I read it around here, that is frowned upon :o)
Does anyone have any better ideas?
Thanks