Nicolas Küchler
Nicolas Küchler
Generally I would recommend to run the application in a setup with Gunicorn and Nginx. However, if you only want to try it out, you don't need them. After installing...
@bachoo786 it asks you to set a password (you choose one). it is the password that you then later need in order to receive a bearer token on this endpoint:...
you cannot access it with your webbrowser, instead you have to login with a post request. I recommend to use postman (because there is a collection in the repo which...
I think there is a different problem because you get the connection refused error. What you should see if you open the url with your browser is the following message:...
@bachoo786 yes, you have to keep this running. This is a flask server, that continuously runs. You might need to google for keyring locations or you can search the raspberry...
ohh sorry, I think you need to use port 5000. `http://192.168.0.19:5000/switchbot/api/v1/login`
if you don't need the rest api and you just want a script which pushes the switchbot for 2 min. The following script: ```python from switchbot import Bot from switchbot...
```python from switchbot import Bot bot = Bot(id=1, mac="MAC_ADDRESS", name="your name") # change the hold time to 2 minutes (you only need to do this once) bot.set_hold_time(120) # press the...
This check is there because the switchbot only accepts a hold time up to one minute. So you cannot do what you want directly. However, there is a workaround. You...
@bachoo786 sorry I had a typo. I updated the script above.