After a while, I got another device as a mediaplayer, called ODROID C1. This one has a much stronger cpu and has a gigabit ethernet interface. I can’t use OpenELEC on this one, as ARMv7 isn’t supported by now. So I stick with the default Ubuntu 14.04, which has its advantages, as it’s a complete Linux OS.
To monitor the temperature of this ODROID as I did before with my Raspberry Pis, I had to change the scripts a bit to get it working, my Ubuntu 14.04 uses upstart:
root@odwz:# ps -p1 | grep systemd && echo systemd || echo upstart upstart
Of course, the prerequesite is socat:
sudo apt-get install socat
#!/bin/bash cat /sys/devices/virtual/thermal/thermal_zone0/temp
#!/bin/bash socat -T 1 -d -d tcp-l:9888,reuseaddr,fork,crlf system:"/opt/tempservice/t.sh"
description "Socat service for temperature monitoring" start on runlevel  stop on runlevel  exec /opt/tempservice/socat-service.sh >>/var/log/socatservice.log 2>&1
sudo initctl reload-configuration sudo initctl start socat