weather API

blu.italia

New member
hello

the weather temperature trigger doesn't work with an if / else if / end if action.

for example: is the weather temperature trigger below 5 degrees do flashlight on or is above 5 degrees do a screenshot he will allways flashlight on independet there is more then 5 degrees now.

can someone help?

Edit: of you do text to speach, he can say all actions. For example month or battery temperature. But when you select weather degrees he only say the action name {weather_temperature_c} but not the degrees. So I think something is wrong with the weather API isn't it?
 

Attachments

  • Screenshot_20240220-170226_crDroid Home.png
    Screenshot_20240220-170226_crDroid Home.png
    127.1 KB · Views: 21
Last edited:

Dimlos

Well-known member
I could only briefly verify this due to lack of time, but it certainly seems to be behaving strangely.
Please submit a bug report with a sample macro that can reproduce it for sure.
 

LinerSeven

Active member
Hi, @blu.italia ,

Would you use the OpenWhether API, as in the attached macro?

***
Comments in the macro were written in German according to your capture.

Best Regards,
Liner SevenScreenshot_20240221-103340.png
Screenshot_20240221-103348.png

Screenshot_20240221-103358.png
 

Attachments

  • [Stichproben_zur_Überprüfung]_OWM.API.Test.macro
    17.5 KB · Views: 1
Last edited:

blu.italia

New member
Thanks for your posts.

It only was my mistake. You can see it in the screenshot in first post. I don't use "else if". With "else if" all works perfect:
 

Attachments

  • weather_api.macro
    2.7 KB · Views: 0
  • Screenshot_20240221-053804_crDroid Home.png
    Screenshot_20240221-053804_crDroid Home.png
    143 KB · Views: 11

blu.italia

New member
But perhaps anyone can help me too with this weather action.

So in my previous post all works great. But when I integrate these steps in a other macro it doesn't work. He don't da anything at the step with the temperature. What is wrong?
 

Attachments

  • IMG-20240221-WA0001.jpg
    IMG-20240221-WA0001.jpg
    335.1 KB · Views: 12

LinerSeven

Active member
Hi, @blu.italia,

As @Endercraft says, you might get more help if you attach the content of the macro in English view.

I would like to know more about the situation.

You own a Tesla car and you want to control your Tesla car according to changes in your surroundings?

As far as I can see from your macro, it contains a lot of waiting actions, but why don't you use "Warten bis zum Auslöser" (Wait Until Trigger)?

Best Regards,
Liner Seven,
 

blu.italia

New member
Screenshot in English is no problem.

My situation is: if the weather above 15 degrees set Tesla temperature to 15 degrees. It is under set to 19 degrees.

Yesterday I was sure it works. Today it doesn't. I don't understand what I do wrong.

I optimize my macro day to day and will integrate the wait until trigger ASAP.
 

Attachments

  • IMG-20240222-WA0003.jpg
    IMG-20240222-WA0003.jpg
    96.5 KB · Views: 6
  • IMG-20240222-WA0004.jpg
    IMG-20240222-WA0004.jpg
    96.6 KB · Views: 6
Top