rasProject_01 / weSweetHome  R. 116 2026-05-14
process control       /     RasPi software         by   weinert-automation
Loading...
Searching...
No Matches
getOneWireData.c File Reference

A console program to fetch 1-wire sensor data. More...

#include "sysBasic.h"
#include "we1wire.h"
#include <sys/file.h>
#include <signal.h>
#include <errno.h>
#include <getopt.h>
#include "weUtil.h"
#include "sweetHome.h"
#include <dirent.h>

Variables

char const prgNamPure []
 The pure program name.
char const prgSVNdat []
 The complete SVN date string.
char const prgSVNrev []
 The complete SVN revision string.

Detailed Description

A console program to fetch 1-wire sensor data.

Copyright (c) 2018 2026 Albrecht Weinert
weinert-automation.de a-weinert.de
/ / /\
/ /___ / \ |
\ /____\ /____\ | _|__
\ /\ / \ / \| |
\/ \/ \__/ \__/|_

Revision history

Rev. 118 20.05.2026
Rev. 117 15.05.2026 : new; excerpt from getLocaWeatherData (not needing curl)
Rev. 118 23.05.2026 : -H -D -t added / repaired

Program functions

This programs reason for existence is the determination of the 1-wire sensors connected to the controller (the "pi") present. It also reveals their real location in the file system. Get this information by an program argument -s or –sensors.

For some extra functions use –help, -h or -?.

Cross build on PC by:

make PROGRAM=getOneWireData TARGET=meterpi clean all

program by:

make PROGRAM=getOneWireData TARGET=meterPi progapp

and the using the command displayed, like e.g. winscp.com /script=progTransWin /parameter sweet:0123 meterPi bin getOneWireData

Variable Documentation

◆ prgNamPure

char const prgNamPure[]

The pure program name.

To be provided in the application's / program's source.

See also
progNam() progNamB()

◆ prgSVNrev

char const prgSVNrev[]

The complete SVN revision string.

To be provided in the application's / program's source.

See also
progRev()

◆ prgSVNdat

char const prgSVNdat[]

The complete SVN date string.

To be provided in the application's / program's source.

See also
progDat()