HN user

derhuerst

233 karma

pronouns: he https://github.com/derhuerst

Posts24
Comments55
View on HN
github.com 8y ago

Show HN: JavaScript lib to read tags from audio formats

derhuerst
2pts3
www.npmjs.com 8y ago

Show HN: A list of all postal (ZIP) codes in Germany

derhuerst
1pts0
twitter.com 9y ago

Twitter bot posting UNESCO world heritage sites

derhuerst
3pts0
github.com 9y ago

Tunnel TCP Through WebSockets (CLI Tool)

derhuerst
101pts71
github.com 9y ago

Show HN: Really basic CLI editor, usable as JavaScript library

derhuerst
2pts0
github.com 9y ago

JS: Tool to Enforce Data Down, Actions Up Paradigm

derhuerst
1pts0
github.com 9y ago

List of JavaScript modules for Berlin public transport

derhuerst
2pts2
github.com 9y ago

Query MacOS Spotlight from Node.js

derhuerst
2pts0
github.com 9y ago

Email providers as an npm module

derhuerst
2pts0
github.com 9y ago

Play Minesweeper in the command line

derhuerst
2pts0
jannisr.de 9y ago

Reusable SVG radar charts – 3k gzipped

derhuerst
1pts0
jannisr.de 9y ago

Show HN: Generate SVG patterns (without D3)

derhuerst
8pts2
github.com 9y ago

Show HN: Terminal colors using template strings

derhuerst
2pts0
github.com 10y ago

Show HN: Berlin public transport REST API (no key required)

derhuerst
1pts2
github.com 10y ago

Download Flickr photos without API key

derhuerst
8pts0
github.com 10y ago

Serve static files with GUI

derhuerst
2pts0
github.com 10y ago

Show HN: Minimal command line time tracking

derhuerst
2pts1
github.com 10y ago

Show HN: Command line multiselect prompt

derhuerst
5pts0
github.com 10y ago

Show HN: Command line autocompletion prompt

derhuerst
3pts2
github.com 10y ago

Show HN: Current location from OS X (Node.js)

derhuerst
7pts0
github.com 10y ago

Show HN: Command line date prompt

derhuerst
5pts0
github.com 10y ago

Store a secret securely in a standalone HTML file

derhuerst
1pts0
github.com 10y ago

Hyperminimal JavaScript dependency injection framework

derhuerst
1pts0
gist.github.com 11y ago

Awesome Twitter Bots

derhuerst
2pts0
DNS over Wikipedia 4 years ago

The extension could also use Wikidata [1] entries – which (AFAIK almost always) hold the data that is displayed in Wikipedia article's infobox – because then it wouldn't have to resort to parsing HTML.

Specifically, Wikidata has a "official website" property [2] that seems to be used. If there are multiple extensions, like in Sci-Hub's case [3], it could pick one based on user preferences.

[1] https://www.wikidata.org/ [2] https://www.wikidata.org/wiki/Property:P856 [3] https://www.wikidata.org/wiki/Q21980377

When I changed 'my-awesome-program' to 'ubahnchen' or something else when creating the hafas-client, it stopped getting valid responses.

Please report this as an Issue in the hafas-client repo, so we can discuss this further.

So I thought I should wait for VBB to give me an ID that works.

This is not how it works: - The official VBB API is an entirely different API, which they give you an auth token for when you ask. - hafas-client uses the "mobile" API, which has a static universal auth token. But it sends a (slightly randomised) User-Agent in order to communicate who/what is making requests. It might be that some User-Agents are blocked.

v5.vbb.transport.rest's frames were missing something I needed, if I recall correctly. With a fork of hafas-client, I got something to work okay.

It would be great if you could create an Issue in hafas-client about this, so everyone can benefit from the changes.

I realised I should use another user agent than 'my-awesome-program' which only VBB can provide, I think

If you're talking about hafas-client: No, you can use anything! It's merely about being transparent towards VBB who/what is using their API, but they don't have to approve it beforehand; They can't in fact, because the "mobile" HAFAS API just uses a static auth token.

There is a project called Peermaps that is building a full P2P stack for OSM-based maps:

They convert Planet OSM and Natural Earth OSM dumps into the storage format used by their geospatial DB [1] and then distribute them using P2P file storage tools like IPFS [3] or hyperdrive [4].

Because those storage tools make use of content addressing [5] and clever chunking [6], you can download only changes to the (converted) OSM dump.

Because those tools are inherently P2P-focused and come with pluggable transports, the data representing the changes in the (converted) OSM dump don't have to be sent via the internet. For example, Mapeo [7] allows syncing "local" changes to OSM via USB sticks [8].

[1] https://github.com/peermaps/eyros [2] https://github.com/peermaps/data [3] https://ipfs.io/#why [4] https://hypercore-protocol.org/guides/modules/hyperdrive/ [5] https://docs.ipfs.tech/concepts/how-ipfs-works/#content-addr... [6] https://blog.gopheracademy.com/advent-2018/split-data-with-c... [7] https://www.digital-democracy.org/mapeo/ [8] https://docs.mapeo.app/complete-reference-guide/mapeo-deskto...

Author of hafas-client here!

Do you know about v5.vbb.transport.rest's /radar API [1]? Because it wraps VBB's de-facto-open unofficial API [2][3], it doesn't require authentication or even signing a contract.

If you have problems using it, please get in touch with me!

[1] https://v5.vbb.transport.rest/api.html#get-radar [2] https://github.com/public-transport/hafas-client/tree/5.25.0... [3] https://github.com/public-transport/transport-apis/blob/8e05...

VBB has been publishing GTFS (Static/Schedule) data for almost 10 years now. [1][2]

But there is no (truly open) realtime data (e.g. GTFS Realtime or SIRI) available because their API [3] - requires signing a draconian contract (e.g. ridiculous liability clauses, no permission to pass the data on in any form), and - API works individual vehicles/trips, so you'd have to poll every single one out there to get the equivalent of a GTFS-RT dataset.

There is an unofficial API though [4][5] that is de-facto open, and I have built a tool that pools the data and creates a GTFS-RT feed. [6]

[1] https://daten.berlin.de/datensaetze/vbb-fahrplandaten-gtfs [2] https://www.golem.de/news/open-data-verkehrsverbund-berlin-b... [3] https://www.vbb.de/vbb-services/api-open-data/api/ [4] https://github.com/public-transport/hafas-client/tree/5.25.0... [5] https://github.com/public-transport/transport-apis/blob/8e05... [6] https://github.com/derhuerst/berlin-gtfs-rt-server

Note that this just interpolates the vehicles' positions based on their delay, which in turn is calculated based on periodic pings that the vehicle sends AFAIK. So the map does not show realtime positions in the same sense as e.g. HSL's trip planner does [1][2]. In fact, the location and speed of a vehicle can be very off.

Personally, I loathe this map, because it gives an impression of accurate data, even though it isn't that precise. VBB gets credit for providing supposedly reliable data, even though they could (and should, given amount of tax money spent) provide much better data!

[1] In the departures section on the left, tap on one of the upcoming departures to see the vehicle in realtime: https://reittiopas.hsl.fi/terminaalit/HSL%3A1000105?locale=e... [2] https://digitransit.fi/en/developers/apis/4-realtime-api/veh...