Page 1 of 1
DP1500/GW1000 and logging additional sensors
Posted: Sat 04 Jul 2020 2:00 pm
by philpugh
Just bought and installed a Froggit WH3000SE (has DP1500 but no console display) and it is now running in 'test mode' with CumulusMX running on a RPi 3A.
All working quite well and data is reassuringly very close to my trusty Davis VantageVue.
Just one thing is puzzling me at present. The package from Froggit comes with an additional indoor Temp/Humidity sensor which connected without a problem and I can see the data on the WS-View app on my iPad - but it doesn't appear to be logged by CumulusMX automatically. Is this correct - I have the
LogExtraSensors=1
set in cumulus.ini but no values appear in any of the three SQL tables.
Cheers
Phil
Re: DP1500/GW1000 and logging additional sensors
Posted: Sat 04 Jul 2020 2:58 pm
by Mapantz
For extra sensors, you would have to add an SQL insert to the custom SQL uploads, either second/minutes/hours.
For example, I have this inserting at 1 minute intervals:
Code: Select all
INSERT IGNORE INTO Realtime (LogDateTime,SoilMoisture,AirQuality) VALUES ('<#date format=yyyy-MM-dd> <#time format=HH:mm:ss>',<#SoilMoisture1>,<#AirQuality1>); DELETE FROM Realtime WHERE LogDateTime < DATE_SUB(NOW(), INTERVAL 96 HOUR);
Re: DP1500/GW1000 and logging additional sensors
Posted: Sat 04 Jul 2020 4:34 pm
by sfws
philpugh wrote: ↑Sat 04 Jul 2020 2:00 pm
it doesn't appear to be logged by CumulusMX automatically. Is this correct - I have the
LogExtraSensors=1
set in cumulus.ini but no values appear
You claim not logged because you cannot see it in database tables, but I expect MX does log it, it should appear in the
https://cumuluswiki.org/a/Extra_Sensor_Files which can be viewed in the admin interface
Data Logs menu, and
Extra logs page.
When the next release is available (build 3087), there will be an option on
extra log files settings page to upload these extra sensor log files more easily than at present (look at the wiki reference above), as Mark has already edited the Wiki (elsewhere) to say that! Plus from the same build these extra sensor log files will be backed up whenever the standard log files are backed up, making your reading safer!
You still need to write your own code to add these into database tables.
EDIT (repeated to get right): Unless Mark has plans re this that I don't know about!
Re: DP1500/GW1000 and logging additional sensors
Posted: Sat 04 Jul 2020 4:36 pm
by philpugh
Thanks for that. I was rather hoping to get away without! I have had to do similar to integrate some home brew equipment!