The best way for me to do it was to use node-red. Fantastic program for us newbies with little coding experience. Highly recommended. I’m running it on the pi that is sending the values to the MM pi. Works great.
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.