Coder Social home page Coder Social logo

feeyo-adsb-golang's Introduction

综述

使用Golang编写的飞常准ADSB上传程序,适用于各个支持Golang编译的平台。 如果此项目您你有帮助,请给我一个Star,谢谢。 如果您有任何建议,欢迎提出一个issue。

Docker 使用说明

docker仓库地址:https://hub.docker.com/r/dextercai/feeyo-adsb-golang

如您所见,我们为x86/64和ARM平台都提供了对应的docker镜像,并托管在了DockerHub仓库。 如果您需要其他架构版本的镜像,欢迎提出一个PR。

使用Docker与文件配置(conf.ini)

docker run --net host \
  -v /YOUR-PATH-OF/conf.ini:/app/conf.ini:rw -d \
  dextercai/feeyo-adsb-golang:latest

使用Docker与命令行配置

docker run --net host \
  dextercai/feeyo-adsb-golang:latest /app/feeyo-adsb-golang \
  -use-file=false -feeyo-url=https://adsb.feeyo.com/adsb/ReceiveCompressADSB.php \
  -ip=127.0.0.1 -port=30003 -uuid=YOUR-UUID

Binary 使用说明

由于本项目不包括Dump1090,也不限制SBS服务是否运行在本机,因此你可能需要首先安装Dump1090,具体细节可自行搜索,当然你也可以在本项目提一个Issue,我将很乐意为你解答。

如果你不具备编译条件,可以直接前往本项目发布页下载使用。

具有两种配置方式

UUID在线生成可访问:https://feeyo-uuid.dextercai.com

一般文件模式(默认)

你需要在程序同目录创建conf.ini文件,内容如下。

[config]
UUID=你的UUID(16位)
ip=127.0.0.1
port=30003
url=http://adsb.feeyo.com/adsb/ReceiveCompressADSB.php

以上展现的是dump1090运行在本机的情况,你也可以按照实际情况进行填写。

命令行模式(进阶)

若对终端操作较为熟悉,可使用该方式。

Usage of ./adsb:
  -conf string
        conf文件位置 (default "./conf.ini")
  -feeyo-url string
        飞常准接口地址 (default "https://adsb.feeyo.com/adsb/ReceiveCompressADSB.php")
  -ip string
        dump1090服务IP (default "127.0.0.1")
  -port string
        dump1090服务端口 (default "30003")
  -use-file
        是否使用conf文件作为配置来源 (default true)
  -uuid string
        UUID 16位

TODO

  • 统计、集成地图
  • 集成部分dump1090功能
  • webhook

其他

如果使用树莓派加RTL2832为主控的电视棒,建议您前往(飞常准ADSB

使用官方ADSB脚本,或者前往(FEEYO-Adsb),项目内有一份相同的官方脚本。

如果使用其他Linux发行版,可参考下面列出的相关资料,手动移植,或者使用本项目。

飞常准自建 ADS-B Windows 上传方案 https://blog.dextercai.com/archives/78.html

在 Arch Linux 下安装飞常准上传套件 https://blog.dextercai.com/archives/45.html

feeyo-adsb-golang's People

Contributors

dextercai avatar zy143l avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

feeyo-adsb-golang's Issues

Golang死循环问题

启动Golang程序后 如果Dump1090接口断开
go程序会循环打印
image
造成大量资源占用

建议增加轻量版地图

可使用json、geojson、shp或类似格式的地图,这种地图只有边界内存占用量小易于加载,效果如下Screenshot_20231030_230227.jpg

关于日志打印的细节修改建议

为了方便储存日志和监测运行状态,希望给日志添加等级,目前我认为是两个等级比较好,1为尽祥尽细的打印全部日志,2为省略debug,info类日志,只打印错误error的日志,用于路由器树莓派等容量较小的设备储存长期监听。
希望添加功能 每次非中断退出能打印相应的日志,解释退出原因

关于运行日志的自动清理

该项目已在开发板运行许久,但由于开发板上的硬盘较小,导致长时间运行后可用储存变小,需要重新部署容器缓解
目前日志大小为2.7g
image
能否开发自动日志清理,或者借助第三方脚本、平台来实现自动清理脚本,感谢!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.