A logger for environment data.
I am not registered gem file to gem.org at the moment, so build a gem file by yourself.
$ bundle install
$ rake build
Use the file to install it with the gem command.
$ gem install pkg/envlog-0.x.x.gem
This gem also uses MySQL (or MariaDB) and SQLite3 as its choice. for this reason, dependencies for the database interface are not specified in gemspec . Please install one of the gems beforehand.
$ gem install sqlite3
or
$ gem install mysql2
Both can be built using PlatformIO. Edit the source "src/main.ino" and change the settings, and then build it as follows.
$ pio run
If you want to upload to your device, do the following:
$ pio run -t upload
This process is receiving data from a sensor and registering it in the database. Data can be received input by serial device via gateway device or by UDP and TCP available. You can choose to use either SQLite3 or MySQL(MariaDB) as the database.
envlog-logger [options]
options:
-c, --config-file=FILE
-s, --dump-config-template
-l, --list-device
-a, --add-device=ADDR,POWER-SOURCE,DESCR
-r, --remove-device=ADDR
It works as an HTTP server for referencing stored data.
envlog-viewer [options]
options:
-c, --config-file=FILE
-s, --dump-config-template
-A, --add-user
--develop-mode
T.B.D
ince version 0.9, the data recording table has been changed (table DATA_TABLE to DATA_TABLE_V2). Use the "op/upgrade" script if you want to inherit the previous data.
ruby opt/upgrade -c <CONFIG-FILE>
When the migration is complete, the old table (DATA_TABLE) is not required and can be deleted.
Bug reports and pull requests are welcome on GitHub at https://github.com/kwgt/envlog
it is use the modified version of the 『特撮映画のイラスト』(https://www.irasutoya.com/2018/12/blog-post_90.html) distributed at いらすとや (https://www.irasutoya.com).
The gem is available as open source under the terms of the MIT License.