This repository has been archived by the owner on May 13, 2024. It is now read-only.
Releases: medienlampe/RadiaCodeCSVConverter
Releases · medienlampe/RadiaCodeCSVConverter
v1.1.0
v1.1.0 – It's About Time
Fixes
- fixes
polynomialOrder
andchannels
being mixed up - fixes
formatVersion
not being rendered
Features
- adds
measurementTime
to enhance compatibility with BecquerelMonitor- make sure you add -t to your file names, e.g.
measurement.csv
which took 2000 seconds should becomemeasurement-t2000.csv
- make sure you add -t to your file names, e.g.
v1.0.0 - Initial Release
RadiaCode-101 CSV-to-XML Converter
Converts exported CSV files by the RadiaCode-101 pocket gamma spectrometer into XML.
Prerequisites
- this script needs Node 11+
Usage
- Clone this repository
- Copy
config.json.sample
toconfig.json
and adjust your settings- You can find most of the values inside the device settings menu of the RadiaCode-101 Windows application
- Put all the CSV files you want to convert into the folder
./input
- Run the script with
npm start
ornode convert.js
- You can find the converted files in the folder
./output
afterwards
Configuration
The config-sample.json
contains everything you need to setup a config.json
for a single webhook endpoint deploying multiple projects:
{
"serialnumber": "RC-101-000000",
"coefficients": [
0.193228,
9.5851,
0.00662241
],
"devicename": "RadiaCode-101",
"polynomialorder": 2,
"formatversion": 120920,
"channels": 256
}
Setting | Description |
---|---|
serialnumber |
The serial number of your device (change this to your value if you feel like it) |
coefficients |
The calibration coefficients of your device, which can be found in the Android and Windows applications |
devicename |
The device model (doesn't need to be changed) |
polynomialorder |
The device's polynomial order setting (doesn't need to be changed) |
formatversion |
The current XML format version (doesn't need to be changed) |
channels |
The channels to display, for the RadiaCode-101 this is 256 for now and doesn't need to be changed |