I have a python script with the following output:
$ sudo ./demo.py --backend bluepy poll C4:7C:8D:xx:xx:xx
Getting data from Mi Flora
FW: 3.1.8
Name: Flower care
Temperature: 17.4
Moisture: 39
Light: 138
Conductivity: 513
Battery: 99
I would like to use these output lines as bash variables in a bash script:
FW (=3.1.8), NAME (="Flower care"), TEMPERATURE (=17.4), MOISTURE (=39), LIGHT (=138), CONDUCTIVITY (=513), BATTERY (=99)
Any ideas how to do that?
demo.pyto make the output easier to process