Blitzortung.org Forum
Using the API for a charity project? - Printable Version

+- Blitzortung.org Forum (https://forum.blitzortung.org)
+-- Forum: Public Forums (https://forum.blitzortung.org/forumdisplay.php?fid=29)
+--- Forum: Website, Maps and Applications (https://forum.blitzortung.org/forumdisplay.php?fid=24)
+--- Thread: Using the API for a charity project? (/showthread.php?tid=3895)



Using the API for a charity project? - kidcollective - 2024-06-24

Hi! Is there a way to use the APi for a charity project?


RE: Using the API for a charity project? - gerbold - 2024-06-24

The way is to get a station and to keep it running. As active station operator you can access the data.


RE: Using the API for a charity project? - NavsimPolska - 2024-07-09

Hi everyone. I heve one problem:
I am an active user (336; station 1003). My login password, which I use to access the service, does not work for downloading data from data.blitzortung.org/Data/Protected. Does access to the data require a different username and password?


RE: Using the API for a charity project? - Eric.Wouters - 2024-07-09

(2024-07-09, 09:19)NavsimPolska Wrote: Hi everyone. I heve one problem:
I am an active user (336; station 1003). My login password, which I use to access the service, does not work for downloading data from data.blitzortung.org/Data/Protected. Does access to the data require a different username and password?

I have set you as active user (you recently got a Red version). Welcome aboard

That should work but did you respect the url format (didn't forget the @ in the url, I often do) ?

https://username:password@data.blitzortung.org/Data/Protected/last_strikes.php


RE: Using the API for a charity project? - NavsimPolska - 2024-07-09

(2024-07-09, 09:40)Eric.Wouters Wrote:
(2024-07-09, 09:19)NavsimPolska Wrote: Hi everyone. I heve one problem:
I am an active user (336; station 1003). My login password, which I use to access the service, does not work for downloading data from data.blitzortung.org/Data/Protected. Does access to the data require a different username and password?

I have set you as active user (you recently got a Red version). Welcome aboard

That should work but did you respect the url format (didn't forget the @ in the url, I often do) ?

https://username:password@data.blitzortung.org/Data/Protected/last_strikes.php



RE: Using the API for a charity project? - NavsimPolska - 2024-07-09

(2024-07-09, 12:16)NavsimPolska Wrote:
(2024-07-09, 09:40)Eric.Wouters Wrote: I have set you as active user (you recently got a Red version). Welcome aboard

That should work but did you respect the url format (didn't forget the @ in the url, I often do) ?

https://username:password@data.blitzortung.org/Data/Protected/last_strikes.php

Sure. Yes. I remembered about the format login:password@.... And still, it doesn't let me in to the address you provided. We've been using the username RED since 2014, we've just returned to the project now. But it doesn't want to let us in. Is it OK: https://336:password@data.blitzortung.org/Data/Protected/last_strikes.php ?


RE: Using the API for a charity project? - gerbold - 2024-07-09

Try your username `NavsimPolska` instead of your user number.

It is also possible to enter the url without username password combination. In this case the browser asks you for the credentials. Enter username and password in the popup window.

In Python scripts I'm using `urllib.request.HTTPPasswordMgrWithDefaultRealm()`. I can provide a code snippet if requested.


RE: Using the API for a charity project? - NavsimPolska - 2024-07-10

Thanks!
Problem is resolved