Giter VIP home page Giter VIP logo

Comments (6)

TaylorIsAGoodboy avatar TaylorIsAGoodboy commented on August 18, 2024

You cat see your data on Device Data. Just as bellow:
image

from rak_common_for_gateway.

NelsonKon avatar NelsonKon commented on August 18, 2024

Hi Taylor,
Thanks for your reply. I can see it already.
But don't you think that it is quite troublesome that we always need to expand it to see the data?

Is there a way to see the data at a glance, like in a page?

I tried to use influxDB and Grafana. I am able to see the data in the table form. But the graph can't be plotted out. I don't know why. I am using Grafana v8.1.2.

Hope to hear from you soon.

Regards,

from rak_common_for_gateway.

Scobber avatar Scobber commented on August 18, 2024

I think you will find where you are looking at the data is intended for debugging purposes.
the RAK gateway forms a small part of a overall system, as does chirpstack.
What you are posting to in reference here is off topic, and should be placed elsewhere.

You need to look at designing a overall solution. you have the RF side working, you have chirpstack working. its time to take the data from chirpstack and store and retreive it. which are completely separate elements.

perhaps you should be asking in a influx or grafana community.

from rak_common_for_gateway.

BlueTailCat avatar BlueTailCat commented on August 18, 2024

Yes, influxDB and Grafana can do this work. You should decode your data into object data as https://github.com/RAKWireless/RUI_LoRa_node_payload_decoder

If you configure chirpstack integration with influxDB, the decoded data will be restored in infuxDB. Then you can use grafana connect influxDB and display the data.

from rak_common_for_gateway.

NelsonKon avatar NelsonKon commented on August 18, 2024

Hi Enric,
Thanks for your reply. I did as what you mentioned. Just that the data can't be plotted out in graph form. Could it be my javascript problem?

This is my javascript Decode function

function Decode(fPort, bytes, variables) {
if(bytes.length == 1) {
if(bytes[0] == 1) {
return {
'button': 'activated'
}
} else {
return {
'error': 'button action unknown'
}
}
} else {
var pkFreq = '';
var cnt;

  for (cnt = 0; cnt < bytes.length; cnt++) {
  	
    if ((bytes[cnt] >= 48) && (bytes[cnt] <= 57)) {
      	pkFreq += String.fromCharCode(bytes[cnt]);
    }

  }
  
    return {
        'pkfrequency': pkFreq            
    }      

}
}

Could it be something left out and causes the graph can't be plotted?

Regards,

from rak_common_for_gateway.

NelsonKon avatar NelsonKon commented on August 18, 2024

Hi Taylor, Enric and Scobber,
I found the cause of why graph can't be plotted.

It is because my variable pkFreq has to be in number. Currently it is in string form. That's why it can't be plotted.

I have to convert it to number like this
'pkfrequency': parseInt(pkFreq)

Then it can be plotted out.

Thanks so much for your guidance.

Regards,

from rak_common_for_gateway.

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.