howto:smartmeter
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
howto:smartmeter [2023/07/14 22:04] – [n3rgy.com] Wulf Rajek | howto:smartmeter [2025/02/18 12:21] (current) – Wulf Rajek | ||
---|---|---|---|
Line 9: | Line 9: | ||
Once signed up, zip files with data can be downloaded from the consumer portal. The zip file download contains half-hourly data up to the previous day. | Once signed up, zip files with data can be downloaded from the consumer portal. The zip file download contains half-hourly data up to the previous day. | ||
- | Further to the zip file download, n3rgy.com also offers a consumer API. The API contains data of the current day as well, but it is delayed. Test at 9am shows data up to 6.30am and at 10pm up to 6pm of the same day. | + | Further to the zip file download, n3rgy.com also offers a consumer API. The API contains data of the current day as well, but it is delayed. Test at 9am shows data up to 6.30am and at 10pm up to 6pm, 10.30pm up to 9pm of the same day. |
Example scripts: https:// | Example scripts: https:// | ||
Line 22: | Line 22: | ||
import requests | import requests | ||
import pandas as pd | import pandas as pd | ||
+ | import datetime | ||
+ | |||
+ | start = datetime.date.today().strftime(" | ||
+ | end = (datetime.date.today() + datetime.timedelta(days=1)).strftime(" | ||
+ | |||
AUTH = " | AUTH = " | ||
headers = {' | headers = {' | ||
url = " | url = " | ||
path = ' | path = ' | ||
- | query = '? | + | query = '? |
api_url = url + path + query | api_url = url + path + query | ||
r = requests.get(url=api_url, | r = requests.get(url=api_url, | ||
Line 37: | Line 42: | ||
Octopus energy offers an API to access historic data and account data. Data is only available up to 1am of the current day. | Octopus energy offers an API to access historic data and account data. Data is only available up to 1am of the current day. | ||
+ | |||
+ | https:// | ||
Some code to access and work with the data can be found here: | Some code to access and work with the data can be found here: | ||
https:// | https:// | ||
https:// | https:// | ||
+ | |||
+ | ===== Octopus Agile Tools ===== | ||
+ | |||
+ | Homeassistant sensors: | ||
+ | https:// | ||
+ | |||
+ | ===== Links ===== | ||
+ | |||
+ | |||
+ | https:// | ||
+ | https:// | ||
+ | https:// | ||
+ | https:// | ||
+ | https:// | ||
+ | https:// | ||
howto/smartmeter.1689368660.txt.gz · Last modified: 2023/07/14 22:04 by Wulf Rajek