Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Tracking does not work

    Traccar
    4
    21
    576
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      timka @timka last edited by

      I build and installed the existing alpha? package.
      System is running with 5.0 from traccar.
      But can devices send messages to different ports? (Typically 5001, 5002, 5006, 5013, 5015, 5023, 5036, 5093).
      Port 5055 for "OSMAND" is open. I tried on my smartphone with traccar client and url for 5055 and I get a transmission error.

      So should this generally be possible?
      Thank you very much!

      girish 1 Reply Last reply Reply Quote 0
      • girish
        girish Staff @timka last edited by

        @timka Which alpha package are you referring to? The upstream docker image?

        T 1 Reply Last reply Reply Quote 0
        • T
          timka @girish last edited by

          @girish Thank you and sorry for my minimal answer

          I'm using your attempt https://git.cloudron.io/cloudron/traccar-app, where I Changed I just changed the Version from 4.X to 5.0 and the base app to 3.X. Using the provided cloudron tutorial on app packaging it I was able to install it in my cloudrone instance and access it. LDAP is working. For Testing I tried to use some real hardware tracker (which does not do DNS lookup) for sending GPS Data to server and the smartphone app from traccar client play-store-link to test the server. It should also use the already "opened" port at 5055 ("osmand"). I wasn't able to send any update to my traccar instance. I'm not 100% sure about my real hardware tracker, but at least the smartphone should work. So I suspected the port sharing being wrong. For the "real" hardware gps tracker you provide just the IP and the Port for the traccar server. I'm just having one cloudron instance running on one server so it should work, shouldn't it? Therefore the app should be able to listen to multiple 5XXX ports. (As far as I understand it, no other app can use those ports than, or can it?)

          girish 3 Replies Last reply Reply Quote 1
          • girish
            girish Staff @timka last edited by

            @timka FWIW, I haven't been able to get the android Traccar Client to work yet either.... Not sure what is missing. The 'Status' says it's sending the location.

            1 Reply Last reply Reply Quote 1
            • Moved from App Wishlist by  girish girish 
            • girish
              girish Staff last edited by

              I tested with https://www.traccar.org/osmand/ and that works!

              fadb8075-1cd5-4f55-bde6-ff1ad6535d54-image.png

              1 Reply Last reply Reply Quote 1
              • girish
                girish Staff last edited by

                Android app works too, I didn't realize that the Server URL has to be "http" and port 5055. I have to investigate the security of this...

                Even shows my battery status 🙂

                4fb258ec-aaac-46b5-900c-2e6044a199e5-image.png

                T timconsidine 2 Replies Last reply Reply Quote 2
                • T
                  timka @girish last edited by timka

                  @girish Thank you very much! I will instantly test it. But somehow right now I canno reach my cloudron after a reboot something went wrong - my feedback might take short while.

                  I've tried both https/http but didn't succeed. Looking forward to testing. I was able to get my "real" gps tracker running on a demo server from traccar.

                  By the way: I'm glad cloudron is running so well, that you can relax on your yacht in the Gulf of Guinea 😏

                  girish 1 Reply Last reply Reply Quote 1
                  • girish
                    girish Staff @timka last edited by

                    @timka ha ha, apparently that is lat 0 , long 1 🙂

                    T 1 Reply Last reply Reply Quote 1
                    • T
                      timka @girish last edited by

                      @girish it is working!! Thank you! 🔝

                      This is tracking with the "real" tracking device. So I changed the port for the device (5013), I'm using the admin login. I'll provide further information for LDAP.

                      Thank you very much!
                      af9974f6-1dd7-4610-8e40-ddae22c2c28e-image.png 82b15fb6-f3d6-4a30-a122-586b1c61d657-image.png

                      My bike is still in Germany 😆
                      a146f584-2499-497b-83ba-d379ab20f88d-image.png

                      1 Reply Last reply Reply Quote 2
                      • timconsidine
                        timconsidine App Dev @girish last edited by

                        @girish I tried the iphone Traccar Client app but can't get it to connect
                        Tried with http and https using port 5055
                        Anyone got it working ?

                        Super cool app !

                        Just returned from taking 2 vans to Ukraine border with medical supplies.
                        Would have been great to have had this working for the trip.

                        timconsidine luckow 2 Replies Last reply Reply Quote 3
                        • timconsidine
                          timconsidine App Dev @timconsidine last edited by timconsidine

                          @timconsidine YAY !
                          Working now after toggling service status off / on
                          HTTP
                          5055
                          iphone app

                          Thank you @girish for this app !

                          girish 1 Reply Last reply Reply Quote 2
                          • girish
                            girish Staff @timconsidine last edited by

                            @timconsidine I would hold on until using it regularly. The location updates on port 5055 are sent via http , so it's not secure. Still trying to figure out the best long term strategy here.

                            That said, I am using it for last 3 days anyway and this is so nice! I am yet to get into notifications and such, but exciting app.

                            timconsidine 2 Replies Last reply Reply Quote 3
                            • timconsidine
                              timconsidine App Dev @girish last edited by

                              @girish oh yes https would be better ... but I am sure you will work it out !

                              Lots of devices out there according to the traccar website, but most seem to bundle their own app and suck you into a SIM contract. I have not yet found documentation on the best way to change a device's config to connect to self-hosted server. Maybe it's possible with an SMS command to the device.

                              In the interim it seems best way is to use the iOS / Android app on a phone.
                              [Good to see the Android app is on F-Droid.]
                              That way there is no issue with needing a separate/additional SIM.

                              Is that how others here envisage using the app ?

                              Will be interesting to see how battery life is affected.
                              But as phones have so much background stuff going on all the time, it won't be that easy or reliable to do tests.

                              Anyway, this can really solve knowing 'who is where' in a team or convoy scenario.
                              I used PMR radios but they are range limited and depend on the operator knowing the answer to "where are you?".
                              So look forward to https support (if possible).

                              T 1 Reply Last reply Reply Quote 2
                              • luckow
                                luckow translator @timconsidine last edited by

                                @timconsidine hm. I removed the port and switched to the https://traccar.example.org instead. Switching off and on again is the solution. (iPhone & Traccar app). Today I used it with "Allowed for background use" and after 7 hours the battery was almost empty. By default, frequent value of 300.

                                57669a07-813c-4cff-972f-5b0088270eca-image.png

                                Pronouns: he/him | Primary language: German

                                girish 1 Reply Last reply Reply Quote 1
                                • timconsidine
                                  timconsidine App Dev @girish last edited by

                                  @girish as @luckow reports, removing the port and using https://yourapp.domain.tld works !!

                                  girish 1 Reply Last reply Reply Quote 0
                                  • T
                                    timka @timconsidine last edited by

                                    @timconsidine
                                    Well, yes I'm using a chinese st-901 tracker with 4G. Setup via SMS commands.

                                    1 Reply Last reply Reply Quote 1
                                    • girish
                                      girish Staff @timconsidine last edited by

                                      @timconsidine @luckow Yes, it works because I made a "special" fix for just the port 5055 😉 I think the other ports don't support https, it just happens that this one does since traccar controls the client.

                                      timconsidine 1 Reply Last reply Reply Quote 3
                                      • girish
                                        girish Staff @luckow last edited by girish

                                        @luckow said in Tracking does not work:

                                        ). Today I used it with "Allowed for background use" and after 7 hours the battery was almost empty. By default, frequent value of 300.

                                        Interesting, I have been using this for last 5 days and haven't noticed any battery usage difference. Do you see anything in battery usage history of android? I mean Settings -> Battery -> Usage.

                                        luckow 1 Reply Last reply Reply Quote 0
                                        • timconsidine
                                          timconsidine App Dev @girish last edited by

                                          @girish said in Tracking does not work:

                                          Yes, it works because I made a "special" fix

                                          Brilliant !!

                                          1 Reply Last reply Reply Quote 0
                                          • luckow
                                            luckow translator @girish last edited by

                                            @girish oh. I'm on ios (iPhone SE). But there is a -> settings -> battery ... This is the hard to believe truth
                                            Begegnungsmitteilungen is the background service for the so called Corona Warn app 24/7 BLE scanner.

                                            IMG_0247.jpg

                                            Pronouns: he/him | Primary language: German

                                            timconsidine 1 Reply Last reply Reply Quote 0
                                            • timconsidine
                                              timconsidine App Dev @luckow last edited by

                                              @luckow my Traccar battery usage is only at 18% but that's still more than other apps.

                                              6bd62c16-f067-40a9-bfe3-48e770b7a242-image.png

                                              Will try to do a proper test tomorrow.

                                              1 Reply Last reply Reply Quote 1
                                              • First post
                                                Last post
                                              Powered by NodeBB