Access to sensor data on command line

6 years 2 months ago #2307 by esawyja
Hi all,
Is there a way to get specific sensor data on command line, for example using wget
wget xxx.xxx.xxx.xxx/Api/EasyIoT/Config/Module/List --user xxxx --password xxxx
with more parameters for example /node106/temp

Or any other way? Maybe if I can have a JSON example please?

Thanks

Please Log in or Create an account to join the conversation.

6 years 2 months ago #2312 by EasyIoT

esawyja wrote: Hi all,
Is there a way to get specific sensor data on command line, for example using wget
wget xxx.xxx.xxx.xxx/Api/EasyIoT/Config/Module/List --user xxxx --password xxxx
with more parameters for example /node106/temp

Or any other way? Maybe if I can have a JSON example please?

Thanks


No, at the moment there is only API for all modules. Did you try with MQTT driver?

Please Log in or Create an account to join the conversation.

6 years 1 month ago #2322 by esawyja
No I have not, I was thinking of using SQlite3 command to get the values from the DB, would the MQTT driver be a better option, could you give me an example please?
Regards

Please Log in or Create an account to join the conversation.

6 years 1 month ago #2340 by EasyIoT

esawyja wrote: No I have not, I was thinking of using SQlite3 command to get the values from the DB, would the MQTT driver be a better option, could you give me an example please?
Regards


In SQLlite are only historical values and not current values. I guess it's not good for you case...

Please Log in or Create an account to join the conversation.

6 years 1 month ago #2351 by esawyja
Hi
I ended up writing a bash script that uses SQLite3 to interrogate the DB on a hourly basis, that worked for me, thanks

Please Log in or Create an account to join the conversation.

Time to create page: 0.196 seconds

Forum latest

  • No posts to display.