[{"id":"b9f8a296.ccf49","type":"inject","z":"8b8a8d71.0b763","name":"03文本图片","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"30 09 * * 5","once":false,"onceDelay":"2","topic":"","payload":"{}","payloadType":"json","x":150,"y":280,"wires":[["f67b000b.020bb"]]},{"id":"a0146257.383f4","type":"http request","z":"8b8a8d71.0b763","name":"GET请求","method":"GET","ret":"obj","paytoqs":"ignore","url":"https://tool.bitefu.net/jiari/?d={{{payload}}}&info=1","tls":"","persist":false,"proxy":"","authType":"","x":640,"y":280,"wires":[["53135896.ac15b8"]]},{"id":"53135896.ac15b8","type":"function","z":"8b8a8d71.0b763","name":"判断","func":"//声明新的变量date=msg.payload(上个节点的值)。\n//date.type为上个节点msg.payload.type的值。\nvar date=msg.payload \nif (date.type==0) \n{\n msg.payload = "工作日"\n}\nelse if (date.type==1)\n{\n msg.payload = "周末"\n}\nelse if (date.type==2)\n{\n msg.payload = "节假日"\n}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":790,"y":280,"wires":[["99cdcdae.d30e9"]]},{"id":"f67b000b.020bb","type":"api-current-state","z":"8b8a8d71.0b763","name":"获取日期","server":"43ab5baf.650144","version":2,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"sensor.date","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":320,"y":280,"wires":[["97b93866.0aaba8"]]},{"id":"97b93866.0aaba8","type":"change","z":"8b8a8d71.0b763","name":"修改格式","rules":[{"t":"change","p":"payload","pt":"msg","from":"-","fromt":"str","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":480,"y":280,"wires":[["a0146257.383f4"]]},{"id":"14ba1d05.6dc9f3","type":"link out","z":"8b8a8d71.0b763","name":"","links":["b9e8b389.12553"],"x":1035,"y":280,"wires":[]},{"id":"99cdcdae.d30e9","type":"switch","z":"8b8a8d71.0b763","name":"工作日","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"工作日","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":930,"y":280,"wires":[["14ba1d05.6dc9f3"]]},{"id":"43ab5baf.650144","type":"server","name":"Home Assistant","version":1,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]