logo elektroda
logo elektroda
X
logo elektroda

What tools for visualising Bluetooth sensor data on the Raspberry Pi?

m3pasix 3612 5
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 13458738
    m3pasix
    Level 11  
    Posts: 65
    Hello!
    I recently decided to undertake at least a part of something called a smart home. In a nutshell : a sensor on bluetooth that sends data to the raspberry and the raspberry has to upload it to my website and it visualises it in some way. In relation to this I have a question. Could someone describe what tools I need? I don't actually know yet in what form I will have the data from this sensor on the raspberry as it hasn't arrived yet, for now I am doing a little preparation. The biggest problem seems to be the visualisation of this data (e.g. a graph of the temperature over a day), and of course querying the raspberry web site for it. (It is the www that should insist on refreshing the data on the server?). I don't know how to go about this at all. If anyone has any information, links that could be useful to me I would be very grateful! Greetings! :)
  • ADVERTISEMENT
  • #2 13458862
    dktr
    Level 26  
    Posts: 935
    Help: 45
    Rate: 725
    It's not that difficult, you run a web server with php on the pi, rrdtool - for graphs and you're done. Here, for example, a box with a buffer power supply for temperature measurements running over wifi.

    http://lipowa.net:150/temperatury2.php

    What tools for visualising Bluetooth sensor data on the Raspberry Pi?
  • ADVERTISEMENT
  • #3 13458876
    m3pasix
    Level 11  
    Posts: 65
    dktr wrote:
    It's not that difficult, on pi you run yourself a web server with php, rrdtool - for graphs and you're done. Here, for example, a buffer power box for temperature measurements running over wifi.

    http://lipowa.net:150/temperatury2.php

    What tools for visualising Bluetooth sensor data on the Raspberry Pi?


    I could do something like this :
    I have let's say a file on the raspberry with the data i.e. x and y of the graph respectively. Is it possible to upload it to my website and write a function in html so that it converts and displays it?
  • ADVERTISEMENT
  • #4 13458883
    dktr
    Level 26  
    Posts: 935
    Help: 45
    Rate: 725
    If you have a file with the measurement result, you periodically upload it to the database. The rrdtool tool generates a graph which you link to yourself on the page.
  • ADVERTISEMENT
  • #5 13460014
    m3pasix
    Level 11  
    Posts: 65
    dktr wrote:
    If you have a file with the measurement result, you cyclically upload it to the database. The rrdtool tool generates a graph which you link to yourself on the page.


    And could someone write how to do this? I mean something like this: I have a file on my raspberry which will be my data, I wrote myself a script which will create a graph of this data with gnuplot (quite a working version, but ok as for the beginning ;) ), and now I would like the website to update at intervals (set up top-down, basically such as every how many measurements will be done) this file from the raspberry( this graph created from gnuplot). Is it possible to manage this without knowing php and java~ ? If I need to, I'll probably learn but I'd prefer a less complicated solution, I've set up my website on prv.pl if that makes any difference. Regards
  • #6 14004901
    arkady_pl
    Level 24  
    Posts: 574
    Help: 59
    Rate: 24
    [quote="m3pasix"]I would now like the website to update every so often (set top-down, basically how often the measurements will be taken)
    Quote:

    Yes, use jQuery on the page and call reload the graphics file.
    [quote="m3pasix"]Does it go without knowing php and java~ ?

    Yes. Such a page can only be in html and have a jQuery file pulled up, which is essentially Javascript. There are quite a few examples of how to reload a section of a web page.
    m3pasix wrote:
    I set myself up a page on prv.pl

    It matters insofar as prv.pl must then have access to that computer where the generated file is located. It is best if you set up the server at your local network. If you want to be able to see it "out on the town" then you can redirect the port on your router at home and access it via a public IP or run a service like Dynamic DNS.
ADVERTISEMENT