For example, since Linux uses the “everything is a file” philosophy, I can get the cpu temp by running cat /sys/class/thermal/thermal_zone*/temp
Is there a way to create a file tree that shows python variables in the same way?
If I had a script checking the temperature outside, could I output the data as “/somefolder/temperature/outside”?
Then if I ran cat /somefolder/temperature/outside it would return “50°”
I figure I could constantly update a text file, but since I’m using an ssd I am hesitant to constantly be rewriting an actual on disk file. Especially when I don’t need the data to persist.

