dabamos / openadms-server Goto Github PK
View Code? Open in Web Editor NEWHTTP-RPC API to store and retrieve timeseries data, based on nginx and PostgreSQL.
Home Page: https://www.dabamos.de/
License: BSD 2-Clause "Simplified" License
HTTP-RPC API to store and retrieve timeseries data, based on nginx and PostgreSQL.
Home Page: https://www.dabamos.de/
License: BSD 2-Clause "Simplified" License
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:
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!
}
}
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;
**}**
}
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.