Answer the question
In order to leave comments, you need to log in
How to organize monitoring of data received from the microcontroller using a site located on the Raspberry Pi?
There is an Arduino Uno, to which an ACS712 current sensor and an NRF24L01 radio module are connected. This assembly counts the AC power in the network and sends this information via radio to the Raspberry Pi 2, to which the NRF24L01 radio module is also connected. Raspbian is running on Raspberry Pi 2 and a Python script is written that takes a value once a second and saves it to a text file along with a timestamp, a line like "Current 0.12 Amps, 2016.02.11 15:30:05" comes out. In the future, the value of the voltage in the network will also be taken.
We need to make a site that will be located on the Raspberry Pi 2 and on which the value of the current strength from the sensor will be displayed in real time, a graph of the dependence of the current strength on time is plotted.
I myself don’t know anything in this area, I don’t know how to ask google either. Can you help with solving this problem, advise or direct me to instructions or articles where this is done?
Answer the question
In order to leave comments, you need to log in
For drawing such graphs, RRDtool ( oss.oetiker.ch/rrdtool ) is very well suited, but text can be displayed using any programming language, even write a script in bash.
PS: I would advise saving all this not in a simple text file, but in some kind of database, for example SQLite is great for this.
If you are interested, I can share my perl scripts, where I implemented all this (I have about the same scheme at home).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question