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

add other value #20

Open
mwuethri74 opened this issue May 15, 2016 · 2 comments
Open

add other value #20

mwuethri74 opened this issue May 15, 2016 · 2 comments

Comments

@mwuethri74
Copy link

Hello

Today I tried to add an other measurement value (eg sum_rain_1). This data comes in as the other data. So I thought that it should be easy to add it.
I then added sum_rain_1 to:
config.js: dataOrder:["Noise","Pressure","CO2","Humidity","Temperature","Rain","sum_wind_1","Wind"]
de.ison: "SUM_RAIN_1": "Niederschlag 1h",
netatmo.js (formatter):
case 'sum_rain_1':
return value.toFixed(0) + ' mm';
netatmo.js (clazz):
case 'sum_rain_1':
return 'wi-raindrops';

But it did not work... The sum of rain did not show up on the magic mirror... ;-(

What else do I have to add, that additional values are displayed?

Thank you and best regards

Michael

@CFenner
Copy link
Owner

CFenner commented Oct 10, 2016

@mwuethri74, if this is still relevant, could you post your rain module data? The data is only rendered if the value is listed in the data_type array. But most likely sum_rain_1 is not listed in there.

@mwuethri74
Copy link
Author

@CFenner
Thank you for your answer. Yes it would still be relevant. Unfortunately I am still not able to access the data (as written in "correct display of wind data". I do not find it in the debugger...
Is there an other way to access the data?

Thank you and best regards

Michael

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