LCD: right-aligned values ???
Moderators: grovkillen, Stuntteam, TD-er
LCD: right-aligned values ???
Hi there again,
on a 07S I use a BM280, a lightsensor BH1750FUI and a 4x20 LCD. Temp. and Humity are well formed and takes 5 digits (when the temperature reaches 100 ° C, nobody will be there to read it ). Pressure are most also takes 7 Digits, somtetimes 6.
But the Lightsensor gives values from 0.00 up to more then 40000.00 LUX. Ok... In nature more then 9000 I don't await but then it jump's arround between 5.00 and 9000.00 ...
At the LCD there is no option to align values on the right side... So if there a way by formulas inside the Options of the Sensor itselfe to say i.e. "If one character before the comma fill with 3 spaces, if 2 before fill with 2 spaces....) ???
on a 07S I use a BM280, a lightsensor BH1750FUI and a 4x20 LCD. Temp. and Humity are well formed and takes 5 digits (when the temperature reaches 100 ° C, nobody will be there to read it ). Pressure are most also takes 7 Digits, somtetimes 6.
But the Lightsensor gives values from 0.00 up to more then 40000.00 LUX. Ok... In nature more then 9000 I don't await but then it jump's arround between 5.00 and 9000.00 ...
At the LCD there is no option to align values on the right side... So if there a way by formulas inside the Options of the Sensor itselfe to say i.e. "If one character before the comma fill with 3 spaces, if 2 before fill with 2 spaces....) ???
DLzG
Micha
Micha
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: LCD: right-aligned values ???
I use percent instead of the actual value since 4768 lux doesn't do it for me. I like 1...100% better. But that's me I guess.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: LCD: right-aligned values ???
That being said. You can do left of right align, can't remember the syntax just now but you need to use rules.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: LCD: right-aligned values ???
I haven't been able to add it to the docs but here's the PR describing it:
https://github.com/letscontrolit/ESPEasy/pull/1289
https://github.com/letscontrolit/ESPEasy/pull/1289
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Re: LCD: right-aligned values ???
... ok, I have read it but I just understand... nothing
DLzG
Micha
Micha
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: LCD: right-aligned values ???
Lets say your task is called "sun" and its value is named "lux" you could do this (in rules)
[sun#lux#R#P2]
To justify the value to the right and add two spaces on the left of the value.
Just as one example.
[sun#lux#R#P2]
To justify the value to the right and add two spaces on the left of the value.
Just as one example.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: LCD: right-aligned values ???
Enjoy!
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Re: LCD: right-aligned values ???
.. nope ... I'm too dumb for that
Where I have to insert it? In the Formula-field at the sensor or in the line-field at the display?
Where I have to insert it? In the Formula-field at the sensor or in the line-field at the display?
- Attachments
-
- capture_002_05072019_205641.jpg (47.62 KiB) Viewed 16841 times
-
- capture_001_05072019_205549.jpg (43.39 KiB) Viewed 16841 times
DLzG
Micha
Micha
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: LCD: right-aligned values ???
If it's not working to add that to those [....] Inside the settings of the LCD task you need to use the LCD command inside rules.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Re: LCD: right-aligned values ???
... ok, I'm sorry but I'm realy too dumb to handle that...
I have searching arround the forum and other but don't find an exsample for that how I can see howto ...
Not so important... It's ok what I have now. The little bad thing is accepted ...
I have searching arround the forum and other but don't find an exsample for that how I can see howto ...
Not so important... It's ok what I have now. The little bad thing is accepted ...
DLzG
Micha
Micha
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: LCD: right-aligned values ???
Sleep on it and give it another try another day. Never give up.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Who is online
Users browsing this forum: Ahrefs [Bot] and 35 guests