0

I have 3 raspberry pi. Each of them has 8 sensors connected. They will send sensor datas every minute. I have to store the data on a laptop for 2 months. This setup will be in a different place so I have to make sure everything works perfectly.

What is the most convenient way to communicate and store the data?

I have read about using MQTT subscriber on desktop and store the data on the database. Is there any easier way? I am new to this so apology for the simple questions :(

Lizzie
  • 13
  • 3
  • *convenient way to communicate* you are asking about communication between sensors and raspberries XOR between raspberries and your laptop? – Daweo May 31 '22 at 10:44
  • between raspberry and the laptop – Lizzie May 31 '22 at 18:54
  • Do you have solid wifi available? Do you have Bluetooth available? Do you have serial available? What are the distances between the devices? How much data does each sensor produce per minute? 8 floats? 4 GB? – Mark Setchell May 31 '22 at 21:11
  • 1
    I think the question is too vague to provide a decent answer. You may want to try posting on [raspberrypi.stackexchange.com](https://raspberrypi.stackexchange.com) as this is more an architecture question, but you'll need to give more information. How do you need to access the data after it's been collected? Do you have a database? Will the laptop be running for 2 months solid or will the pi's need to cache the historic data and send it periodically? What do you mean by 'convenient'? I usually start by sending all sensor data to a MQTT broker but that may not be right for you? – cguk70 May 31 '22 at 21:13
  • I would certainly try to store the data locally on each RasPi in case communications are down between RasPi and laptop, in addition to sending it to the laptop. MQTT is probably as good as anything though that doesn't actually store the data - it just distributes it. You might look at InfluxDB. – Mark Setchell May 31 '22 at 21:16
  • 1
    There are several options described in my answer here... https://stackoverflow.com/a/64647027/2836621 – Mark Setchell Jun 01 '22 at 12:06
  • Hello? Have you abandoned this question? – Mark Setchell Jun 03 '22 at 21:05

0 Answers0