Thanks for open sourcing it! This looks very promising.
I managed to get it running on my server, but I’m running into a few problems. The install doc didn’t mention the need for redis-server, but I got errors on the dashboard page until I installed and activated that.
I made an assumption that
ST_CLIENT_SECRET meant what I get when I enable OAuth on the SmartApp, since I didn’t see any other SmartThings API keys in my developer console. It appears to be working with those values.
I’ve successfully connected to SmartThings, imported my devices, and set up locations and zones. I’m able to control switches from the ThingLayer web page, as well.
If I attempt to edit a location, I get this error:
If I attempt to view the temperature of my Nest thermostat, this error appears:
I also noticed that instead of showing kWh for energy, it appears to be using “%” as the unit, instead:
Should the events or messages tables in the MySQL database be populating with data? They’re still empty, so far.
Let me know if there’s anything that I’m doing wrong or what I can do to help with debugging. I unfortunately do not yet have a lot of experience with Ruby, but this is a good learning opportunity.
I have it running on a Google Compute Engine f1-micro instance at the moment that I use for some of my other home automation stuff. I have port 3000 firewalled off and am accessing it through an SSH port forward until I figure out how to get SSL/TLS working on the ruby web server. (Looks like I can use thin, but haven’t had time to figure out how to make it use my certificate, yet.)