-
Notifications
You must be signed in to change notification settings - Fork 34
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
Syntax Error when trying to start vpower #16
Comments
Try |
@oldnapalm you beat me to it by a few seconds :-) |
@dhague there was another post about this here #12 (comment) I don't have a Pi to confirm, but I suppose the commands (python and pip) should be updated in the README. Also, the prints in https://bitbucket.org/MattHawkinsUK/rpispy-misc/raw/master/python/bme280.py need to be updated. |
Thanks for that getting a little further now.. I had run the requirements to build ant However when I run sudo python3 vpower.py ../vpower.cfg I unfortunately see another error pi@raspberrypi:/boot/vpower $ sudo python3 vpower.py ../vpower.cfg |
Apologies, the documentation needs updating to use Python 3. In this case, |
Thanks for the reply Duh Silly me I should have guessed that. Sorry to bother you again... Looks better now :-) Are the speed values entered in kmh, mph or ms? I'm going to propose a formula for the trainer I use the Elite chrono fluid using a poly nominal formula as you've done for the kurt kinetic but for now I've just updated the curves file with values for my trainer. |
If you mean in curve.csv, speed is in km/h. If you mean in the polynomial, you can use what you want, https://github.com/dhague/vpower/blob/master/KurtKineticPowerCalculator.py#L22 |
Many thanks for pulling this together. Unfortunately I'm getting an error when trying to start on my PI.
pi@raspberrypi:/boot/vpower $ sudo python vpower.py ../vpower.cfg
Traceback (most recent call last):
File "vpower.py", line 10, in
from PowerMeterTx import PowerMeterTx
File "/boot/vpower/PowerMeterTx.py", line 66
print(f'Power: {int(power)} W \r', end="")
^
SyntaxError: invalid syntax
pi@raspberrypi:/boot/vpower $
All files currently set to default values.
The text was updated successfully, but these errors were encountered: