dreadnought / python-daly-bms

Python module for Daly BMS devices
MIT License
86 stars 39 forks source link

running in windows? #4

Closed spilegi closed 3 years ago

spilegi commented 3 years ago

Will this run in linux only? It's working great on my Raspberry PI's, but not withing windows.

dreadnought commented 3 years ago

I've not tested it yet, but theoretically it should work. How did you try to execute it? What output did you get?

pySerial is used for the serial connection. After taking a look at their documentation I think that using COM1 (or whatever number your COM port has) instead of /dev/ttyUSB0 for the -d parameter should be work on Windows.

spilegi commented 3 years ago

@dreadnought I apologize it does work in windows. I'm not as familiar with python in windows as I am with it in linux.

For anyone else that come across this, pip defaults it to: C:\Users[username]\AppData\Roaming\Python\Python39\Scripts which is not in the path file by default Once I ran it from the directory it worked.

Screenshot 2021-07-09 165704

@dreadnought thanks for the software. I had been using another github project sending the data to a MQTT as a necessary step, this will allow be to put it right in the DB