Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
logix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
card10
logix
Commits
5acdc4e1
Commit
5acdc4e1
authored
3 years ago
by
schneider
Browse files
Options
Downloads
Patches
Plain Diff
Update grafana.md
parent
af0934f4
No related branches found
No related tags found
No related merge requests found
Pipeline
#5415
passed
3 years ago
Stage: trigger
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tutorials/grafana.md
+58
-58
58 additions, 58 deletions
tutorials/grafana.md
with
58 additions
and
58 deletions
tutorials/grafana.md
+
58
−
58
View file @
5acdc4e1
-
Prepare system
-
passwd
-
configure any network interfaces as needed
-
sudo apt update
-
sudo apt upgrade
-
sudo reboot
-
sudo apt install git
-
Install IOTstack
-
git clone https://github.com/SensorsIot/IOTstack.git IOTstack
-
cd ~/IOTstack
-
./menu.sh
-
let it install dependencies
-
restart when asked
-
edit
`/etc/group`
and add
`pi`
to the
`docker`
group
-
log out
-
login again, run menu.sh again
-
ignore error message because of docker version
-
select "Build Stack"
-
select grafana, influxdb, nodered using space
-
enter node red menu, build addons list
-
add generic ble to list
-
hit enter
-
go to docker commands
-
select start stack
-
wait for containers being built
-
use bluetoothctl to pair the card10
-
`scan on`
-
enter bluetooth menu on card10
-
`pair CA:4D:10:01:FF:64`
(replace with MAC that is shown in bluetooth memnu)
-
type
`yes`
, hit yes on card10
-
`disconnect CA:4D:10:01:FF:64`
-
`exit`
-
passwd
-
configure any network interfaces as needed
-
sudo apt update
-
sudo apt upgrade
-
sudo reboot
-
sudo apt install git
-
git clone https://github.com/SensorsIot/IOTstack.git IOTstack
-
cd ~/IOTstack
-
./menu.sh
-
let it install dependencies
-
restart when asked
-
edit
`/etc/group`
and add
`pi`
to the
`docker`
group
-
log out
-
login again, run menu.sh again
-
ignore error message because of docker version
-
select "Build Stack"
-
select grafana, influxdb, nodered using space
-
enter node red menu, build addons list
-
add generic ble to list
-
hit enter
-
go to docker commands
-
select start stack
-
wait for containers being built
-
create influx database
-
`docker exec -it influxdb influx`
-
`create database card10`
-
(use card10)
-
`create user "nodered" with password 'supersecure'`
-
`create user "grafana" with password 'supersecure'`
-
`grant all on card10 to nodered`
-
`grant all on card10 to grafana`
-
use bluetoothctl to pair the card10
-
`scan on`
-
enter bluetooth menu on card10
-
`pair CA:4D:10:01:FF:64`
(replace with MAC that is shown in bluetooth memnu)
-
type
`yes`
, hit yes on card10
-
`disconnect CA:4D:10:01:FF:64`
-
`exit`
-
create influx database
-
`docker exec -it influxdb influx`
-
`create database card10`
-
(use card10)
-
`create user "nodered" with password 'supersecure'`
-
`create user "grafana" with password 'supersecure'`
-
`grant all on card10 to nodered`
-
`grant all on card10 to grafana`
-
configure grafana
-
ip:3000
-
admin, admin
-
select a new password
-
add new data source influxdb
-
url
`http://influxdb:8086`
-
database card10
-
user grafana
-
password supersecure
-
method GET
-
configure grafana
-
ip:3000
-
admin, admin
-
select a new password
-
add new data source influxdb
-
url
`http://influxdb:8086`
-
database card10
-
user grafana
-
password supersecure
-
method GET
-
add card10 in nodered
-
go to ip:1880
-
import flow.json
-
change mac of device to CA:4D:10:01:FF:64 (same as above)
-
set user of influxdb to
`nodered`
-
set password of influxdb to
`supersecure`
-
deploy flow
-
reboot. check that card10 ble connection goes to "active"
-
add card10 in nodered
-
go to ip:1880
-
import flow.json
-
change mac of device to CA:4D:10:01:FF:64 (same as above)
-
set user of influxdb to
`nodered`
-
set password of influxdb to
`supersecure`
-
deploy flow
-
reboot. check that card10 ble connection goes to "active"
You should now see data coming in in the grafana dashboard that you created before under ip:3000
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment