Giter VIP home page Giter VIP logo

gnuais's Introduction

The first time GNU AIS is started, a configuration file is created in ~/.config/gnuais/config. An alternative configuration file can be specified with the command line argument -c . If an alternative configuration file is specified the first time you run gnuais, the file ~/.config/gnuais/config will not be generated. It is explained in ~/.config/gnuais/config how you will have to edit it in order to fullfill your wishes.

You will also have to create a table in the database if the mysql option is desired:

Make new database (if needed) with command: mysqladmin create

You can also use any existing database adding table 'ais': mysql < create_table.sql

Or if you have specified username and password for your database: mysql -u -p < create_table.sql

The file create_table.sql can be found in this folder.

gnuais's People

Contributors

hessu avatar rubund 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gnuais's Issues

Question about the gaussian filter taps

Thank you Ruben for your wonderful job with GNUAIS. I was reviewing your work and I'll like to ask you how you came up with the FIR filter taps for the gaussian filter. I mean the taps that can be found at the top of receiver.c. I'm trying to come up with a gaussian filter design of my own cooking but I'm unable to replicate your taps. I have to admit that yours work really well, at least with the gnuais-stereo-2rx recording example.

Thanks!

Application does not build anymore

Hi,

Pulling from master, the application does not build anymore. The problem is that out_mysql.h defines a variable named my, which gets included in many places and thus defined everywhere. This makes the same global symbol to be defined in different files, resulting in linker errors.

The workaround is to remove that deifnition from out_mysql.h and turn it into an extern variable instead.

gnuaisgui: map issue

Hello I am running gnuaisgui on a Debian 11 and I can not see the map. All I see is white screen with the black vessels.

On the terminal I get these errors every few seconds:

37,953940 23,587387
38,033633 23,542587
Drawing

(gnuaisgui:41493): Gtk-WARNING **: 14:42:32.315: drawing failure for widget 'OsmGpsMap': NULL pointer

(gnuaisgui:41493): Gtk-WARNING **: 14:42:32.315: drawing failure for widget 'GtkFrame': NULL pointer

(gnuaisgui:41493): Gtk-WARNING **: 14:42:32.315: drawing failure for widget 'GtkNotebook': NULL pointer

(gnuaisgui:41493): Gtk-WARNING **: 14:42:32.315: drawing failure for widget 'GtkBox': NULL pointer

(gnuaisgui:41493): Gtk-WARNING **: 14:42:32.315: drawing failure for widget 'GtkBox': NULL pointer

(gnuaisgui:41493): Gtk-WARNING **: 14:42:32.315: drawing failure for widget 'GtkWindow': NULL pointer

Sending data to aprs.fi

Hello,

I'm trying to send data to aprs.fi but withouth any succes. When i use >cmake . i see one missing package. Is this package necessary for uploading data to aprs.fi?

root@ph0dv://gnuais# cmake .
-- Looking for include file alsa/asoundlib.h
-- Looking for include file alsa/asoundlib.h - found
-- Looking for include file mysql/mysql.h
-- Looking for include file mysql/mysql.h - found
-- Looking for include file curl/curl.h
-- Looking for include file curl/curl.h - found
-- Looking for include file pulse/pulseaudio.h
-- Looking for include file pulse/pulseaudio.h - found
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
-- checking for module 'gtk+-3.0'
-- found gtk+-3.0, version 3.14.5
-- checking for module 'gthread-2.0'
-- found gthread-2.0, version 2.42.1
-- checking for module 'osmgpsmap-1.0>=1.0.2'
-- package 'osmgpsmap-1.0>=1.0.2' not found
Missing one more packages for building gui. Skipping
-- Configuring done
-- Generating done
-- Build files have been written to: //gnuais

I'm receiving data (example):
ch A type 3 mmsi 244700617: lat 52.252517 lon 5.322463 course 360 speed 0.0 rateofturn 96 navstat 1 heading 511 (!AIVDM,1,1,,A,33aGEjEP00PHGD<MqRmf4?wV2DFb,0*00)

And it's written to the database:
mysql> SELECT * from ais_vesseldata;
+----+------------+-----------+-------------+---------------------+---------+------+------+------+------+
| id | time | mmsi | name | destination | draught | A | B | C | D |
+----+------------+-----------+-------------+---------------------+---------+------+------+------+------+
| 2 | 1495879205 | 244620315 | AGAPE | CLASS B | NULL | 9 | 2 | 1 | 3 |
| 4 | 1495879289 | 244860885 | MARIA | CLASS B | NULL | NULL | NULL | NULL | NULL |
| 5 | 1495879223 | 244690810 | MARGRIET | MUIDERBERG/LELYSTAD | 0.2 | 18 | 0 | 3 | 3 |
| 6 | 1495879651 | 244090345 | SCHONE MARE | CLASS B | NULL | 6 | 6 | 2 | 2 |
+----+------------+-----------+-------------+---------------------+---------+------+------+------+------+
4 rows in set (0.00 sec)

My settings in the config:

Uplink

Uplink aprs.fi json http://aprs.fi/jsonais/post/my_ais_password

(my ais password changed)

Is there a log were i can see if it's uploading data?
Or has this to do with package 'osmgpsmap-1.0>=1.0.2' not found?

Or any other suggestions?

I'm running debian8 jesse.

Thank you,

DIck Vos
PH0DV

Open gnuais on startup

Hello,

I'm using a raspberry zero. My goal is that on reboot the gnuais is started.
I edit rc.local:

#!/bin/sh -e

rc.local

This script is executed at the end of each multiuser runlevel.

Make sure that the script will "exit 0" on success or any other

value on error.

In order to enable or disable this script just change the execution

bits.

By default this script does nothing.

Print the IP address

_IP=$(hostname -I) || true
if [ "$_IP" ]; then
printf "My IP address is %s\n" "$_IP"
fi

//usr/bin/gnuais

exit 0

Syslog output:

Jan 13 22:40:44 raspberrypi rc.local[319]: 2018/01/13 22:40:44.001031 gnuais[323:3041633872] NOTICE: Starting up...
Jan 13 22:40:44 raspberrypi rc.local[319]: Segmentation fault

Do you have any sugestions to handle this?

Kind regards,

PH0DV
Dick Vos

Map is not displayed in gnuaisgui

When gnuais and gnuaisgui are installed on ubuntu 12.04, gnuaisgui is not displaying map, only ships. All dependencies are installed, including libosmgpsmap2. No errors or warnings in console. Tried to install from source and from ppa:saltmakrell/ppa repo and on two PCs, but problem persists.

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.