Update import.py
Some checks failed
/ test (push) Has been cancelled

This commit is contained in:
frank 2024-08-10 14:55:55 +00:00
parent 517c77653d
commit b1d1f1f50b

View file

@ -1,4 +1,3 @@
import os import os
import time import time
import requests import requests
@ -10,7 +9,7 @@ def get_data(ts_start: int, ts_end: int, device_id: str, module_id: str, metrics
'Accept': 'application/json, text/plain, */*', 'Accept': 'application/json, text/plain, */*',
'Accept-Language': 'en-US,en;q=0.5', 'Accept-Language': 'en-US,en;q=0.5',
# 'Accept-Encoding': 'gzip, deflate, br, zstd', # 'Accept-Encoding': 'gzip, deflate, br, zstd',
'Authorization': 'Bearer 52d42bfc1777599b298b456c|7fe6f41be4d58dc5fd63f91ae66a8054', 'Authorization': 'Bearer 52d42bfc1777599b298b456c|24df9731beeed2ddfc71aaea971a367e',
'Content-Type': 'application/json;charset=utf-8', 'Content-Type': 'application/json;charset=utf-8',
'Origin': 'https://weathermap.netatmo.com', 'Origin': 'https://weathermap.netatmo.com',
'DNT': '1', 'DNT': '1',