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

DateTime over mqtt-json #20

Open
ThomDietrich opened this issue Jan 16, 2018 · 2 comments
Open

DateTime over mqtt-json #20

ThomDietrich opened this issue Jan 16, 2018 · 2 comments

Comments

@ThomDietrich
Copy link
Owner

ThomDietrich commented Jan 16, 2018

https://community.openhab.org/t/xiaomi-mi-flora-plant-sensor-mqtt-client-daemon/33119/53

print_line('Publishing to MQTT topic "{}/{}"'.format(base_topic, flora_name))

Add:

data['timestamp'] = strftime('%Y-%m-%dT%H:%M:%S', localtime())

Maybe add timezone? Also the openHAB generator function needs to be adapted.

@hakan42
Copy link
Contributor

hakan42 commented Dec 17, 2018

I would prefer Zulu time (UTC) 😄

@ThomDietrich
Copy link
Owner Author

I will soon add some updates to this project, especially because of Homie v3, see #57

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