Skip to main content

temperature-snspds-influx, a tool to publish SNSPDs temperatures (from the CTC100) to an influx database.

Project description

Temperature SNSPDs influx

This script is used to monitor the temperature of a SNSPDs system (IDQ 281 SNSPD system in this case), running with the SRS CTC100 Temperature controller. In particular, the scripts periodically retrieves the temperature value from the CTC (using USB or Ethernet interface) and write the values to an Influx time series database.

Outside of this script, the data is visualized using Grafana.

Installing the package

The software can be installed from Pypi using the following command:

pip install temperature-snspds-influx

or

python -m pip install temperature-snspds-influx

You can check that the package has been succesfully installed by executing the command:

temperature-snspds-influx --version

or

python -m temperature_snspds_influx --version

The command help can be retrieved with -h or --help.

Configuration

The example configuration file can be copied to the current directory in the config.toml file by simply running the temperature-snspds-influx script (with no file located at the target file). The target file can be changed with the -f or --file command line parameter.

All the parameters of the configuration file must be set.

The example configuration file is displayed below and can be found here:

# Configuration file for temperature-snspds-influx.

[influx]

# Endpoint of the influx database.
endpoint = ""

# Token to use for influxdb.
token = ""

# Name of the database to write to.
db = ""

[ctc]

# Method to connect to the CTC. It should be either "usb" or "ethernet".
method = ""

# Address of the CTC. It should be a COM port or tty for USB
# and ip_address:port for ethernet.
address = ""

# Name of the instrument that recovers the data.
instrument = ""

# Number of digits requested to the CTC (1, 2, 3, 4, 5 or 6).
precision = 6

Running the script

The script can be executed with the following command:

temperature-snspds-influx -f config.toml -l temperature-snspds-influx.log -vvv

where the -f config.toml is to make it explicit in this example, the -l temperature-snspds-influx.log to set a log file and -vvv to specify a log level.

License

This software is released under the MIT license. For more details, check the LICENSE file or visit https://opensource.org/licenses/MIT.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

temperature_snspds_influx-0.1.0.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

temperature_snspds_influx-0.1.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file temperature_snspds_influx-0.1.0.tar.gz.

File metadata

  • Download URL: temperature_snspds_influx-0.1.0.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.11 Linux/6.18.3-arch1-1

File hashes

Hashes for temperature_snspds_influx-0.1.0.tar.gz
Algorithm Hash digest
SHA256 05fac2a9507dadebd960fe968a6ebea348c9f7be3573570e9fd419e490d2559f
MD5 28f9d554b36002ed88c18d551c7fbef6
BLAKE2b-256 9140f5c8d0bb37102f6a2b60cb5c085760e46ef6a3c6d0e8718e271e5a63aef9

See more details on using hashes here.

File details

Details for the file temperature_snspds_influx-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for temperature_snspds_influx-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 01ce1366a651d15b5b6853b732f9b46c731a87e32381e873c0fc9ea1268c6973
MD5 48e971f9c59e2bfc456f805fe305b7fe
BLAKE2b-256 1edb8d6e1c88e09515b0bc1abbb5ce3cd27224cd79bd9b99ca991bc967767b16

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page