i have a nerves image for an PI and want to modify it so the PI sends the cpu-temperature to an REST-API.
Currently I’m in the planning phase how this could work.
- According to that pi-gpu-and-arm-cpu-temperature it is possible to read out the cpu-temperature with “cat /sys/class/thermal/thermal_zone0/temp”. Is this also true for the nerves linux image?
- My current plan is to read out the file above with Elixir I/O.File every 10 seconds
Will this work? Has anyone a better idea or even better has anyone even developed something? Please let me know.