『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 4826|回复: 0

[进阶教程] traccar获取到数据后为何经纬度显示为0呢?

[复制链接]

26

主题

217

帖子

913

积分

高级会员

Rank: 4

积分
913
金钱
696
HASS币
0
发表于 2021-2-21 18:33:06 | 显示全部楼层 |阅读模式
我可以获取到设备GT06的数据,在日志里面也可以看到是正常的,但在web界面看为何是0呢?

<?xml version='1.0' encoding='UTF-8'?>

<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>

<properties>

    <entry key='config.default'>./conf/default.xml</entry>

    <!--

    This is the main configuration file. All your configuration parameters should be placed in this file.

    Default configuration parameters are located in the "default.xml" file. You should not modify it to avoid issues
    with upgrading to a new version. Parameters in the main config file override values in the default file. Do not
    remove "config.default" parameter from this file unless you know what you are doing.

    For list of available parameters see following page: https://www.traccar.org/configuration-file/

    -->
    <entry key='web.port'>8082</entry>
    <entry key='web.debug'>true</entry>

    <entry key='geocoder.enable'>true</entry>
    <entry key='geocoder.type'>nominatim</entry>
    <entry key='geocoder.url'>https://nominatim.openstreetmap.org/reverse</entry>

    <entry key='database.driver'>com.mysql.cj.jdbc.Driver</entry>
    <entry key='database.url'>jdbc:mysql://10.10.10.10:3306/traccar2?serverTimezone=UTC&useSSL=false&allowMultiQueries=true&autoReconnect=true&useUnicode=yes&characterEncoding=UTF-8&sessionVariables=sql_mode='TRADITIONAL,ALLOW_INVALID_DATES'</entry>
    <entry key='database.user'>root</entry>
    <entry key='database.password'>123456</entry>
    <entry key='database.changelog'>/opt/traccar/data/changelog-4.0-clean.xml</entry>

    <entry key='server.timeout'>120</entry>
    <entry key='time.override'>deviceTime</entry>
    <entry key='time.protocols'>osmand,gt06</entry>
    <entry key='web.healthCheck'>false</entry>

    <entry key='gt06.port'>5023</entry>
    <entry key='osmand.port'>5055</entry>

    <entry key='logger.enable'>true</entry>
    <entry key='logger.level'>INFO</entry>
    <entry key='logger.file'>logs/traccar-user.log</entry>

</properties>





                               
登录/注册后可看大图

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-5-14 18:25 , Processed in 0.491973 second(s), 22 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表