How can make tts speak the weather?

I have installed baidu_fanyi_tts this way:

git clone https://github.com/hasscc/hass-baidu-fanyi-tts
sudo cp  -R  hass-baidu-fanyi-tts/custom_components   /home/homeassistant/.homeassistant

The setting in configuration:

tts:
  - platform: baidu_fanyi_tts
    language: zh  
    speed: 5

Add weather integration:

git clone  https://github.com/ryanh7/ha-nmc-weather
sudo cp  -R  ha-nmc-weather/custom_components/*   /home/homeassistant/.homeassistant/custom_components

1.How can make baidu_fanyi_tts speak the weather now?
2.How can make baidu_fanyi_tts speak the weather on 7 o’clock everyday?

Does tts.speak not work?

Click SAY,it works fine.

1.How can make baidu_fanyi_tts speak the weather now?
2.How can make baidu_fanyi_tts speak the weather on 7 o’clock everyday?

How to write some code in configuration.yaml or click something to do?

You should be able to create an automation with a sentence trigger “what is the weather”
You could also use a time based trigger for this automation as well.

Hi,
Just use the weather entity in a TTS service call:

- id: '123456'
  alias: Alarm - Good Morning
  description: ''
  trigger:
  - platform: time
    at: 07:00:00
  action:
  - service: tts.google_say
    data:
      entity_id: media_player.changeme
      message: Good morning It is {{ now().hour}} {{ now().minute }}
        The forecast is {{ states('weather.home') }}

If this helps, :heart: this post!

tts:
  - platform: baidu_fanyi_tts
    language: zh 
    speed: 5     
  - id: '123456'
    alias: Alarm - Good Morning
    description: ''
    trigger:
    - platform: time
      at: 07:25:00
    action:
    - service: tts.baidu_fanyi_tts_say
      data:
        entity_id: media_player.changeme
        message: Good morning It is {{ now().hour}} {{ now().minute }}
          The forecast is {{ states('weather.home') }}

It encounter error:

Invalid config for [tts]: required key not provided @ data[‘platform’]. Got None.