Announcement

Collapse
No announcement yet.

When I move from home to work geofence is working but the map and adress stays

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    When I move from home to work geofence is working but the map and adress stays

    Originally posted by antoon View Post
    I have another problem.
    When I move from home to work geofence is working but the map and adress stays from home.
    On the traccar server everything is OK
    In the log I saw a error so restart the traccar plugin.
    After that the map and adres are OK
    Code:
    [FONT=B612 Mono][COLOR=#000000]AK Traccar[/COLOR][/FONT]
    [FONT=B612 Mono][COLOR=#000000]Info[/COLOR][/FONT]
    [FONT=B612 Mono][COLOR=#000000][7685] Opel Corsa: ExecuteAsync[[URL="http://192.168.0.190:8082/api/positions?id=132145%5D:"]http://192.168.0.190:8082/api/positions?id=132145]:[/URL][/COLOR] De externe server heeft een fout geretourneerd: (400) Ongeldige opdracht.[/FONT] [LEFT][FONT=B612 Mono][COLOR=#000000][FONT=Roboto][SIZE=16px]4-01-2021 06:13:23[/SIZE][/FONT][/COLOR][/FONT][/LEFT]
     
    [FONT=B612 Mono][COLOR=#000000]AK Traccar[/COLOR][/FONT]
    [FONT=B612 Mono][COLOR=#000000]Info[/COLOR][/FONT]
    [FONT=B612 Mono][COLOR=#000000][7680] Antoon Telefoon: ExecuteAsync[[URL="http://192.168.0.190:8082/api/positions?id=132138%5D:"]http://192.168.0.190:8082/api/positions?id=132138]:[/URL] De externe server heeft een fout geretourneerd: (400) Ongeldige opdracht.[/COLOR][/FONT]    [LEFT][FONT=B612 Mono][COLOR=#000000][FONT=Roboto][SIZE=16px]4-01-2021 06:13:23[/SIZE][/FONT][/COLOR][/FONT][/LEFT]
     
    [FONT=B612 Mono][COLOR=#000000]AK Traccar[/COLOR][/FONT]
    [FONT=B612 Mono][COLOR=#000000]Info[/COLOR][/FONT]
    [FONT=B612 Mono][COLOR=#000000][7685] Opel Corsa: ExecuteAsync[[URL="http://192.168.0.190:8082/api/positions?id=132145%5D"]http://192.168.0.190:8082/api/positions?id=132145][/URL][/COLOR][/FONT]    [LEFT][FONT=B612 Mono][COLOR=#000000][FONT=Roboto][SIZE=16px]4-01-2021 06:13:23[/SIZE][/FONT][/COLOR][/FONT][/LEFT]
     
    [FONT=B612 Mono][COLOR=#000000]AK Traccar[/COLOR][/FONT]
    [FONT=B612 Mono][COLOR=#000000]Info[/COLOR][/FONT]
    [FONT=B612 Mono][COLOR=#000000][7680] Antoon Telefoon: ExecuteAsync[[URL="http://192.168.0.190:8082/api/positions?id=132138%5D"]http://192.168.0.190:8082/api/positions?id=132138][/URL][/COLOR][/FONT]    [LEFT][FONT=B612 Mono][COLOR=#000000][FONT=Roboto][SIZE=16px]4-01-2021 06:13:16[/SIZE][/FONT][/COLOR][/FONT][/LEFT]
     
    [FONT=B612 Mono][COLOR=#000000]AK Traccar[/COLOR][/FONT]
    [FONT=B612 Mono][COLOR=#000000]Info[/COLOR][/FONT]
    [FONT=B612 Mono][COLOR=#000000][7680] Antoon Telefoon: ExecuteAsync[[URL="http://192.168.0.190:8082/api/geofences?refresh=False&deviceId=2%5D"]http://192.168.0.190:8082/api/geofen...se&deviceId=2][/URL][/COLOR][/FONT]    [LEFT][FONT=B612 Mono][COLOR=#000000][FONT=Roboto][SIZE=16px]4-01-2021 06:13:07[/SIZE][/FONT][/COLOR][/FONT][/LEFT]
     
    [FONT=B612 Mono][COLOR=#000000]AK Traccar[/COLOR][/FONT]
    [FONT=B612 Mono][COLOR=#000000]Info[/COLOR][/FONT]
    [FONT=B612 Mono][COLOR=#000000][7685] Opel Corsa: ExecuteAsync[[URL="http://192.168.0.190:8082/api/geofences?refresh=False&deviceId=3%5D"]http://192.168.0.190:8082/api/geofen...se&deviceId=3][/URL][/COLOR][/FONT]    [LEFT][FONT=B612 Mono][COLOR=#000000][FONT=Roboto][SIZE=16px]4-01-2021 06:13:07[/SIZE][/FONT][/COLOR][/FONT][/LEFT]
     
    [FONT=B612 Mono][COLOR=#000000]AK Traccar[/COLOR][/FONT]
    [FONT=B612 Mono][COLOR=#000000]Info[/COLOR][/FONT]
    [FONT=B612 Mono][COLOR=#000000][7685] Opel Corsa: Position(id 132145): 51,81837, 5,75564333333333 (6 Einsteinstraat, Wijchen, GE, NL)[/COLOR][/FONT]    [LEFT][FONT=B612 Mono][COLOR=#000000][FONT=Roboto][SIZE=16px]4-01-2021 06:13:07[/SIZE][/FONT][/COLOR][/FONT][/LEFT]
     
    [FONT=B612 Mono][COLOR=#000000]AK Traccar[/COLOR][/FONT]
    [FONT=B612 Mono][COLOR=#000000]Info[/COLOR][/FONT]
    [FONT=B612 Mono][COLOR=#000000][7685] Opel Corsa: ExecuteAsync[[URL="http://192.168.0.190:8082/api/positions?id=132145%5D"]http://192.168.0.190:8082/api/positions?id=132145][/URL][/COLOR][/FONT]    [LEFT][FONT=B612 Mono][COLOR=#000000][FONT=Roboto][SIZE=16px]4-01-2021 06:13:07[/SIZE][/FONT][/COLOR][/FONT][/LEFT]
     
    [FONT=B612 Mono][COLOR=#000000]AK Traccar[/COLOR][/FONT]
    [FONT=B612 Mono][COLOR=#000000]Info[/COLOR][/FONT]
    [FONT=B612 Mono][COLOR=#000000][7680] Antoon Telefoon: Position(id 132138): 51,8186575, 5,7558353 (6 Einsteinstraat, Wijchen, GE, NL)[/COLOR][/FONT]    [LEFT][FONT=B612 Mono][COLOR=#000000][FONT=Roboto][SIZE=16px]4-01-2021 06:13:07[/SIZE][/FONT][/COLOR][/FONT][/LEFT]
     
    [FONT=B612 Mono][COLOR=#000000]AK Traccar[/COLOR][/FONT]
    [FONT=B612 Mono][COLOR=#000000]Info[/COLOR][/FONT]
    [FONT=B612 Mono][COLOR=#000000][7680] Antoon Telefoon: ExecuteAsync[[URL="http://192.168.0.190:8082/api/positions?id=132138%5D"]http://192.168.0.190:8082/api/positions?id=132138][/URL][/COLOR][/FONT]    [LEFT][FONT=B612 Mono][COLOR=#000000][FONT=Roboto][SIZE=16px]4-01-2021 06:13:07[/SIZE][/FONT][/COLOR][/FONT][/LEFT]
     
    [FONT=B612 Mono][COLOR=#000000]AK Traccar[/COLOR][/FONT]
    [FONT=B612 Mono][COLOR=#000000]Info[/COLOR][/FONT]
    [FONT=B612 Mono][COLOR=#000000][7678] 192.168.0.190: Execute(sync)[[URL="http://192.168.0.190:8082/api/devices%5D"]http://192.168.0.190:8082/api/devices][/URL][/COLOR][/FONT]    [LEFT][FONT=B612 Mono][COLOR=#000000][FONT=Roboto][SIZE=16px]4-01-2021 06:13:07[/SIZE][/FONT][/COLOR][/FONT][/LEFT]
     
    [FONT=B612 Mono][COLOR=#000000]AK Traccar[/COLOR][/FONT]
    [FONT=B612 Mono][COLOR=#000000]Info[/COLOR][/FONT]
    [FONT=B612 Mono][COLOR=#000000][7685] Opel Corsa: ExecuteAsync[[URL="http://192.168.0.190:8082/api/geofences?refresh=False&deviceId=3%5D"]http://192.168.0.190:8082/api/geofen...se&deviceId=3][/URL][/COLOR][/FONT]    [LEFT][FONT=B612 Mono][COLOR=#000000][FONT=Roboto][SIZE=16px]4-01-2021 06:12:33[/SIZE][/FONT][/COLOR][/FONT][/LEFT]
     
    [FONT=B612 Mono][COLOR=#000000]AK Traccar[/COLOR][/FONT]
    [FONT=B612 Mono][COLOR=#000000]Info[/COLOR][/FONT]
    [FONT=B612 Mono][COLOR=#000000][7680] Antoon Telefoon: ExecuteAsync[[URL="http://192.168.0.190:8082/api/geofences?refresh=False&deviceId=2%5D"]http://192.168.0.190:8082/api/geofen...se&deviceId=2][/URL][/COLOR][/FONT]    [LEFT][FONT=B612 Mono][COLOR=#000000][FONT=Roboto][SIZE=16px]4-01-2021 06:12:33[/SIZE][/FONT][/COLOR][/FONT][/LEFT]
     
    [FONT=B612 Mono][COLOR=#000000]AK Traccar[/COLOR][/FONT]
    [FONT=B612 Mono][COLOR=#000000]Info[/COLOR][/FONT]
    [FONT=B612 Mono][COLOR=#000000][7685] Opel Corsa: ExecuteAsync[[URL="http://192.168.0.190:8082/api/positions?id=132144%5D:"]http://192.168.0.190:8082/api/positions?id=132144]:[/URL] De externe server heeft een fout geretourneerd: (400) Ongeldige opdracht.[/COLOR][/FONT]    [LEFT][FONT=B612 Mono][COLOR=#000000][FONT=Roboto][SIZE=16px]4-01-2021 06:12:33[/SIZE][/FONT][/COLOR][/FONT][/LEFT]
     
    [FONT=B612 Mono][COLOR=#000000]AK Traccar[/COLOR][/FONT]
    [FONT=B612 Mono][COLOR=#000000]Info[/COLOR][/FONT]
    [FONT=B612 Mono][COLOR=#000000][7680] Antoon Telefoon: ExecuteAsync[[URL="http://192.168.0.190:8082/api/positions?id=132138%5D:"]http://192.168.0.190:8082/api/positions?id=132138]:[/URL] De externe server heeft een fout geretourneerd: (400) Ongeldige opdracht.[/COLOR][/FONT]    [LEFT][FONT=B612 Mono][COLOR=#000000][FONT=Roboto][SIZE=16px]4-01-2021 06:12:33[/SIZE][/FONT][/COLOR][/FONT][/LEFT]
    Code:
    [FONT=B612 Mono][COLOR=#000000][[URL="http://192.168.0.190:8082/api/positions?id=132138%5D:"]http://192.168.0.190:8082/api/positions?id=132138][/URL][/COLOR][/FONT]
    The remote server returned an error: (400) Invalid command.
    That strange, because same commands work. May be I need to add retry.

    Do you know if there's log in the Traccar server?

    Also, I check if location is changed (to 3 decimal places by default) before requesting map/address - to reduce number of calls which may cost.

    You may try changing "Location change precision" to, say, 4.

    #2
    Update to V.19 and I see still same error

    Code:
    [7685] Opel Corsa: ExecuteAsync[[URL="http://192.168.0.190:8082/api/positions?id=132255%5D:"]http://192.168.0.190:8082/api/positions?id=132255]:[/URL] De externe server heeft een fout geretourneerd: (400) Ongeldige opdracht.
    [7680] Antoon Telefoon: ExecuteAsync[[URL="http://192.168.0.190:8082/api/positions?id=132249%5D:"]http://192.168.0.190:8082/api/positions?id=132249]:[/URL] De externe server heeft een fout geretourneerd: (400) Ongeldige opdracht.

    Comment


      #3
      Yes the traccar server has a log, you find it in \Traccar\logs
      But no errors in the log, only positioning from my devices

      Changed location precision to 4 but has same error

      Comment


        #4
        I found a error in my HS log from yesterday evening
        That was after I saw the problem for the first time and restarted the plugin

        Code:
        HS3 APIVersion: System.Exception: Client is not connected to the server.
        bij HSCF.Communication.Scs.Client.ScsClientBase.SendMessage(IScs Message message)
        bij HSCF.Communication.ScsServices.Communication.RequestReplyMes senger`1.SendMessageAndWaitForResponse(IScsMessage message, Int32 timeoutMilliseconds)
        bij HSCF.Communication.ScsServices.Communication.RequestReplyMes senger`1.SendMessageAndWaitForResponse(IScsMessage message)
        bij HSCF.Communication.ScsServices.Communication.RemoteInvokePro xy`2.Invoke(IMessage msg)
        bij System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(Mess ageData& msgData, Int32 type)
        bij HomeSeerAPI.IHSApplication.get_APIVersion()
        bij PluginLib.PluginBase.get_HS3()

        Comment


          #5
          Changing precision doesn't fix the error. I can't tell why it happens - error is returned from server. Possibly because two requests are happening simultaneously and server can't handle it.

          I'll try adding delays between calls.

          In ver 4.0.0.20 I reset the previous location after the error, so at least next update it should request the location.
          Also I added LocChanged device - so you can see if your precision setting works. It shows state of "LocationChanged" variable between updates, and it's similar to "Motion" device.
          BTW, please delete the Motion device, I made some changes too.

          Comment


            #6
            Loaded .20 and deleted the motion devices

            After restart plugin error in the log

            Code:
            HS3 APIVersion: System.Exception: Client is not connected to the server.
            bij HSCF.Communication.Scs.Client.ScsClientBase.SendMessage(IScs Message message)
            bij HSCF.Communication.ScsServices.Communication.RequestReplyMes senger`1.SendMessageAndWaitForResponse(IScsMessage message, Int32 timeoutMilliseconds)
            bij HSCF.Communication.ScsServices.Communication.RequestReplyMes senger`1.SendMessageAndWaitForResponse(IScsMessage message)
            bij HSCF.Communication.ScsServices.Communication.RemoteInvokePro xy`2.Invoke(IMessage msg)
            bij System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(Mess ageData& msgData, Int32 type)
            bij HomeSeerAPI.IHSApplication.get_APIVersion()
            bij PluginLib.PluginBase.get_HS3()
            Also the 400 error still there

            [7685] Opel Corsa: ExecuteAsync[http://192.168.0.190:8082/api/positions?id=132410]: De externe server heeft een fout geretourneerd: (400) Ongeldige opdracht.
            [7680] Antoon Telefoon: ExecuteAsync[http://192.168.0.190:8082/api/positions?id=132409]: De externe server heeft een fout geretourneerd: (400) Ongeldige opdracht.

            On device page also a error now
            Attached Files

            Comment


              #7
              I see this in the traccar log, don't know if it has something todo with

              2021-04-01 09:16:10 WARN: [c654e72f] error - An existing connection was forcibly closed by the remote host - IOException (...)
              2021-04-01 09:16:10 INFO: [c654e72f] disconnected

              Comment


                #8
                The first error (HS3 APIVersion) is not related, but it's from HS, pretty strange. What HS version are you on?
                There's a lot of things not ported to HS4 "yet" - so I have to use old HS3 interface as workaround. Including sending images to HS, i.e. map image. So if map is shown - you can ignore the error.

                Regarding 400 error - in ver 4.0.0.21 I added 200 ms delay between sends, see if it helps.

                Comment


                  #9
                  I am on HS 4.1.14.0
                  Running now 4.0.0.21 but nothing changed, same errors in the log and on the status page

                  Comment


                    #10
                    Is it always same urls. i.e http://192.168.0.190:8082/api/positions?id=xxxx?

                    Comment


                      #11
                      Originally posted by alexbk66 View Post
                      Is it always same urls. i.e http://192.168.0.190:8082/api/positions?id=xxxx?
                      Yes only the id is changed, see below
                      Now only geofence is working other devices are not updating anymore.

                      [7685] Opel Corsa: ExecuteAsync[http://192.168.0.190:8082/api/positions?id=133897]: De externe server heeft een fout geretourneerd: (400) Ongeldige opdracht.
                      [7685] Opel Corsa: ExecuteAsync[http://192.168.0.190:8082/api/positions?id=133896]: De externe server heeft een fout geretourneerd: (400) Ongeldige opdracht.
                      [7685] Opel Corsa: ExecuteAsync[http://192.168.0.190:8082/api/positions?id=133895]: De externe server heeft een fout geretourneerd: (400) Ongeldige opdracht.
                      [7685] Opel Corsa: ExecuteAsync[http://192.168.0.190:8082/api/positions?id=133894]: De externe server heeft een fout geretourneerd: (400) Ongeldige opdracht.
                      Attached Files

                      Comment


                        #12
                        I have changed something in my traccar server config and it looks like it works now.
                        Btw is there something changed on the battery device?
                        Now I have a battery and a batteryLevel device, and it seems the Battery is not updating anymore.

                        Comment


                          #13
                          Originally posted by antoon View Post
                          Btw is there something changed on the battery device?
                          Now I have a battery and a batteryLevel device, and it seems the Battery is not updating anymore.
                          There are two separate readings - one is %, the other one is V. I create HS devices only if data is available. So please delete both - the plugin will create the one which is available.

                          Comment


                            #14
                            So, what's the current status - all working, or need some fix?

                            Comment


                              #15
                              Originally posted by alexbk66 View Post
                              So, what's the current status - all working, or need some fix?
                              Everything is working now, so I let it run for a while.
                              Only thing is the units of measure.
                              I have answer you in the other thread, don't know if that is what you are after.
                              Thank you very much for your effort, is much appreciated

                              Comment

                              Working...
                              X