TTNMapper is a dataviz service for the radio coverage of the public TTN LoRaWAN network.
The goal of this project is running a local instance of TTNMapper and NodeRED flow for collecting messages from Chirpstack private network.
First read the doc
cd github/
mkdir ttnmapper
cd ttnmapper/
git clone https://github.com/ttnmapper/ttnmapper-web-v2.gitTerminal 1
cd github/ttnmapper/ttnmapper-web-v2
./ttnm-testing-stack.sh init ~/temp/ttnm-testing-stack
./ttnm-testing-stack.sh run ~/temp/ttnm-testing-stackTerminal 2
cd github/ttnmapper/ttnmapper-web-v2
yarn install
yarn run startOpen http://localhost:8010/?lat=45.18689240190709&long=5.769538879394531&zoom=11&
The repositories are here https://github.com/ttnmapper
cd github/
mkdir ttnmapper
cd ttnmapper/
build() {
REPO=$1
VERSION=$2
git clone https://github.com/ttnmapper/$REPO.git
(cd $REPO; docker build -t ttnmapper/$REPO:$VERSION .)
docker images | grep ttnmapper/$REPO
}
# TODO configure conf.json according to TBD
build "ttnmapper-web-v2" "latest"
# TODO configure conf.json according to TBD
build "ttnmapper-api-v2" "latest"
# The following containers may be deprecated. You have to check that.
# TODO configure conf.json according to https://github.com/ttnmapper/ingress-api#configuration
build "ingress-api" "latest"
# TODO configure conf.json according to https://github.com/ttnmapper/mysql-insert-raw/blob/master/conf.json.template
build "mysql-insert-raw" "latest"
build "mysql-insert-gridcell " "latest"
build "gateway-update-current " "latest"
build "mysql-insert-aggregated" "latest"
docker images | grep ttnmapperdocker pull rabbitmqdocker pull mysqlPHPMyAdmin : optional
docker pull docker run --name myadmin -d -e PMA_HOST=dbhost -p 8080:80 phpmyadmin/phpmyadmin
docker pull nodered/node-redVERSION=latest
IMAGE=rabbit
SERVICE=ttnmapper-$IMAGE
docker run -d --hostname $SERVICE --name $SERVICE $IMAGE:$VERSION
docker logs -f $SERVICEVERSION=latest
IMAGE=mysql
SERVICE=ttnmapper-$IMAGE
ENVIR="-e MYSQL_ROOT_PASSWORD=my-secret-pw"
docker run -d $ENVIR --hostname $SERVICE --name $SERVICE $IMAGE:$VERSION
docker logs -f $SERVICEVERSION=latest
IMAGE=phpmyadmin/phpmyadmin
SERVICE=ttnmapper-myadmin
docker run -d --name myadmin -d -e PMA_HOST=localhost -p 8080:80 $IMAGE
docker logs -f $SERVICEVERSION=latest
IMAGE=ttnmapper/ttnmapper-web-v2
SERVICE=ttnmapper-web-v2
docker run -d --hostname $SERVICE --name $SERVICE $IMAGE:$VERSION
docker logs -f $SERVICEVERSION=latest
IMAGE=ttnmapper/ttnmapper-api-v2
SERVICE=ttnmapper-api-v2
docker run -d --hostname $SERVICE --name $SERVICE $IMAGE:$VERSION
docker logs -f $SERVICEVERSION=latest
IMAGE=ttnmapper/ingress-api
SERVICE=ingress-api
docker run -d --hostname $SERVICE --name $SERVICE $IMAGE:$VERSION
docker logs -f $SERVICEVERSION=latest
IMAGE=nodered/node-red
SERVICE=ttnmapper-nodered
docker run -d --name $SERVICE -d $IMAGE:$VERSION
docker logs -f $SERVICEdocker-compose up -d
docker-compose logs -fTODO
- Add NGinx and Let'Encrypt containers