BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

Blynk App Background Color Hex Code?

#8

You can’t send text string to Value Display - only numerical data types. (or at least I haven’t been able to);

Basically I sample a sensor (scale that tells me how many cans of beer are left . . . :beer:) then depending on the quantity display a different text string. EG <6 “Get More Beer!”; >24 “Whoo Hoo, More Beer!”; etc

This works OK on the LCD display, I just dont like the interface style.

cul
billd

0 Likes

#9

Using my ‘patent pending’ :wink: Blynkified colour picker, I can also confirm #212226… or zeRGBa numbers 33, 34, 38.

image

Of course i had to read that value on my clunky old LCD as the numbers vanished on my display :stuck_out_tongue:

image

1 Like

New Android Release 2.23.0
#10

:face_vomiting::face_vomiting::face_vomiting:

And what’s with the Chinese(?) proverb along the bottom of the display . . .?

cul
billd

0 Likes

#11

??? You can send any character… even emoticons.

image

And you just showed such in your image in your first post :wink:

1 Like

#12

O . . . . K . . . . I did try and it failed (may have been sytax error?) First thing to try when I get home tonight.

thnx
billd

0 Likes

#13

Well, the Chinglish translation is close :stuck_out_tongue:

Blinking Electronics

0 Likes

LCD title chars
#14

Thnx, the answer was staring me in the face . . . Labeled Value widget (i’ve used this many, many times before . . .). Previous uses have been fixed text with a chnaging variable . . . thats what threw me off track . . . I want to send variable text. But I already have seperate functions for each text string, so just add the numerical value as well as the text and voila.

I’ve used two Labeled Value widgets here, the one on the left is a ‘Dummy’, I just changed the text in the app. When I get home I’ll consolidate the string and quantity into a single widget from the hardware side.

Thnx for the insight guys, its amazing how fresh sets of eyes changes the perpective!

Goodbye forever LCD!

cul
billd

0 Likes

#15

image

1 Like

#16

Only in Blynk . . . Still the clock of choice in my shed . . . one of the first Arduino projects I attempted.
cul
billd

0 Likes

#17

Nice… I also have one of those LCD/keypad shields (must find a use for it)… and a renewed interest in merging “old” Arduino tech with Blynk into “new” IoT devices. As shown here:

0 Likes

#18

Did you change this in the app or by using Blynk.setProperty(V0, “label”, “My New Widget Label”); ???

I have been trying tonight to change the LABEL on a Labeled Value Display widget by sing the Blynk.setProperty() function. it does work to a limited degree . . . however there is an inconsistency in the terminology between the docs and the app.

In the app (or widget properties) LABEL refers to the field where you enter the test string, /pin/ value etc.

However when you set the label property from hardware it changes te small widget descriptor test in the top left corner of the widget - not the section described (labeled :wink: as LABEL.

  1. DOCS say you can change widget propertities, including “label”

  1. When you check the Labeled Value widget in DOCS it shows the LABEL field very clearly . . .

I would expect Blynk.setProperty(V0, “label”, “My New Widget Label”); to change the text in the area shown by my red arrow, as LABEL.

  1. It actually changes the small, widget descriptor in the top left corner

my code = Blynk.setProperty(V0, “label”, “Test Label”);

this is the result

TestLabelV0

So back to my original post . . . is there a way to change the LABEL (as described in the widget settings on the app), from hardware. Its easy to change in the app, but from hardware based on different conditions?

cul
billd

0 Likes

#19

All other times I’ve changed the label in widgets I’ve done it from the app (widget settings), not from hardware.

cul
billd

0 Likes

#20

Isn’t it just a case of doing a virtual write to the widget with a text value?

Pete.

0 Likes

#21

Your OP was that you thought you needed the LCD becasue can’t send text strings…presumably in the main body of a Display widget. This has been resolved :wink:

As for labels, LABELS, and Labeled Display Widgets… yes, all a bit confusing as the App and libraries developed :stuck_out_tongue:

The little grey label on most widgets can be changed in App or via code with Blynk.setProperty(V0, "label", "Your Label")

The main boady of the text can be changed via code with Blynk.virtualWrite(vPin, value)

But in the Labeled Display Widget, AFAIK NO, you cannot change the LABEL data from code… However, there is no real need to… since you can use alphanumeric text and/or emoticons via their UTF-8 code… see here, and even control the decimal points if need be (generaly by preformatting the number to a string I belive?), all from code for the main value body of the widget.

The LABEL option is probably more for “codeless” App use.

0 Likes

#22

Yes, but that ONLY writes the text value to the widget Vx pin. (which is better than the LCD display), but still not staisfcatory (for me :wink:

I want to write . . .

/pin/ in the same widget . . .

I’m getting greedy, I know. I an experimenting with sprintf() now to see if I can get my text and int in the same string . . .

There is still a basic inconsistency with the Blynk Docs - the setPropety() label does NOT change the label as they show in the docs, it changes the small widget descriptor in the top left corner. It may not seem like much, but support documents must be 100% accurate, especially for naming conventions.

No big deal, I’ve learnt a LOT today (and re-remembered twice as much!).

The more I play with Arduino and Blynk, the more I remember the more powerful it gets!

To add to my joy I’m doing this manually flashing a standalone ESP chip . . . which I only sorted last week . . .

cul
billd

0 Likes

#23

That is the label :stuck_out_tongue_winking_eye:

You are referring to the specific part of a the Labeled Display called LABEL (all caps)… that is the one that appears meant for codeless use, and anything it can do can be done by code… which since you are sending values to it anyhow, well, customise it first.

1 Like

#24

Yes, 100% resolved.

As I’ve discovered . . .I can send text, int, float, whatever, but not a combination . . . i’m experimenting with sprintf() to see if I can create the string I want and send that.
cul
billd

0 Likes

#25

I know that know . . .label <> LABEL . . .just a bit confusing . . .perhaps a different choice of descriptor? Aanyway all good, my beer is old, I have lots and have learnt a lot!

:beer::beer::beer:

0 Likes

#26

That is the key… since everything set is apparently strings anyhow, just make up/combine your own and virtualWrite() it

For example this is how I format my nicely formatted clock (thanks to @Costas for showing this to me)…

sprintf(currentTime, "%02d:%02d:%02d", hour(), minute(), second());
Blynk.virtualWrite(V12, "\xE2\x8F\xB3", currentTime);  // Send time to Display Widget

The funny text at the beginning of the virtualWrite() value is the hourglass, I actually change it every second so that it looks like it is filling & emptying in the App. The label was manually inserted.

image image

1 Like

#27

Yes, sprintf() or classic string constructor code is the way to go.

Pete.

0 Likes