1
0

日志:2023 年 11 月 15 日

This commit is contained in:
周中平 2023-11-15 17:39:12 +08:00
parent 61ee930495
commit e533c28f9d
Signed by: zhouzhongping
GPG Key ID: 6666822800008000
2 changed files with 46 additions and 1 deletions

View File

@ -0,0 +1,45 @@
## 📅 Info
| Date | Weather | Moon |
| -------------- | ------------ | ---- |
| 周三 17:33 | 郑州 +12°C 🌫 | 🌒 |
## 📖 Daily
昨夜闲潭梦落花,可怜春半不还家。——张若虚(唐代)
## 😊 Emotions
- [ ] 😊 Happy
- [ ] 😢 Sad
- [ ] 😡 Angry
- [x] 😔 Disappointed
- [ ] 😂 Laughing
- [ ] 😭 Crying
- [ ] 😱 Scared
## 🍎 Habits
- [ ] 🌅 Early to bed, early to rise
- [ ] 🥕 Healthy eating
- [x] ☕️ Drink more hot water
- [ ] 💪 Keep exercising
- [ ] 🧘‍♂️ Meditation
## 📋 To-do List
- [ ] 📰 Read news
- [x] 📖 Read a book today
- [x] 📝 Make a plan for today
- [ ] 🖋️ Calligraphy practice
- [ ] 🎯 deliberate practice
## 📝 Notes
这几天天气很差,步入冬天也变得更懒了。
方向不变,目前主要任务:明年毕业及学习英语,技术方面主要设计企业信息化建设以及成果整理。
对了,还有写作!
小周继续冲冲冲!

View File

@ -10,7 +10,7 @@ function getWeather(city = 'Shanghai', params = 'format=3') {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
const timeout = setTimeout(() => { const timeout = setTimeout(() => {
reject(new Error('Request timed out')); reject(new Error('Request timed out'));
}, 5000); // 设置5秒的请求超时 }, 15000); // 设置15秒的请求超时
https.get(`https://wttr.in/${encodeURIComponent(city)}?${params}`, (resp) => { https.get(`https://wttr.in/${encodeURIComponent(city)}?${params}`, (resp) => {
let data = ''; let data = '';