Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create SQL script to insert observation data directly in the database #615

Open
federicascolari opened this issue May 21, 2018 · 2 comments

Comments

@federicascolari
Copy link

I have to write sensor observations directly to the database schema of the SOS installed on the RPi, in order to avoid creating InsertObservation statements and guarantee high frequency readings.
Is there by any chance an available script for this task?

@CarstenHollmann
Copy link

Hi @federicascolari,

currently there is no script available that provides the SQL statements for an InsertObservation request.

What is your exact workflow? Insert the sensor via InsertSensor and then insert the observations directly into the database?

I would recomment to insert the Sensor via InsertSensor and the first observation via InsertObservation because then all the required information for the SOS are stored in the database tables. After that you have only to insert the observation data into the observation and ...value table (e.g. numericvalue).

Depending of the used SOS version and database concept you have to fill the observationHasOffering table and update the series table.

Therefore it would be greate if you could provide the SOS version you use and which database concept (series concept, old concept) do you use´.
And which database do you use? PostgreSQL?

Thanks,
Carsten

@federicascolari
Copy link
Author

Hi @CarstenHollmann !
Thank you for your quick answer. Yes, that is exactly our task.
The database we are using is PostgreSQL and as far as the SOS is regarded we installed the following:
52° North SOS-Importer 0.4
SOS 4.4.2 Release

Thank you once more,
Federica

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants