Thank you Michael.
Yes was doing that for my temperature and humidity sensors.
It was relating to my TTS hourly chime reading of the reference variable and not knowing that I could TTS the value of the variable.
Changing it now in the MQTT reference ID configuration. I had made the mistake of not putting the value in the right "slot".
Now the TTS is a whole number temperature.
How would I change this line to TTS the value instead of the reference ID?
Today is $date. The time is $time. The indoor temperature is $$DVR:2556: degrees, and Relative Humidity is $$DVR: 2444: percent. The outdoor temperature is $$DVR: 2580: degrees.
Announcement
Collapse
No announcement yet.
How to round numbers while speaking?
Collapse
X
-
Thank-you guys. I am rounding off the number in the value display of the variable.
This is a MQTT value and I think I can massage it when MQTT receives the value in the MQTT configuration.
Leave a comment:
-
I have an event that speaks the amount of electricity being used when I turn on the oven or dryer using the Brultech plugin. Often the spoken value goes out to 9 or 10 decimal places. I guess that would have to be modified within the plugin. It does sound impressive though.
Leave a comment:
-
You may have to round the device value before you retrieve it. "&hs.SetDeviceValueByRef(2556, hs.DeviceValue(2556), False)" might do it.
- Likes 1
Leave a comment:
-
How to round numbers while speaking?
I do an hourly chime with temperature and humidity here. My temperatures speak to two decimals and I would like to round the number to a whole number.
IE:
Today is $date. The time is $time. The indoor temperature is $$DVR:2556: degrees, and Relative Humidity is $$DVR: 2444: percent. The outdoor temperature is $$DVR: 2580: degrees.
I have tried to change $$DVR:2556: degrees to Round($$DVR:2556: /2,0) degrees and hear TTS saying Round and the extra 2 and 0.
How do I round off the integer while speaking?
Tags: None
Leave a comment: