The Raspberry Pi is no longer supported as a Particle hardware platform, so I recommend not spending too much time on it.
That said, you should be able to use Particle.publish() to push the temperature to the cloud. From there, you could talk to something like Thingspeak.com to display the temperature in a graphical form (chart, etc.). For Thingspeak, you’ll need to set up a webhook that pushes your data to their APIs; this is true for most other similar data visualization sites as well.
The reason for this is that I need to parse the JSON, especially the “data” which stores the temperature values into Unity using JSON Utility. I am a beginner at this as well and I am pretty sure an output like mine on picture 1 won’t work, because I think it should dynamically update the values and not write a new line one by one for the JSON Utility to know what value is the latest.
Is there any way to do this? Or does it even matter if it’s dynamically updated on a single line instead of creating a new one for every event?
There are plenty threads you could search for JSON or *snprintf()` that would help you format your data the way you want it.
That won't work. A published event is fire and forget.
Imagine you spoke a sentence and then regret what you said, how would you replace any of the already spoken words?
However, I'm also pretty certain that Unity can cope with any kind of data you throw at it