Announcement

REXYGEN forum has been moved. This one is closed.
Head over to the new REXYGEN Community Forum at https://forum.rexygen.com.

Looking forward to meeting you there!
 

#1 2017-03-05 10:26:01

mjerjawi
Member
Registered: 2017-03-05
Posts: 1

Online data logger

I'm trying to build some kind of online data logger im gonna read data from analog sensors and send to a server and to be able to view the readings on the web and store the data for history graphs is that doable ?? Do i need real ip ??
Thank you

Offline

#2 2017-03-08 15:56:31

soxso2011
Member
From: India
Registered: 2015-11-25
Posts: 37

Re: Online data logger

For reading analog values you can use any rex compatible hardware and now rex will read these analog values and you can write these analog value to mysql database , and from mysql database these values are connected to your website using mysql-php interface. Now dor mysql access you need to have an ip address of server.Or in case you have to make a localhost database.But either you need a ip address again to access via internet.

Offline

#3 2017-03-09 10:01:20

tomáš čechura
Administrator
Registered: 2016-02-22
Posts: 371

Re: Online data logger

Hi mjerjawi,

online data logger with REX is doable. There are many ways how to do that:

1) First one is using your own My-sql database as soxso2011 already mentioned. The disadvantage is that you have to care about the database yourself. The advantage is that the complete solution is in your hands so you are able to do some custom modifications.

2) There are plenty of cloud services for logging data and/or displaying custom dashboards - e.g. Thingspeak.com, Beebotte.com, data.sparkfun.com and many more. They all are more or less using HTTP requests to push data to their databases. This can be done in REX using HTTP function block. Please, investigate ThingSpeakAPI example on our GitHub: https://github.com/rexcontrols/REXexamp … PI_example

In both cases you don't need a real IP address - just internet connection (or local connectivity in your own My-sql database).

Hope the above is useful for you.

If you have any additional questions, let us know.

Regards, Tomas

Offline

#4 2017-03-09 10:40:06

tomáš čechura
Administrator
Registered: 2016-02-22
Posts: 371

Re: Online data logger

And one more solution came to my mind: logging to a text file - see following post.

Regards, Tomas

Offline

Board footer

Powered by FluxBB