Skip to content

Commit

Permalink
fix config path
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrils committed Jul 4, 2023
1 parent 92c0ccd commit b63e5c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ if ($headers['Authorization'] != "Bearer 123456789") {
}
$json_data = json_decode(file_get_contents('php://input'), true);
```

## Compatibility
| Device | Adapter | Tested |
| -------- | :--------: | :--------: |
Expand Down
4 changes: 3 additions & 1 deletion example.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import logging
import configparser
import os
from renogybt import BTOneClient
from renogybt import DataLogger

logging.basicConfig(level=logging.DEBUG)
config_file = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'config.ini')

config = configparser.ConfigParser()
config.read('config.ini')
config.read(config_file)
data_logger: DataLogger = DataLogger(config)

def on_data_received(client: BTOneClient, data):
Expand Down

0 comments on commit b63e5c8

Please sign in to comment.