Giter VIP home page Giter VIP logo

hobo-py's Introduction

Python package for working with HOBO temperature and RH data logger data.

At this time it supports HOBOware and HOBOmobile CSV exports from Onset models:
  * HOBO Pro v2 U23-001, U23-002
  * HOBO Pro H08-030-08, H08-032-08
  * HOBO MX2301, MX2302

It may or may not handle data from other HOBO loggers, though
HOBOware should produce a compatible CSV format for other similar hardware.
The data is assumed to have a timestamp field and a temperature field;
fields for relative humidity and battery are supported when present.

Data exported from the discontinued BoxCar Pro software is not yet supported,
nor is highly customized HOBOware .CSV output.


Example usage:

	from hobo import HoboCSVReader

	with HoboCSVReader('my_hobo_data.csv') as reader:

		print('Reading %s ...' % reader.fname)
		print('Serial Number: %s  Title: %s' % (reader.sn, reader.title))

		for timestamp, temperature, rh, battery in reader:
			print('%s   %03.1f F   %02.1f %%   %.1f V' % (timestamp, temperature, rh, battery))

	>>> Reading my_hobo_data.cvs ...
	>>> Serial Number: 10173910  Title: My Hobo Data"
	>>> 2017-01-13 01:00:00-08:00   31.4 F   79.6 %   3.5 V
	>>> 2017-01-13 02:00:00-08:00   31.4 F   78.9 %   3.5 V
	>>> 2017-01-13 03:00:00-08:00   31.4 F   77.9 %   3.5 V
	>>> 2017-01-13 04:00:00-08:00   31.3 F   77.2 %   3.5 V


License: As a work of the United States Government, this project is in the
public domain within the United States.

2016-02-24  David A. Riggs, Physical Science Tech, Lava Beds National Monument

hobo-py's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hobo-py's Issues

Context Manager

Add context management to HoboCSVReader class.

with HoboCSVReader('foo.csv') as reader:
    for timestamp, temperature, rh, battery in reader:
        do_whatever()

Support Old BoxCar CSV Files

The old BoxCar Pro software produced a more limited CSV output than does HOBOWare. Consider adding seamless support for these files (which were likely produced in the old "hockey puck" H08 days).

I don't have access to BoxCar Pro anymore, but it looks like this may be an example of its default output with a HOBO H08:

Date Time	Temperature (*C) c:1	High-Res Temp (*C) c:1 2	RH (%) c:3
07/07/03 10:45:40.0	26.34	26.22	48.3
07/07/03 11:45:40.0	24.4	24.35	44.2
07/07/03 12:45:40.0	22.86	22.76	45.7
07/07/03 13:45:40.0	22.86	22.69	46.7

Work with Raspberry Pi?

Hello! I was delighted to see this project! Does it work for Raspberry Pi? The Pi recognizes the HOBO Base Station that I have but I am stumped on next steps to get the Hobo to download data to the Pi. Any thoughts? Thank you very much!

HOBO Pro H08 HOBOware Export Fails

Here's an ancient HOBO Pro H08 data file (originally .dtf format) exported from modern HOBOware, demonstrating RH% values > 100.0:

"Plot Title: Secret Cave"
"#","Date Time, GMT-07:00","H08 Temp., °F (LGR S/N: 274341)","GCap. RH, % (LGR S/N: 274341)"
4,05/25/00 10:52:42 AM,37.20,102.90
5,05/25/00 11:08:42 AM,37.20,102.60
6,05/25/00 11:24:42 AM,37.20,102.60
7,05/25/00 11:40:42 AM,37.20,102.60
8,05/25/00 11:56:42 AM,37.20,102.60
9,05/25/00 12:12:42 PM,37.20,102.60
10,05/25/00 12:28:42 PM,37.20,102.60

Current release of hobo-py fails to detect its temperature column.

$ python -m hobo CRAI_0500-0501ALL.csv

Traceback (most recent call last):
  File "lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "lib/python2.7/site-packages/hobo.py", line 168, in <module>
    for row in HoboCSVReader(sys.argv[1]):
  File "lib/python2.7/site-packages/hobo.py", line 145, in __iter__
    if not row[self._itemp]:  # is this too lenient?
TypeError: list indices must be integers, not NoneType

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.