-
Notifications
You must be signed in to change notification settings - Fork 2
Various tweaks/fixes to run python manually on RPi #10
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
base: main
Are you sure you want to change the base?
Conversation
These are the changes I found I had to make when running this on my Raspberry Pi
MiguelNdeCarvalho
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have just proposed some things that we could improve in my opinion, but give me yours too :D
| 2. **Enter the repo folder** - `cd speedtest-exporter` | ||
| 3. **Install python modules** - `pip install -r requirements.tx` | ||
| 4. **Execute the exporter** - `python src/exporter.py` | ||
| 3. **Install python modules** - `pip install -r requirements.txt` (or `pip3` if outside a virtual env) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think here we could only use pip3
| 3. **Install python modules** - `pip install -r requirements.tx` | ||
| 4. **Execute the exporter** - `python src/exporter.py` | ||
| 3. **Install python modules** - `pip install -r requirements.txt` (or `pip3` if outside a virtual env) | ||
| 4. **Execute the exporter** - `python src/exporter.py` (or `python3` if outside a virtual env) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here we could use only python3 too
| scrape_timeout: 1m | ||
| static_configs: | ||
| - targets: ['speedtest-exporter:9798'] | ||
| - targets: ['localhost:9798'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we explain here, that this localhost is the address from where the exporter is running?
| 2. **Enter the repo folder** - `cd speedtest-exporter` | ||
| 3. **Install python modules** - `pip install -r requirements.tx` | ||
| 4. **Execute the exporter** - `python src/exporter.py` | ||
| 3. **Install python modules** - `pip install -r requirements.txt` (or `pip3` if outside a virtual env) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should include the src/ prefix here too
| 3. **Install python modules** - `pip install -r requirements.txt` (or `pip3` if outside a virtual env) | |
| 3. **Install python modules** - `pip install -r src/requirements.txt` (or `pip3` if outside a virtual env) |
These are the changes I found I had to make when running this on my Raspberry Pi