Thanks for the webkeezer project it provided some great insight into the Omega2 and formed the basis of a web connected thermostat I want to build.
I hacked it a bit to use a TMP102 temperature sensor on the I2C bus and used a while True and a sleep(30) to create a constantly updating thermostat (also reversed the relay action).
If anyone is interested I loaded the python-smbus_3.1.2-1_mipsel_24kc.ipk package from http://repo.onion.io/omega2/packages/onion/ and added this to the start of the code
bus = smbus.SMBus(0)
data = bus.read_i2c_block_data(0x48, 0)
msb = data
lsb = data
current_temp = (((msb <<8) | lsb) >> 4) * 0.0625
getTemp = current_temp
I have been trying to get a drop down on the web page to set the setpoint temperature (update keezerparams.txt) but have not had any luck.
If someone from the community could give me a nudge in the right direction I would be most grateful. I have very little python or html experience but can usually stumble my way through some code and work out what is happening.
PS when I looked at the preview I had to change the line current_temp = (((msb <<space8) to (((msb <<nospace8) becaused it looked like this (((msb <<
It should be " (((msb <<space8)"