gfch100: add cpu_temp to json and UI
Change-Id: Ic8ffc631dd54722052a7f51d46337f68421100fd
diff --git a/craftui/HOW.updatesim b/craftui/HOW.updatesim
index 04e4cce..d5f2e6a 100644
--- a/craftui/HOW.updatesim
+++ b/craftui/HOW.updatesim
@@ -22,6 +22,6 @@
tmp/serial \
tmp/ssl \
tmp/platform \
- tmp/gpio/ledstate \
+ tmp/gpio \
tmp/sim \
> sim.tgz
diff --git a/craftui/craftui.py b/craftui/craftui.py
index f195dbc..10f5e91 100755
--- a/craftui/craftui.py
+++ b/craftui/craftui.py
@@ -512,6 +512,7 @@
data['refreshCount'] += 1
data['uptime'] = self.ReadFile(sim + '/proc/uptime')
data['ledstate'] = self.ReadFile(sim + '/tmp/gpio/ledstate')
+ data['cpu_temperature'] = self.ReadFile(sim + '/tmp/gpio/cpu_temperature')
data['peer_up'] = os.path.exists(sim + '/tmp/peer-up')
cs = '/config/settings/'
data['craft_ipaddr'] = self.ReadFile(sim + cs + 'craft_ipaddr')
diff --git a/craftui/sim.tgz b/craftui/sim.tgz
index dba301f..d50297f 100644
--- a/craftui/sim.tgz
+++ b/craftui/sim.tgz
Binary files differ
diff --git a/craftui/www/status.thtml b/craftui/www/status.thtml
index 3500323..28b5027 100644
--- a/craftui/www/status.thtml
+++ b/craftui/www/status.thtml
@@ -34,6 +34,7 @@
<b>Software Date:</b><span class="values" id="platform/softwaredate">...</span><br>
<b>Uptime:</b><span class="values" id="platform/uptime">...</span><br>
<b>Status:</b><span class="values" id="platform/ledstate">...</span><br>
+ <b>CPU Temperature:</b><span class="values" id="platform/cpu_temperature">...</span><br>
</div>
</div>
<div class="tab">