LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Sensor logging for distributed systems (https://www.linuxquestions.org/questions/programming-9/sensor-logging-for-distributed-systems-4175545333/)

SamWhiskey 06-14-2015 01:47 PM

Sensor logging for distributed systems
 
Hello,

for building up my smart home application I want to integrate several sensors (e.g. temperature sensors) into a common structure by using a standardized interface.

I want to develop a package being able to manage sensors of the house. Some of them may not be on the same machine. I am thinking of a file based or a distributed IP based network structure.

I have found a package "lm-sensors" doing this for local sensors of a computer mainboard.This does not fit perfectly but may be a good template for the interface structure.


Does anybody know about a package which could fulfil my requirements?

Does anybody have an idea which structure and interface would fit?


Thank you for your ideas.
Sam

a4z 06-15-2015 12:43 AM

you can start to read about how to use sensors ins some embedded tutorials,
start for example with this
https://www.cl.cam.ac.uk/projects/ra...s/temperature/

SamWhiskey 06-15-2015 06:18 AM

Thanks a4z for your answer. As I use the Raspberry as well, this gives me useful hints.

But about the basic structure for me it is not yet clear. Up to now I used /usr or /opt folders to implement my applications. Is it convenient to implement features for external sensors in /sys or /proc?

a4z 06-15-2015 06:48 AM

when you implement a kernel driver, you will possible have some entries in /sys and or /proc but you will nothing copy there, you create files there
https://en.wikipedia.org/wiki/Sysfs
http://www.tldp.org/LDP/Linux-Filesy...html/proc.html

so I think you can stay in /usr and /opt

I suggest you go through some of the Rasperry tutorials from the begin to the end
it will make things


All times are GMT -5. The time now is 06:37 PM.