💡 This guide can be used to set up a self-hosted version of beestat either for privacy or for the purpose of contributing to the project.
Before you begin, you will need the following:
- A domain name. It does not have to be publicly accessible, but it does have to exist and you need to be able to generate a valid SSL certificate for it. This guide assumes you have a domain and access to update DNS records to obtain a free SSL certificate from LetsEncrypt. You can get a cheap domain name from Namecheap. I am assuming you are using a subdomain like
beestat.yourdomain.com in this guide.
- A server to run the code on. A Linux server running PHP 8 and MySQL 8 with a web server of your choice should be adequate. Ubuntu and Apache are used in this guide.
- Create an ecobee account if you don’t already have one.
- Log in here: https://www.ecobee.com/home/developer/loginDeveloper.jsp
- Accept the SDK agreement
- Enter a company name (your own name is fine)
- Sign in to your account at https://www.ecobee.com
- Open the sidebar and click Developer
- Create a new app. For Authorization Method, select Authorization Code
- Set the Redirect URI field to
- Once the app is created, save the API Key on the Name and Summary tab for later.
Make sure you have the latest package list