Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

info:How to use a config file ms_cfg.ini/microSD #10

Open
neilh10 opened this issue Apr 10, 2020 · 1 comment
Open

info:How to use a config file ms_cfg.ini/microSD #10

neilh10 opened this issue Apr 10, 2020 · 1 comment

Comments

@neilh10
Copy link
Owner

neilh10 commented Apr 10, 2020

This documents how the external configuration file on the mayfly uSD can be build.
See Feature-notes and
Feature-INI-file.
config EEPROM from ini

This is initially configured for a Mayfly 0.5b, with a Digi Xbee WiFi S6, with an microSD,
It can be simply reconfigured for a Digi Cell Cat M1, by changing one line in the "ms_cfg.h"

with a git environment (I use Git Bash), step to your enviroDIY git directories and create a new release tree and clone into it.
Mine is on a Windows10 pro at D: at "Documents/Arduino/env"
$cd d/usr/a/Documents/Arduino/env
$ mikdr envDIY_neilh10
$git clone git@github.com:neilh10/ModularSensors.git ModularSensors_neilh10
$cd ModularSensors_neilh10
$git checkout release1 <-- default should already be here
$git checkout -b <--eg rel1_tu_id01 this captures any changes you make
From PlatformIo (PIO), start up and open the folder (with your path)
ModularSensors_neilh10/examples/tu_id01

and then build it.
This should be download able and run.

The uSD should be created, and the example file
ModularSensors_neilh10/a/tu_id01/src/ms_cfg.ini copied to it.
The ms_cfg.ini was initially set per the
https://monitormywatershed.org/sites/tu_id_test01/
and you'll have to make changes for your own site.

Insert the uSD.
open a terminal to the mayfly USB and should look like this

BEGIN TTY>>>>>>>>>>>>>>>>>

Now running 'src\tu_id_ctd.cpp' on Logger msLog01
Using ModularSensors Library version 0.24.5
TinyGSM Library version 0.10.1

Logger timezone is set to UTC -8
RTC timezone is set to UTC
---parseIni
Successfully connected to SD Card with card/slave select on pin 12 <--LoggerBase
COMMON LoggerId Set: TU-ID-Test01a

setLoggerId cp TU-ID-Test01a sz: 15 <--LoggerBase
COMMON LOGGING_INTERVAL_MINUTES set to: 5(min) from default 5
COMMON LiIon Type: 2
COMMON Set TimeZone ; -8
NETWORK WiFiId: was 'Arthur2004Sid
setWiFiId cp Arthur2004Sid sz: 13 <--DigiXBeeWifi
' now 'Arthur2004Sid'
NETWORK WiFiPwd: was 'yyy now 'xxx'
PROVIDER Setting cloudId: data.enviroDIY.com
PROVIDER Setting registration token: 7ff7ae1b-9274-4376-afa8-8bf5a64f9b4f
PROVIDER Setting SamplingFeature: 42c01940-952e-4a68-9d34-f8203cd0dd18
0:CTD10_DEPTH_UUID={d81f73a0-5c02-4b19-8280-13514bd6b4bf UUID not supported
1:CTD10_TEMP_UUID={2d2b543e-a721-4393-8a9f-f3f928d04ac3 UUID not supported
2:CTD10_COND_UUID={299a9420-fcc2-4778-b410-a1182c31ab20 UUID not supported
3:DHT_TEMP_UUID={582101bf-1dfb-4771-8665-532074a3ceef UUID not supported
4:DHT_TEMPF_UUID={7339f31e-72b3-457a-9778-836aee38fa56 UUID not supported
5:DHT_HUMID_UUID={a01ef396-dad2-4cdc-b09e-410203d93ebb UUID not supported
6:DIGI_RSSI_UUID={ec937dc1-a40e-41e3-946f-443f3af680ba UUID not supported
7:Batt_UUID={479f16f0-1e46-4d3e-8a80-286b7997608e} match & added.
8:SampleNumber_UUID={737aacd2-0259-4be1-9190-07308b9fdae4} match & added.
Parse ini; ms_cfg.ini
Error on line : 25

---parseIni complete
---dataLogger.begin <--tu_ctd
Logger ID is: TU-ID-Test01a <--LoggerBase
Logger is set to record at 5 minute intervals. <--LoggerBase

END TTY<<<<<<<<<<<<<<<<<<<,

@neilh10
Copy link
Owner Author

neilh10 commented Feb 12, 2021

@neilh10 neilh10 changed the title How to use a config file ms_cfg.ini/microSD info:How to use a config file ms_cfg.ini/microSD Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant