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

As a lorawan user in the context of the new energy domain, I'd like to integrate the data coming from Milesight sensors in the Open Data Hub #10

Open
luhodaan opened this issue Dec 12, 2024 · 6 comments
Assignees

Comments

@luhodaan
Copy link
Contributor

luhodaan commented Dec 12, 2024

Develop a new data collector and a transformer to integrate data from the lorawan on the new infrastructure

@luhodaan
Copy link
Contributor Author

Deployment in testing environment done.
Ready for production!

@sseppi
Copy link
Contributor

sseppi commented Jan 7, 2025

Hi @luhodaan ,

I tested the tool and, before going into production, I would suggest to do the following changes:

  • change the stationtype from "internal-sensor" to "indoor-sensor" or maybe better "IndoorStation"
  • publish the collected data s Open Data
  • changhe the url where we get the data from the old http link to the new https one that Eurac shared with us per email.

@luhodaan
Copy link
Contributor Author

luhodaan commented Jan 8, 2025

Hi @sseppi,
all the changes have been made. Now you can also query the data as follows and see the latest measurement directly as a result from the api: https://mobility.api.opendatahub.testingmachine.eu/v2/flat%2Cnode/internal-sensors/*/latest?limit=200&offset=0&shownull=false&distinct=true&timezone=UTC

@sseppi
Copy link
Contributor

sseppi commented Jan 9, 2025

Hi @luhodaan ,

I tested the calla and I have seen that it seems that the import is blockes from yesterday morning.

As example the call below answers with the data of the NOI-A1-Floor1-CO2 sensor with the data of yesterday at 9:34 am.

https://mobility.api.opendatahub.testingmachine.eu/v2/flat%2Cnode/IndoorStation/*/latest?limit=1&&offset=0&where=sname.eq.NOI:NOI-A1-Floor1-CO2&shownull=false&distinct=true&timezone=UTC

Can you please chack if the sync with the LoRa portal is working fine?

Moreover is there a way to get all measurement of the sensor with one single latestcall or do I need to do a separated call for each data type?

@luhodaan
Copy link
Contributor Author

Hi @sseppi, I've checked and the sinc with the LoRa is fine, since the data is correctly imported in the Mongo. So it is not a data collector problem but probably a transformer issue.
I've also noticed that the data is not correctly being imported in the mobility api from the mongo, so I'll investigate how to fix it, I think it is probably the same reason for the second question your asking, since it is due to the same importing problem, otherwise it should retrieve all data types for each sensor.

@sseppi
Copy link
Contributor

sseppi commented Jan 10, 2025

@luhodaan super! Many thanks for checking.

I will wait for you to fix the bug, before finalizing the integration in the testing energy tool.

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