Giter VIP home page Giter VIP logo

erddap-feeder's People

Watchers

 avatar

erddap-feeder's Issues

rust-cache and actions-rust-cross do not play nicely together

The cache action wants rustup to be run before it, so that it can use rustc version as cache key.

actions-rust-cross runs rustup, but has no hook to then do cache stuff.

Is cross compiling really needed on this project? If not, simple rustup etc actions might be better. Or, toss the cache - the build only takes 3 minutes.

CLI flag to allow self-signed certificates

reqwest supports disabling certificate verification, such as you might have with simple self-signed certificates - .danger_accept_invalid_certs(true). Should add a CLI flag option to enable/disable this functionality, to make it easier to test stuff before deployment.

Feeder should rely on a config file for MMSI to name mapping

To make it more useful to other people (or just me), the CLI should load a TOML file with configuration data.
If the file doesn't exist, create it with a sample and exit with a message about editing it
Probably something like

[[mmsi_map]]
mmsi: 0123456789
station_id: A_String OR "A String"

Given this is an axum/tokio based CLI, the data will need to be loaded into the state object and passed around.
confy might be one way to solve the config file storage. It's small, and automatically deals with platforms by using directories.

Docker env handling for port etcetera

To be friendlier to running on things like Synology NAS where a GUI is used to configure the image, it would make sense to have args that can be set in the environment and used either directly by the program, or as inputs to a shell script that sets up the execution of the program.

Filter controls for fields to send

With the feeder sending everything it gets from the AIS weather message (#2), there will probably be ERDDAP installations that don't want some of the fields, like ice. A filter control in the accepted_packets section should do, listing all the fields to send (or not send), and then filter the resulting query args to drop appropriately.

Send raw data - option or default

Instead of the trouble of having to define structs to map each message, just support the whole type 8 message, including fields that might be set to their "unset" value.

TOML config should then look like

erddap_url='https://...'
erddap_key=user_password

[[accepted_packets]]
type=8
dac=200
fid=31
ignore_mmsi=[1,2,3]

[[mmsi_lookup]]
mmsi='12345'
name='Station name'

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.