Git Product home page Git Product logo

openadms-server's People

Contributors

interkosmos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

openadms-server's Issues

WARNING - cloudExporter - Connection to API "https://192.168.31.44/" failed

2020-09-08T10:06:34 - INFO - cloudExporter - Sending observation "getValues" of target "Mosaic-X5" from port "com1" to API "https://192.168.31.44/api/v1/observations/" ...
2020-09-08T10:06:34 - VERBOSE - com1 - Received "$GPGGA,020636.00,3028.8917671,N,11424.7792265,E,1,16,1.2,49.0576,M,-13.5788,M,,*7B\r\n" from sensor "gnss" on port "com1"
...
2020-09-08T10:06:34 - SPAM - cloudExporter - Received message of type "observation" from "fileExporter"
2020-09-08T10:06:34 - WARNING - cloudExporter - Connection to API "https://192.168.31.44/" failed
2020-09-08T10:06:34 - DEBUG - cloudExporter - Cached observation "getValues" of target "Mosaic-X5" (id 140)
2020-09-08T10:06:34 - INFO - cloudExporter - Observation "getValues" of target "Mosaic-X5" has been finished
2020-09-08T10:06:35 - VERBOSE - com1 - Received "$GPGGA,020637.00,3028.8917523,N,11424.7792187,E,1,16,1.2,49.0746,M,-13.5788,M,,*70\r\n" from sensor "gnss" on port "com1"

All operations are carried out according to the instruction manual,my settings are as follows:

  1. nginx.conf

user chaoshu; # ubuntu's username
http {
# PostgreSQL connection details. Change "localhost" to the IP address of
# your database instance, if it is not running on the same host, and enter
# user name and passwort.
#
# dbname: PostgreSQL database name.
# user: PostgreSQL user name.
# password: PostgreSQL password.
upstream postgresql {
postgres_server 192.168.31.44:5432 dbname=timeseries user=openadms password=geovey;
postgres_keepalive max=200 overflow=reject;
}
server {
listen 80; # HTTP port. Change to 443 and add an X.509 certificate.
server_name 192.168.31.44; # CHANGE TO YOUR SERVER NAME!
}
}

  1. pg_hba.conf
    Database administrative login by Unix domain socket
    local all postgres peer
    TYPE DATABASE USER ADDRESS METHOD
    "local" is for Unix domain socket connections only
    local all all trust
    IPv4 local connections:
    host all all 127.0.0.1/32 scram-sha-256
    host all all 192.168.31.44/32 scram-sha-256
    IPv6 local connections:
    host all all ::1/128 scram-sha-256
    Allow replication connections from localhost, by a user with the replication privilege.
    local replication all trust
    host replication all 127.0.0.1/32 trust
    host replication all ::1/128 trust

There seems to be something wrong with the contents of the nginx.conf

nginx: [emerg] "location" directive is not allowed here in /usr/local/nginx/openadms-server/api.conf:34
nginx: configuration file /usr/local/nginx/nginx.conf test failed

Is it because the position of the following statement in the nginx.conf file is incorrect and there is an extra "}" match?

    # Include the OpenADMS Server API and HTTP status code configuration.
    include openadms-server/api.conf;
    include openadms-server/status.conf;
**}**

}

Can openadms-server run under Windows system?

I installed the postgresql database under the Windows system, and created the and using timeseries.sql according to the README.md requirements of openadms-server. At the same time, configure the nginx.conf file in Windows, but it always fails.
2020-09-01T16:21:57 - INFO - cloudExporter - Sending observation "getValues" of target "Mosaic-X5" from port "com1" to API "https://192.168.31.144/api/v1/observations/" ...
2020-09-01T16:22:56 - WARNING - cloudExporter - Connection to API "https://192.168.31.144/" failed

I have noticed that README.md describes the operation under FreeBSD or Linux system, but my server is installed with Windows system.

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.