Posts Tagged ‘biketracker’

TTN Freiburg zu Besuch bei der VAG

15. Juli 2018

img_2196

Die TTN Community Freiburg hatte, nach langen Abwarten und einigen hinhaltenden Briefen nun doch die Gelegenheit mit der VAG ein Gespräch über TTN im ÖPNV zu führen.

Zum einen weil ich auch ein wenig in den Brief des CCCfr wegen WLAN verwickelt war, zum anderen auch weil wir verschiedene Vorschläge zur Verbesserung des ÖPNV gemacht haben. Es gibt eine Reihe von guten Projekten, die einem ÖPNV Unternehmen helfen könnten:

  1. Der PaxCounter von Chief Technical Officer des Station und Service der Deutschen Bahn. Mit einer sehr günstigen Platine Zählen von Personen anhand ihrer WLAN/BLE Geräte
.

    img_1937

    Tracker Test in Zürch

  2. EasyBus: Real-time occupancy rate measurement in public transportation mit Pi und Personenerkennung, gebaut auf dem Hackaton in Zürich. Nicht ganz so billig aber auch interessant.
  3. Open Source Fahrradsharing: Testet die Sicherheit verschiedner Fahrradschlösser und wollen ein Open Source Fahrradsharing aufbauen.
 Radforschung
  4. No Bike Left Behind: Wo sind die Sharefahrräder des öffentlichen Velo Sharing in Zürich eigentlich?
  5. Fahrradtracker: Projekt TTN Freiburg / Berlin. Für das es den Ersten Preis beim Hackaton gab. Die Idee ist es Fahrräder für wenig Geld mit TTN zu tracken.
  6. Überwachung und Integration der HBf Fahrstühle in Wheelmap.org und DB Adam. Dazu habe ich auch einen Brief geschrieben.

 

Eines der wichtigsten Punkte war ein möglicher Gateway auf der Bergstation der Schauinslandbahn. Diesem war man aufgeschlossen. Auch die Amateurfunker sind Einverstanden, machen aber derzeit noch Tests machen um Störungen anderer Funkanwendunen auszuschliessen. Dementsprechend wird Freiburg wohl innerhalb der nächsten Monate den höchsten Gateway Deutschlands bekommen.

img_2181

mit einem Gateway auf dem Schauinsland, wird die Abdeckung noch besser. Danke an die ASF für das Mappen mit dem Müllauto! Quelle: ttnmapper.org

Ferner gibt es Ende September wieder ein Meeting mit der VAG um Ergebnisse der internen VAG bzw. städtische Gesellschaften Workshops zu besprechen. Vermutlich wird es darauf hinaus laufen das es ein PaxCounter Projekt an einer  oder mehreren Haltestellen gibt um zu prüfen was alles machbar ist und wie sinnvoll es ist.

img_2182

Build your own bike tracker with TTN

24. Juni 2018
TTN_GPS_Bike_tracker.001

How it works, in a simple overview.

Keeping track of a moving and easily stolen object, like a bikecylcle can be an challenge. Of course you can try to remember where you parked your bike and then go back to the place. But what if it is stolen? It would be helpful to attach a little device to your bike that sends its position to a webservice and then on to your mobile phone.

Currently most systemsmost systems either log the data on file or use a GSM sim card and data tarif to send the location information to a server. Usually such a sim card has a monthly bill.

But what if we use the Long Range Wireless Network provided in Freiburg by The Things Network Freiburg Community. The network already covers large parts of town and is expanding. And how can we use this application without programming. I can’t programm and so writing code and maybe a server application is out of the question for me.

IMG_1794

See it on your telegramm channel!

But there are several good webservices that can helpd: IFTTT with a telegram channel integration.

What do we need?

  • Zane Systems: ztube, which was supplied kindly by Zoltan
  • zTracker Configuration Tool
  • a TTN Account, Application and acess to the console
  • decoder function
  • webhook
  • an IFTT Applet that pushes the data to a telegramm channel
  • telegramm account

For hardware we used the zTube from Zane Systems, its currently about 70 € but I had bought a previous version of the tracker before and so he send me a zTube and zTrack Midi by Express TNT, which we got on Friday at the same day the hackaton started.

How to set up

When I got the zTube I went to the TTN Console and put in the data. Meaning I set up a new application, klicked on „add device“. You can add the DEVICE EUI which is printed on the label of the zTube and set it up from there. As a configuration I set it to „ABP“ not OTA and disabled Frame Counter Checks. The rest of the configuration I left as it was. I’m not even sure if I had to disable frame counters.

You can configure both with the zTrack Configuration Tool. As a configuration we entered the following data:

image (1)image (2)Then in the console you have to enter a decoder function. As a base we used function developed by TTN Berlin and provided here: Or you use what we did (download and copy paste to your application).

console

Sometimes the zTube does not find a gps fix, then this data is empty. If it does it looks like this in the function:

Untitled 2

I’m not yet sure what is the optimal configuration for the zTube, as I don’t want to overuse the bandwith but also get good tracking results.

Now for the IFTT integration: Install IFTT on the phone. It seems to be much easier to do all the stuff on the phone and not on the website. Get an acoount and so on. Then go to the browser and google „IFTT webhooks“, then open the webhooks page in the iftt app. press on the „Documentation“: is show your key. Copy the key into notes.

IMG_1813

Click on documentation.

IMG_1815 copy

You will then be lead to a website again with your key. Copy the key to notes or send it to you by email. You will need it to enter later.

(more…)