GithubHelp home page GithubHelp logo

UI+Lora configuration about ui HOT 4 CLOSED

mainflux avatar mainflux commented on July 25, 2024
UI+Lora configuration

from ui.

Comments (4)

manuio avatar manuio commented on July 25, 2024

@4refr0nt I'm not sure to understand your question. You can't manage LoRa GW from Mainflux. You must connect them to your ChirpStack Server (the project was previously called Lora Server), configure this MF_LORA_ADAPTER_MESSAGES_URL ENVAR with the address of your ChirpStack MQTT Broker and finally run the docker composition of lora-adapter.
From UI side this environment variable loraServer: 'http://lora.mainflux.io/#/' refers to the ChirpStack UI and not to the address of the message broker.

This doc can maybe help you.

from ui.

4refr0nt avatar 4refr0nt commented on July 25, 2024

I'm already read this doc and configure my mainflux as documented (ChirpStack server running, ENV VAR setted and put in system profile, profile activated for current user, and lora adapter started). Also, I'm cloned UI project and set proper urls in environmens.prod.ts and rebuld docker images, but I have some troubles with UI.
For reproduce this issue try install mainflux on clear VM (without saved docker images and volumes with previous data) and run as documented with ChirpStack server. Try open browser on other host (mainflux UI link).

  1. UI make GET http req with unproper url mainflux_host://things/version
    (proper links we can see in mainflux/things/swagger.yml)
    screen1

  2. UI make GET http req mainflux_host://reader/channels/xxx/messages?offset=0&limit=500
    but any reader not running and nginx redirects not configured in main docker/nginx folder.
    Mainflux_host nginx return root UI page for this req :)
    screen2

  3. Other undefined GET req by UI for unstarted microservices (mainflux_host nginx return root UI page):

  • /config
  • /writer
  • /bootstrap

Please, try add new gw and lora device over UI, then view and edit this items.

from ui.

manuio avatar manuio commented on July 25, 2024

@4refr0nt Thank you for the details, I understand your issue now. The problem is that we are using Nginx as proxy and it expect to find all services up and running otherwise it crash... That's why the configuration is only made for Core services.
This UI is using addons (reader, writer and boostrap) and it needs a specific configuration of the proxy:

    location /config {
        proxy_pass http://localhost:8202/things/configs;
    }
    location /bootstrap {
        proxy_pass http://localhost:8202/things/bootstrap;
    }
    location /reader/channels {
        proxy_pass http://localhost:8905/channels;
    }
    location /writer/channels {
        proxy_pass http://localhost:8185/channels;
    }

Let's think about how to document this in this repo or if we add a whole new config of docker-compose and Nginx.

from ui.

4refr0nt avatar 4refr0nt commented on July 25, 2024

Thanks!

from ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.