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

Litre option in setting along side cm and inch #198

Closed
RRCRT opened this issue Oct 28, 2018 · 9 comments
Closed

Litre option in setting along side cm and inch #198

RRCRT opened this issue Oct 28, 2018 · 9 comments
Labels
waiting on user input Waiting for issues to respond on last question

Comments

@RRCRT
Copy link

RRCRT commented Oct 28, 2018

I already have cal my distance in arduino to output in Litres and was wondering if you could put a Litre option in settings inside cm and inch field.
Thanks

@theyosh
Copy link
Owner

theyosh commented Nov 1, 2018

Hmm, how could the pi read out this information? Is the Arduino providing some kind of HTTP server as a remote sensor?

Else, it is usb/serial? That is a bit harder to support

@RRCRT
Copy link
Author

RRCRT commented Nov 2, 2018

yeah the data comes from the arduino #124 to a *.json file. and using the remote function. I thought just adding L to the drop down cm, inches in settings to display in litres.
In arduino:

// Calculating distance 1
h1 = duration1 / 10;
h1 = h1 - 4; // offset correction
h1 = 100 - h1; // water height, 0 - 50 cm
hp1 = 2 * h1; // distance in %, 0-100 %
hpL1 = hp1*100/70/2/1.42857143; // Litre based on 70 litres at 100%

@theyosh
Copy link
Owner

theyosh commented Nov 3, 2018

Made a new sensor type. Now you can add volume sensors in Liters. Also, these volume sensors can be used with the water tank environment settings.

@theyosh
Copy link
Owner

theyosh commented Nov 8, 2018

Have you been able to test this? And does it work for you?

@theyosh theyosh added the waiting on user input Waiting for issues to respond on last question label Nov 10, 2018
@RRCRT
Copy link
Author

RRCRT commented Nov 11, 2018

Tested and Works a charm-ish!
I can add to water tank in the environment fine but get an error. still asking for height etc in settings. I already have the right data from arduino.
(I can't see Volume in environment (Cleared Cache) but see it on dashboard, was this an intended option?)

I also can't add co2 environment what ever I do it doesnt save. (for some time)

I like the nav update with the sensors only showing sensors used.. much easier to nav. Good Work!

@theyosh
Copy link
Owner

theyosh commented Nov 11, 2018

The height info is still needed, but not used. It is a bit harder to make those fields variable in requirement when selecting sensors. Hence, just fill in some values.....

The volume in environment is not there. Is figured that it would be used as the water tank source. So what I did is adding volume sensors in the same way as height. But on the environment there is only the water tank that can use it. There is also no height environment part for height sensors...

For the CO2 environment part, do you get an error somewhere? Could help debug it.

@theyosh
Copy link
Owner

theyosh commented Nov 11, 2018

Found it... should not also be fixed. Clear cache as there is a .js file update which are cached in the browser.

@theyosh
Copy link
Owner

theyosh commented Nov 16, 2018

Closing due to main issue is fixed. If the other issues are still there, please open a new issue

@theyosh theyosh closed this as completed Nov 16, 2018
@RRCRT
Copy link
Author

RRCRT commented Sep 20, 2019

This works
Many Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting on user input Waiting for issues to respond on last question
Projects
None yet
Development

No branches or pull requests

2 participants