<aside>
💡 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.
</aside>
Requirements
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.1 (and not greater) and MySQL 8 with a web server of your choice should be adequate. Ubuntu and Apache are used in this guide.
<aside>
⚠️ PHP versions above 8.1 will not work. Please see here: https://github.com/beestat/app/issues/409
</aside>
Ecobee Developer
<aside>
⚠️
At this time, ecobee is blocking new developer registrations. There is currently no way to sign up or create a new app.
</aside>
- 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
https://beestat.yourdomain.com/api/ecobee_initialize.php
- Once the app is created, save the API Key on the Name and Summary tab for later.
Apache Setup
Make sure you have the latest package list