https://github.com/theaxelander/pythonscripts
https://github.com/theaxelander/pythonscripts
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/theaxelander/pythonscripts
- Owner: TheAxelander
- License: mit
- Created: 2024-03-16T17:44:39.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-18T07:48:08.000Z (almost 2 years ago)
- Last Synced: 2025-03-04T14:46:41.243Z (over 1 year ago)
- Language: Python
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Python Scripts
## Installation
Download [latest release](https://github.com/TheAxelander/pythonScripts/releases/latest) and install it via `pipx`
``` bash
apt install python3 python3-pipx
pipx install ./pythonScripts-x.x.x-py3-none-any.whl
```
Optionally create a venv for development
``` bash
git clone https://github.com/TheAxelander/pythonScripts.git
cd pythonScripts
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
```
## Configuration
Requires an `.env` file in `~/.config./python-scripts/` folder
```
# Redis
redis-server=my.redis.dev
redis-username=myuser
redis-password=mypassword
# Influx
influx-server=http://my.influx.dev:8086
influx-org=my-org
influx-token=mytoken
# MariaDb
mariadb-server=my.mariadb.dev
mariadb-user=dbuser
mariadb-password=dbpassword
# Telegram
telegram-token=mytoken
telegram-chat-id=mychat-id
```
Netatmo requires a credential file `~/.netatmo.credentials`
> Due to Netatmo continuous changes, the credential file is the recommended method for production use as the refresh token will be frequently refreshed and this file MUST be writable by the library to keep a usable refresh token.
``` json
{
"CLIENT_ID" : "myId",
"CLIENT_SECRET" : "mySecret",
"REFRESH_TOKEN" : "myRefresh|Token"
}
```