EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024 
<== Date ==> <== Thread ==>

Subject: Re: [Ext] Re: Room temperature and humidity monitoring with EPICS?
From: Jesse Hopkins via Tech-talk <tech-talk at aps.anl.gov>
To: Matt Newville <newville at cars.uchicago.edu>
Cc: EPICS Tech Talk <tech-talk at aps.anl.gov>
Date: Mon, 13 Nov 2023 11:17:04 -0600
Hi Matt,

Thanks! Looks pretty straightforward, but if I have questions I may ping you once I have the sensors.

All the best.

- Jesse

----
Jesse Hopkins, PhD
Deputy Director
BioCAT, Sector 18
Advanced Photon Source


On Mon, Nov 13, 2023 at 9:53 AM Matt Newville <newville at cars.uchicago.edu> wrote:
Hi Jesse, 

Sorry for the delay.   What I do is fairly simple.  For each sensor, I load a small record into a softIOC with
        dbLoadRecords("esensor.db","P=13IDE:,Q=Esensor")

in the startup script and with the "esensor.db" of (also attached):

####
# record used for Esensor temperature, humidity sensors
record(ai,"$(P)$(Q):TempF") {
           field(DESC, "Temperature (F)")
           field(VAL,  "0")
}

record(ai,"$(P)$(Q):TempC") {
        field(DESC, "Temperature (C)")
        field(VAL,  "0")
}

record(ai,"$(P)$(Q):Humid") {
          field(DESC, "Humidity (percent)")
          field(VAL,  "0")
}

record(stringin, "$(P)$(Q):TimeStamp") {
           field(DESC, "Timestamp of last update")
           field(VAL,  "")
}
####

Then, I run a Python script (attached) to read the sensor (over plain HTTP), parse the results, and push to PVs.  The script handles both older Esensors that send data as XML, and newer ones that send JSON data.  You could probably put that script inside procServ or something like that but I just have it running as a simple background script.  

--Matt


On Fri, Nov 10, 2023 at 4:15 PM Jesse Hopkins <jhopkins1 at iit.edu> wrote:
Hi folks,

Thanks to everyone who shared what you're using! I think what Matt or Pierrick suggested are right in line with what I had in mind.

The price point on something with temperature and humidity is a bit better from the Esensors that Matt shared, so that's where I'm leaning. Matt, if you'd be willing to share your python script that would be great. I was looking at the EM32-Xe, because the display would be a nice feature to have. Have you used that one?

All the best.

- Jesse

----
Jesse Hopkins, PhD
Deputy Director
BioCAT, Sector 18
Advanced Photon Source


On Fri, Nov 10, 2023 at 12:37 PM Matt Newville <newville at cars.uchicago.edu> wrote:
Hi Jesse, 

We have a few of the Esensors temperature/humidity sensors in our hutches, including the EM32-Le  https://eesensors.com/products/websensors/environmental-monitor-sensor.html 

These have a simple magnetic mount and an ethernet port.  They provide a simple web app to read the temperature and humidity. But, there is also an HTTP API to get XML or JSON (depending on the generation of the sensor) with the data. Fetching and reading those values and putting them into Epics PVs is pretty straightforward.  I'd be happy to share the Python script we use to read multiple meters and put them into PVs so we can monitor temperature and humidity and put those values into metadata.

--Matt


On Fri, Nov 10, 2023 at 11:47 AM Jesse Hopkins via Tech-talk <tech-talk at aps.anl.gov> wrote:
Hi folks,

We're looking for a way to monitor humidity and temperature in our experimental enclosures (beamline hutches), with readings that we can access via EPICS. I'd prefer something ethernet based, and low cost is always good. I strongly suspect folks in the EPICS community have already done this in a variety of ways, though I wasn't able to turn anything obvious up in a search. 

Does anyone have a good solution that you're using?

I suspect that if there's nothing else out there I could just buy some analog input boxes (e.g. LabJack or Measurement Computing) and hook up a couple of sensors, but I'm hoping there's a better/cheaper solution.

All the best.

- Jesse

----
Jesse Hopkins, PhD
Deputy Director
BioCAT, Sector 18
Advanced Photon Source


--
--Matt Newville <newville at cars.uchicago.edu> 630-327-7411


--
--Matt Newville <newville at cars.uchicago.edu> 630-327-7411

References:
Room temperature and humidity monitoring with EPICS? Jesse Hopkins via Tech-talk
Re: Room temperature and humidity monitoring with EPICS? Matt Newville via Tech-talk
Re: [Ext] Re: Room temperature and humidity monitoring with EPICS? Jesse Hopkins via Tech-talk
Re: [Ext] Re: Room temperature and humidity monitoring with EPICS? Matt Newville via Tech-talk

Navigate by Date:
Prev: Re: [Ext] Re: Room temperature and humidity monitoring with EPICS? Matt Newville via Tech-talk
Next: Re: Room temperature and humidity monitoring with EPICS? J. Lewis Muir via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024 
Navigate by Thread:
Prev: Re: [Ext] Re: Room temperature and humidity monitoring with EPICS? Matt Newville via Tech-talk
Next: Re: Room temperature and humidity monitoring with EPICS? Gerrit Kühn via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024 
ANJ, 13 Nov 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·