this Script uses the library found here:
https://pypi.org/project/python-xsense/
the github repo is here: https://github.com/theosnel/python-xsense
sudo -i
python3 -m venv myenv
source myenv/bin/activate
pip install python-xsense
pip install aiohttp
nano sync-xsense.py
from xsense import XSense
from xsense.utils import dump_environment
api = XSense()
api.init()
api.login(username, password)
api.load_all()
for _, h in api.houses.items():
for _, s in h.stations.items():
api.get_state(s)
dump_environment(api)
[CTRL] x -> y -> Enter
python3 sync-xsense.py >> daten.txt
python3 process.py