Hello everyone.

This month I started the development of an opensource application for the 
acquisition of meteorological data in developing countries.

The datalogger is composed of a Raspberry PI with Ubuntu and WEEWX 
installed on using the Python tool setup.py.

The developed software periodically read the ambient data  (temperature, 
pressure and so on ...) from different sensors, prepare a text file read by 
WEEWX (for flexibility reasons, the acquisition software pass data to 
WEEWX, using text files read by fileparse driver). 

Finally, WEEWX collect the physical quantities in a Sqlite3 database and 
create reports. 

During the development period I have already solved various problems 
encountered, by carefully reading the documentation and several posts in 
this forum.

Unfortunately, I'm finding problems about the ability  through WEEWX to 
manage an optional sensor (a commercial water sensor level, used to acquire 
the water level in a river) and then ask for help.

Actually, my software collect data from the sensor level correctly, and I 
want to pass these values to WEEWX. 

Since it is an optional sensor, I had thought of managing the sensor data 
using a different WEEWX process, passing the data to the fileparse driver 
to store them in the weewx SQLite3 database. 

I have an even limited experience on WEEWX, so I still don't know how you 
could correctly configure the program to manage the 3 variables read by the 
sensor:

1. "temp": the external temperature measured, in celsius degrees
2. "'Battery_SOH": battery state of health, a percentage value that 
represents the charge status of a non-rechargeable battery. It is necessary 
to monitor the charge status to check when physically change the battery.
3. "'level": distance of sensor from water, in centimeters

For example, In base of weewx documentation (particolarly, [WeeWX: 
Customization 
Guide](https://www.weewx.com/docs/customizing.htm#aggregation_types)), I 
see that I could assign the sensor temperature to outTemp, but I don't know 
what standard weewx variable (corrispondent to a column of the sqlite 
database) I can assign to "Battery_SOH" and "level"  and to also draw the 
graphs using the configured skin.
What are the steps I need to follow to configure weewx correctly in this 
case?

In particular, there are numerous WEEWX variables that can be used to 
monitor sensor power supplies, but the measurement units are expressed in 
Volts. In my case, Battery_SOH is expressed with a percentage value of full 
charge.

Thank's for collaboration.

Marco Rainone - ICTP Wireless Lab
Wireless | T/ICT4D Lab (ictp.it) <http://wireless.ictp.it/>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/aad76f85-4e21-43bb-8bc8-7a30f84fc4acn%40googlegroups.com.

Reply via email to