hsarkanen / JollaOpas

Jolla Opas
GNU General Public License v3.0
4 stars 4 forks source link

No live data in Helsinki #18

Closed DagNygren closed 5 years ago

DagNygren commented 5 years ago

We have lost live data for the buses in Helsinki. New API again?

hsjpekka commented 5 years ago

HSL had technical problems. Live data should be available this week. https://www.hsl.fi/uutiset/2019/hsln-naytot-ja-reittiopas-ovat-palanneet-reaaliaikaan-16784

DagNygren commented 5 years ago

Yes, but their own page already works now which is puzzling.. Here: https://vehiclepositionsmapdemo--digitransit.repl.co/

DagNygren commented 5 years ago

Talking to the API-providers they say they have changed the contact port: OLD: URL Description mqtts://mqtt.hsl.fi:443/ The bare MQTT protocol with TLS, lightweight.

NEW: URL Description mqtts://mqtt.hsl.fi:8883/ The bare MQTT protocol with TLS, lightweight.

So changed from 443 to 8883. Who is up for an edit of the sources?

DagNygren commented 5 years ago

Changed the port from 443 to 8883 by directly editing the file /opt/alien/usr/share/harbour-jollaopas/qml/components/MapElement.qml (line 178) and can confirm it now works again. The new port/server just seems to be very slow compared to the previous one. :-(

Update: The first test was made around 10AM today. A new test right now (12:30) works a lot smoother.

hsarkanen commented 5 years ago

@DagNygren Thanks for the investigation. I'll build a new package to OpenRepos this evening.

Sefriol commented 5 years ago

I made a test run in my version as well and changing ports indeed fixes the problem. I have used it a couple of days now and seems to work fine.

hsarkanen commented 5 years ago

This is now fixed in v0.8.2 and the update is available in OpenRepos. I expect that SailfishOS package manager is able to replace the qml source files even if you have done manual modifications but I still recommend to remove your own modifications before upgrading.