Simple Python Script to Extract the current Data from the Sunnyportal using Python
This only contains a simple example to show you how to get data from the portal Furthermore it demos how to use /~https://github.com/wendlers/ediplug-py to turn on a ediplug
- Download or clone repository
- create a config.json file in the main folder containing email and password for the sunnyportal as well as the ip adress of your smartplug and its password
{
"email": "",
"password": "",
"spip": "",
"sppassword": ""
}
- pip install requests
- Execute main.py