Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing ~/.comet/config.yaml #7

Closed
boneymoy opened this issue Sep 12, 2023 · 3 comments
Closed

Missing ~/.comet/config.yaml #7

boneymoy opened this issue Sep 12, 2023 · 3 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@boneymoy
Copy link

When trying to run test.py or a specific hdc1080_i2c_test.py I get the following error:

FileNotFoundError: [Errno 2] No such file or directory: '/home/xxx/.comet/config.yaml'
  1. Install on Raspberry Pi 3 Model b+ running Raspbian 11 (Kernel 6.1.21-v7+)
pip3 install ecomet-i2c-sensors
  1. Run test.py from git
python3 test.py
  1. Get error
FileNotFoundError: [Errno 2] No such file or directory: '/home/xxx/.comet/config.yaml'

Cannot seem to find information about the config.yaml and what SMD information is needed.

Hope you find time to help me with this issue/bug.

Best regards,
Tim.

@mamin27
Copy link
Owner

mamin27 commented Sep 13, 2023

Excuse Tim,

I forgot to document it.

Here is example of the file:

comet@orangepizero2:~/.comet $ cat config.yaml
--- # The I2C config file

i2c:
    smb: i2c-3 # set bus i2c-1
    smb_detect: 0..3 # list of monitored smb bus by i2cdetect
    eeprom:
      ic: '24c01'
      slaveaddr: 0x50
      writestrobe: 26 # hold pin low to write to eeprom
parameter sub-parameter description example value
smb: name of active i2c in /dev i2c-1
smb_detect: list of monitored i2c neworks used by command i2c_ecomet_detect 0..1
eeprom: eeprom section
ic: 24x00 series of eeprom chip name '24c01'
slaveaddr: address of eeprom chip in hex 0x50
writestrobe: GPIO pin number used as CS (chip select) signal for eeprom IC 26

Note: Currently only one eeprom chip could be added.

@mamin27 mamin27 self-assigned this Sep 13, 2023
@mamin27 mamin27 added the documentation Improvements or additions to documentation label Sep 13, 2023
@mamin27 mamin27 pinned this issue Sep 13, 2023
@mamin27
Copy link
Owner

mamin27 commented Sep 18, 2023

Documentation added in main page.

@mamin27 mamin27 closed this as completed Sep 18, 2023
@boneymoy
Copy link
Author

Great, thanks a lot. It works :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
Development

No branches or pull requests

2 participants