pvachon / gm1356 Goto Github PK
View Code? Open in Web Editor NEWTool to read noise level from a USB-connected GM1356 Sound Level Meter
License: BSD 3-Clause "New" or "Revised" License
Tool to read noise level from a USB-connected GM1356 Sound Level Meter
License: BSD 3-Clause "New" or "Revised" License
I am trying to log all measurements to a log file, preferably named like "/var/log/gm1356/20220613.txt"
Using the README file, I have managed to compile, run splread as a service on a Debian/Ubuntu system.
However, how do I send the output of this service splread to a local log file?
Can I use the created socket for this? Or should I change the service configuration to append all data to a log file?
I would really appreciate a simple step by step explanation how to do this, as my Linux skills are a bit limited.
Thank you,
Yaspr
First of all: thank you so much for this repo! I spent a very frustrating weekend trying to get this sound level meter working with my pi and was about to give up when I came across your repo and it enables me to read the data fine so thanks very much!
I do have one pretty annoying issue though - if I run splread
and then quite it (using ctrl c in a console) the process stops but I am unable to start it again without rebooting my pi! I get the following when I try to restart it:
SPL-I-STARTUP, Starting the Chinese SPL Meter Reader (splread.c:409 in main)
SPL-I-POLL-INTERVAL, Setting poll interval to 1000 milliseconds (splread.c:365 in _parse_args)
SPL-I-DEVICE, Device found: 64bd:74e3 path: 0001:0003:00 serial: (null) (splread.c:147 in splread_find_device)
SPL-E-REQUEST-FAIL, Failed to write 8 bytes to device (wrote -1): hid_error is not implemented yet (splread.c:215 in splread_send_req)
SPL-F-CONFIG-FAIL, Failed to set configuration for SPL meter, aborting (splread.c:296 in splread_set_config)
SPL-F-BAD-CONFIG, Failed to load configuration, aborting. (splread.c:434 in main)
I am afraid that I know NOTHING about C++ and reading through the code makes very little sense to me! Can you give me any pointers on how to fix this issue?
Many thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.