Hello,
fight with Kachelmann weather and try to create the string for the API access. Does anyone have a solution?
Many greetings
Karl-Heinz
Wetter API Kachelmann
- Khz
- Posts: 15
- Joined: Wed Jun 30, 2021 9:05 pm
- Location: Bayern, Lauenstein
- PeterN
- Posts: 392
- Joined: Mon Feb 08, 2021 7:56 pm
- Location: Krefeld, Germany
- Has thanked: 184 times
- Been thanked: 220 times
- Contact:
Re: Wetter API Kachelmann
Hi Karl-Heinz,
I have no experience with this particular API. But I have used the already built-in openweather API in this project: [Local Link Removed for Guests]
Could this be a workaround for your problem?
Viel Glück und Erfolg!
Peter
I have no experience with this particular API. But I have used the already built-in openweather API in this project: [Local Link Removed for Guests]
Could this be a workaround for your problem?
Viel Glück und Erfolg!
Peter
- Khz
- Posts: 15
- Joined: Wed Jun 30, 2021 9:05 pm
- Location: Bayern, Lauenstein
Re: Wetter API Kachelmann
Thank you Peter,
with OpenWaether has already achieved success. I could already read the tile with Python (but no python fan) here how to get to the tile man here:
###################################################
Import http.client
import json
conn = http.client.HTTPSConnection("api.kachelmannwetter.com")
headers = {
'Accept': "application/json",
'X-API-Key': "**************** KEY ********************************"
}
conn.request("GET", "/v02/forecast/50.514/11.369/3day?units=metric", headers=headers)
res = conn.getresponse()
data = res.read()
y = json.loads(data)
####################################################
One probably has to put the fat terms in a string. Many greetings
with OpenWaether has already achieved success. I could already read the tile with Python (but no python fan) here how to get to the tile man here:
###################################################
Import http.client
import json
conn = http.client.HTTPSConnection("api.kachelmannwetter.com")
headers = {
'Accept': "application/json",
'X-API-Key': "**************** KEY ********************************"
}
conn.request("GET", "/v02/forecast/50.514/11.369/3day?units=metric", headers=headers)
res = conn.getresponse()
data = res.read()
y = json.loads(data)
####################################################
One probably has to put the fat terms in a string. Many greetings
- PeterN
- Posts: 392
- Joined: Mon Feb 08, 2021 7:56 pm
- Location: Krefeld, Germany
- Has thanked: 184 times
- Been thanked: 220 times
- Contact:
Re: Wetter API Kachelmann
Hello Karl-Heinz,
my experience is that it's best to try the whole thing out manually in the browser and then recreate it with wgetsasync
That's what my one-liner does in the end after having filled the variables accordingly
my experience is that it's best to try the whole thing out manually in the browser and then recreate it with wgetsasync
That's what my one-liner does in the end after having filled the variables accordingly
Code: [Local Link Removed for Guests]
wgetasync("api.openweathermap.org/data/2.5/weather?q=" + town$ + "&lang=" + language$ + "&units=" + Units$ + "&appid=" + Openweather_ID$, 80)
- Khz
- Posts: 15
- Joined: Wed Jun 30, 2021 9:05 pm
- Location: Bayern, Lauenstein
Re: Wetter API Kachelmann
OpenWeather is OK. But the kachelmann. Have already said whether Wireshark helps, because it goes from the Raspi by means of python. Thank you for their efforts!
Karl-heinz
Karl-heinz