kizniche / ttn-tracker

Download GPS data transmitted to The Things Network for live display on a map
https://kylegabriel.com/projects/2019/04/lorawan-tracker-and-mapper.html
62 stars 17 forks source link

How to access logging info from python? #12

Closed aberridg closed 3 years ago

aberridg commented 3 years ago

Thank you so much for fixing the bad gateway issue I reported. I'm now trying to get the app fully working - I'm just not sure how to get the information from the python logger. Any hints? Could it be added to the readme?

I've tried connecting to localhost:8000 - I get a 404 error.

I've also been experimenting with v3 integrations. I think I've successfully got the json back from the TTN app but not able to parse it yet. Without logging info it's too hard!

Thanks,

Andrew

kizniche commented 3 years ago

See https://docs.docker.com/engine/reference/commandline/logs/

docker logs flask_app

aberridg commented 3 years ago

Perfect! Thank you - I wonder if this could be added to the notes in the Readme? I searched for ages to find out how to look at the logs! I'm happy to work with porting to TTN V3 at the appropriate time, but have switched back to V2 for now...

kizniche commented 3 years ago

I'll add it to the readme. I also didn't even know TTN was upgrading to a v3. Though in trying to access the new console, I'm unable to because the page keeps refreshing every second, continually. Are you experiencing this issue?

aberridg commented 3 years ago

Hi! Thank you - the app is working great now :-)

I'd like to build on it a bit. Right now I am still experimenting with LoRa technology...

I'm not experiencing the refresh issue with the V3 console. It's actually rather hard to get the right link to it at the moment. TTN's advice is to register new gateways to their V3 systems, but not to migrate existing gateways. I only recently discovered that the community is reluctant to migrate right now. I'm not sure I understand the differences, but I've moved all my infrastructure back to V2.

The URL I'm using is: https://eu1.cloud.thethings.network/console/

Maybe that works for you?

Andrew

On Sun, 25 Apr 2021 at 22:08, Kyle Gabriel @.***> wrote:

I'll add it to the readme. I also didn't even know TTN was upgrading to a v3. Though in trying to access the new console, I'm unable to because the page keeps refreshing every second, continually. Are you experiencing this issue?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/kizniche/ttn-tracker/issues/12#issuecomment-826390284, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHLJITICXFAVFQWD3QEKMX3TKSAGPANCNFSM43RCEYFA .

--

Andrew Berridge - TIBCO Data Science | M: +44 77 89764017 | E: @.*** | www.tibco.com