I need to record temperatures to a SQLite-DB on a linux system (using bash)
My problem is that I get the temperature readings in an individual file. How can I get that reading into the SQLite command
sqlite3 mydb "INSERT INTO readings (TStamp, reading) VALUES (datetime(), 'xxx');"
The file contains just one line with the value "45.7" and should replace the xxx. Using fix data the SQL command works pretty well.
.importCLI command: sqlite.org/cli.html