-
-
Notifications
You must be signed in to change notification settings - Fork 8
Installing t6
mathcoll edited this page Jun 2, 2019
·
27 revisions
Install node (if needed): https://nodejs.org/en/
Install npm (if needed): https://github.com/npm/npm
Do not use sudo/root to install t6, this is not necessary and not recommended.
$ git clone https://github.com/mathcoll/t6.git ./t6 & cd ./t6
$ npm install
$ rename "settings-hostname.js" according to your server _hostname_ and edit the file.
$ rename "rules-hostname.js" according to your server _hostname_.
$ rename "sensors-hostname.js" according to your server _hostname_.
$ rename "db-hostname.json" according to your server _hostname_.
✨ On linux, to identify your hostname, you can run the following command:
$ hostname
Please have a look at the options in settings-hostname.js, there are some secrets to be customized.
You can add the server running as a service, tested with Ubuntu and Debian:
- First: install the server as service:
$ sudo ln -s /var/www/t6/etc/init.d/t6 /etc/init.d/t6
- And then, start t6 using:
$ sudo /etc/init.d/t6 (re)start|stop|status
- Finally, set the service to run at startup:
$ sudo update-rc.d t6 defaults
Once the setting are done, you can initialize the influxDb databases:
CREATE DATABASE "t6"
Database will contains the following measurements:
- data: All timeseries for measures;
- events: events happening in t6 Api; not really used, except for few logs;
- requests: Allows to manage quotas and limits;
Q: sudo /etc/init.d/t6 start
does not return any output, what should I do?
A: Try to set chmod +x to file /var/www/t6/bin/www
Q: Do I need to install sqlite3?
A: Well, NO. Sqlite3 is deprecated. You can't use it anymore since b93fb1a449f19427dc82ba815368cb39ab43a429.
t6 Technical Api Documentation. Please refers to CONTRIBUTING.md in case you would like to help :-)
- Installing t6
- Internal errors
- Repository structure
- Six main Resources
- Other Resources
- Datapoints
- Users
- UIs 💥 not detailed
- Mqtt Topic 💥 not detailed
- Referentials
- Technical Api Documentation 🔗
- TWA Application Screenshots
- t6 Security policy
- Advanced t6 concepts