OpenIotOrg / openiot

The Open Source Project for the Internet of Things
459 stars 189 forks source link

How to push data from virtual sensor to LSM ??? #132

Closed 9Khaled9 closed 8 years ago

9Khaled9 commented 8 years ago

Hello, i Created Virtual Sensor XML File and the Virtual Sensors Metadata File, hence Creating and Registering a new Sensor Instance... So how to push data from this virtual sensor to the lsm ????

9Khaled9 commented 8 years ago

IN other word, how to connect to a real sensor from where i will get data ????

nkef commented 8 years ago

Hi, could you please use the openiot-dev mailing list for questions. Thank you in advance.

anandmahato29 commented 7 years ago

Can i know how you created virtual sensor XML File

9Khaled9 commented 7 years ago

Dear anandmahato29,

In the "1.Creation Virtual Sensor XML File" and "2.Creating Virtual Sensors Metadata file" parts of the installation guide, you can find an explanation of how to create XML file for a virtual sensor...

After creation the XML file, you must create the Meta Data file which must:

1-have the same name as the virtual sensor XML file with the extension (.metadata)

for example a virtual sensor named sensor1.xml will have an associated metadata file named sensor1.metadata.

2-be located in the same location (folder) of the XML file in: /openiot/modules/x-gsn/virtual-sensors

However, explanation process ca be found in this link:

https://github.com/OpenIotOrg/openiot/wiki/Installation-Guide#1-creating-virtual-sensor-xml-file

and

https://github.com/OpenIotOrg/openiot/wiki/Installation-Guide#2--creating-virtual-sensors-metadata-file

Good Luck Regards


From: anandmahato29 notifications@github.com Sent: Monday, September 19, 2016 2:46 PM To: OpenIotOrg/openiot Cc: 9Khaled9; Author Subject: Re: [OpenIotOrg/openiot] How to push data from virtual sensor to LSM ??? (#132)

Can i know how you created virtual sensor XML File

You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/OpenIotOrg/openiot/issues/132#issuecomment-247971864, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ARlXXyWOI7q6rwHdKNb1WE1-nLg1JGYgks5qrnX8gaJpZM4Inzmk.

anandmahato29 commented 7 years ago

Thanks for that...But when i am trying to use the virtual sensor in request definition it is showing no output except latitude and longitude e Hope you can help

premjayaraman commented 7 years ago

Hi,

the reason you dont see anything other than lat and lng is that xGSN has not pushed any data into the system for the corresponding sensor.

Once you create the metadata and the virtual sensor files, run xGSN. It should push some dummy data (using the sample csv data file).

Once this is successful, the request Definition will show the data that was pushed.

regards prem

On Tue, Sep 20, 2016 at 2:38 PM, anandmahato29 notifications@github.com wrote:

Thanks for that...But when i am trying to use the virtual sensor in request definition it is showing no output except latitude and longitude [image: e] https://cloud.githubusercontent.com/assets/22141116/18657690/1b8409b2-7f1a-11e6-80e4-91069aa800b6.png Hope you can help

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/OpenIotOrg/openiot/issues/132#issuecomment-248199536, or mute the thread https://github.com/notifications/unsubscribe-auth/ACCs_0jcVACECOijwwd1KPj8LxC9QrWVks5qr2M6gaJpZM4Inzmk .

anandmahato29 commented 7 years ago

Hi, You have been a great help till now.Thank you for that. I was trying to create arudino virtual light sensor as link given by you but i was facing problem like arduino not specified in wrapper then Arduino java file i created which is not working at all. That's why it is not getting registed to xgsn. and can anyone provide woking metafile and xml. Also want to know how to use csv files to push dummy data Help me

9Khaled9 commented 7 years ago

Unfortunately, this is the main problem i faced before, i didn't found a solution...

Really anandmahato29 i stopped at this step, and i didn't continue...

So Sorry

Regards


From: anandmahato29 notifications@github.com Sent: Tuesday, September 20, 2016 7:38 AM To: OpenIotOrg/openiot Cc: 9Khaled9; Author Subject: Re: [OpenIotOrg/openiot] How to push data from virtual sensor to LSM ??? (#132)

Thanks for that...But when i am trying to use the virtual sensor in request definition it is showing no output except latitude and longitude [e]https://cloud.githubusercontent.com/assets/22141116/18657690/1b8409b2-7f1a-11e6-80e4-91069aa800b6.png Hope you can help

[https://cloud.githubusercontent.com/assets/22141116/18657690/1b8409b2-7f1a-11e6-80e4-91069aa800b6.png]

You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/OpenIotOrg/openiot/issues/132#issuecomment-248199536, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ARlXX988PdQgTPWgCx8FNUld_ASi2b3Lks5qr2M-gaJpZM4Inzmk.