You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-11Lines changed: 4 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,17 +25,10 @@ So, this application consists of the following 8 docker containers (= TIG stack
25
25
26
26
## 2. How to install this application on an edge device
27
27
It is very easy to install this application using the [BalenaCloud](https://www.balena.io/) services through following steps:
28
-
29
-
The Grafana user interface can be accessed (login and password is `admin`) at port 30000 of the host OS, but thanks to nginx (reverse proxy) it can also be accessed at port 80 of the host OS. This also means that you can access it through the `public device URL` that you can find in your [BalenaCloud](https://www.balena.io/) dashboard. In other words you can access your Grafana dashboards wherever you have internet access !
30
-
31
-
Here below a screenshot of the `system metrics` dashboard that is also provisioned by this application ( file is `grafana\dashboards\system metrics.json`)
1.[Balena Setup](https://www.balena.io/): you need a BalenaCloud account and your edge device must be running the BalenaOs. You also need to create an application in your balena dashboard and associate your edge device to it (see balena documentation).
36
-
2. clone this github repository (this can be done on any device where git is installed) through the following command `git clone https://github.com/janvda/balena-edge-device-monitoring.git` (instead of directly cloning the repository it migh be better to fork the github repository and then clone this forked repository).
29
+
2. clone this github repository (this can be done on any device where git is installed) through the following command `git clone https://github.com/janvda/balena-node-red-mqtt-nginx-TIG-stack.git` (instead of directly cloning the repository it migh be better to fork the github repository and then clone this forked repository).
37
30
3. Move into this repository by command `cd balena-edge-device-monitoring`
38
-
4. Add balena git remote endpoint by running the command `git remote add balena <USERNAME>@git.www.balena.io:<USERNAME>/<APPNAME>.git`
31
+
4. Add balena git remote endpoint by running a command like`git remote add balena <USERNAME>@git.www.balena.io:<USERNAME>/<APPNAME>.git`
39
32
5. push the repository to balena by the command `git push balena master` (maybe you need to add the option `--force` the first time you are deploying).
@@ -67,8 +60,8 @@ If you want to add a new Grafana dashboard then this can be done through followi
67
60
68
61
## 5. Node-RED
69
62
The application consists of 2 [Node-RED](https://nodered.org/) containers:
70
-
1.**node-red**: this editor is accessble through Host OS port and path : `<Host OS>:1880/node-red/`
71
-
2.**node-red-test** : this editor is accessble through Host OS port and path : `<Host OS>:1882/node-red-test/`
63
+
1.**node-red**: its editor is accessble through Host OS port and path : `<Host OS>:1880/node-red/`
64
+
2.**node-red-test** : its editor is accessble through Host OS port and path : `<Host OS>:1882/node-red-test/`
72
65
73
66
Note that both Node-RED editors are protected by a user name and a hashed password that must be set throught the environment variables `USERNAME` and `PASSWORD`. The [Node-RED security page](https://nodered.org/docs/security) describes how a password hash can be generated. You can set these environment variables using your [Balena dashboard](https://dashboard.balena-cloud.com) either under:
74
67
-*Application Environment Variables (E(X))* - this implies that both Node-RED instances will have the same username and password.
0 commit comments