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

Polling last X hours of data from a set of sensors #6

Open
ghost opened this issue Nov 2, 2018 · 2 comments
Open

Polling last X hours of data from a set of sensors #6

ghost opened this issue Nov 2, 2018 · 2 comments

Comments

@ghost
Copy link

ghost commented Nov 2, 2018

Hello there,

Thank you very much for your effort to write this wrapper.
I explain briefly my use case:
I'm running a single Tag Manager with several (ALS PRO) sensors spread over my test location. To save battery power, I set the sensors to transmit multiple points at a time.
So, the recording of the values is done every minute by each sensor but they are backposted only every now and then (around 10 minutes) to the tag manager/internet.
I have a RPi running your python script every X hours and the idea is to read the minute data from every sensor in the last X hours and post the values on my database (InfluxDB).

I am successfully able only to read the last data for each sensor and I'm using last_load_time to know when that happen
for (uuid, tag) in tags.items():
print('environment,sensor={} temperature={:.1f},humidity={:.1f},light={:.0f},batteryVolt={:.2f},batteryLevel={:.0f},signal={:.0f} {:.0f}'.format(tag.name, tag.temperature, tag.humidity, tag.light, tag.battery_volts, tag.battery_remaining*100, tag.signal_strength, tag.last_load_time.timestamp()))

Unfortunately, I don't know how to read the other values (namely since the last time I run the script which is since the X hours). I had a look here http://wirelesstag.net/ethLogs.asmx but I'm a bit lost.

Could you help me? I hope it's clear enough .

Thanks in advance,
Alex

@simbalsyd
Copy link

Hi
I have the same question, how to read "old" data? Did you find out how to do that?

Regards
Anders

@ghost
Copy link
Author

ghost commented Feb 10, 2020

@simbalsyd
Unfortunately not. Also, support from the manufacturer is known to be not really prompt.

At the end, we basically stopped to use this product due to very unstable connection between the tags and the gateway so I've stopped to look for a solution to this issue.

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

1 participant