Hi Anthoney - unfortunately I do not have such a step by step guide, and developing one for helping people to install a new server is beyond my scope right now. There are tons of good tutorials on the web for walking you through setting up an Apache web server on a Raspberry Pi. I also found a good one here on ST at the following post:
After you get the web server set up, be sure to test it with a few simple web sites. Then you will have to figure out how to move files back and forth to it using either SSH or FTP. Again, a tutorial for this is beyond my scope but you can find good tutorials for this on the web too.
Finally, after you get this up and going, you need to just put all the files from the hpanel-server GitHub in its own directory on your server. One last thing you will need to do is to set that folder to write permission. You can do that by SSHâing to the RPi and then doing âchmod 777 folderâ where folder is where you did the install. Be sure to chdir to the www location first. The default on a RPi is /var/www
After you do that, install the groovy file in your ST API from the HousePanel GitHub.
Then you will be ready to fire up your browser and give it a whirl.
I apologize that this isnât a step by step noob friendly guide but I"m still in very active dev mode. This is really more of an Alpha test period than a beta one. If this is more than you are willing to bite off at this time I will fully understand. Just be patient, when this matures a bit more I will write a step by step guide and make many of the current manual steps more automatic. I plan to get rid of the config read/write file altogether so that is also temporary.
Thanks Carlos. I looked into this and canât figure our how to get to the routines in the API. Some old documentation says it is available from the âlocationâ variable but I donât see it there. If anyone knows how to do this please let me know.
In better news, I was able to add Presence tiles today. Still need new icon graphics for them but the functionality with the same stand/run icon as motion is there now.
I have everything installed but I get the following errors when trying to serve the page up. This is after I have authenticated to SmartThings:
PHP Notice: Undefined index: HTTPS in /var/www/html/hpanel-server/housepanel.php on line 774
PHP Fatal error: Call to undefined function curl_init() in /var/www/html/hpanel-server/utils.php on line 68
Update⊠you need to enable curl in your php install. I canât remember how to do that but I think it is a flag in the php.ini file. Try this - from a google search.
enable CURL via the php.inI
Locate your PHP.ini file. (normally located at in the bin folder of your apache install e.g.
Open the PHP.ini in notepad (or nano or vim).
Search or find the following : ';extension=php_curl.dllâ
Uncomment this by removing the semi-colon â;â before it.
Save and Close PHP.ini.
Restart Apache.
PHP Notice: Undefined index: HTTPS in /var/www/html/hpanel-server/housepanel.php on line 774, referer: http://[redacted]/hpanel-server/housepanel.php
PHP Notice: Use of undefined constant response - assumed 'response' in /var/www/html/hpanel-server/housepanel.php on line 352, referer: http://[redacted]/hpanel-server/housepanel.php
If this error persists, try changing this to just set it to the else branch. Let me know what you find out. It sounds like a problem with your PHP configuration though.
This is a temporary hack until I can get a simple DB feature working. The directory where your files are stored - usually /var/www/html must have write permission. This file is written there. If you donât have write permissions it wonât be generated. I know this is awful but it is still Alpha code. Just ssh into your rPI and do a chmod on the directory where the main files are stored and it should fix this issue.
@ady624 and all, here are some current screenshots. This shows the new clock, mode, blank, and presence tiles. The second one shows off the generic graphic/URL tile which accepts any URL that will display as a jpg or png graphic file. In this example I grabbed my LinkedIn account photo URL and put it directly into the CSS fileâŠ