How to record temperature ?

To ssh into vera, you need to have the local IP address and the root password.
You can get the local IP address in UI4 from the ‘Advanced’ tool, ‘Net & WiFi’ tab (see screen shot).
If you’ve not changed the root password, it’s on the tag under Vera.

Open the Terminal app on your Mac and type:
ssh root@the_ip_address_of_your_vera

Last login: Thu Dec 16 19:22:38 on console
mini-mac:~ jgc$ ssh root@192.168.5.108
root@192.168.5.108's password: 


BusyBox v1.8.2 (2010-07-29 19:47:55 PDT) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 KAMIKAZE (bleeding edge, r11404) -------------------
  * 10 oz Vodka       Shake well with ice and strain
  * 10 oz Triple sec  mixture into 10 shot glasses.
  * 10 oz lime juice  Salute!
 ---------------------------------------------------
root@HomeControl:~# 

Use caution, as you are logged in as root on the box.

Great! This works! I am in root MIOS directory!!

Now, the last question (hopefully) on my side is: Once How to access temperature LOG FILE on Vera that is created with the CODE below?

Thanks again!


Local outf = io.open(‘/etc/cmh/temp.log’, ‘a’)

outf:write(os.date(‘%Y-%m-%d %H:%M:%S ‘…os.time()…’ ‘)…luup.variable_get(“urn:upnp-org:serviceId:TemperatureSensor1”,“CurrentTemperature”,16806)…’\n’)

outf:close()

Now that you have ssh’d into the box, you need to know a bit about Unix shell commands and syntax. Google can help you here. To view the log in its entirety you can type:

more /etc/cmh/temp.log

Or to watch the log file you can type:

tail -f /etc/cmh/temp.log

BTW, a better place to put the log would be in the directory: /tmp/log/cmh