在 Linux 下安裝 wego
創(chuàng)新互聯(lián)歡迎來電:028-86922220,為您提供成都網(wǎng)站建設(shè)網(wǎng)頁設(shè)計(jì)及定制高端網(wǎng)站建設(shè)服務(wù),創(chuàng)新互聯(lián)網(wǎng)頁制作領(lǐng)域10多年,包括成都陽臺(tái)護(hù)欄等多個(gè)領(lǐng)域擁有多年的網(wǎng)站維護(hù)經(jīng)驗(yàn),選擇創(chuàng)新互聯(lián),為網(wǎng)站錦上添花!
安裝 wego 相當(dāng)簡(jiǎn)單。wego 是用 Go 編寫的,引起第一個(gè)步驟就是安裝 Go 語言。然后再安裝 wego。
$ go get github.com/schachmat/wego
wego 會(huì)被安裝到 $GOPATH/bin,所以要將 $GOPATH/bin 添加到 $PATH 環(huán)境變量。
$ echo'export PATH="$PATH:$GOPATH/bin"'~/.bashrc
$ source ~/.bashrc
現(xiàn)在就可與直接從命令行啟動(dòng) wego 了。
$ wego
第一次運(yùn)行 weg 會(huì)生成一個(gè)配置文件(~/.wegorc),你需要指定一個(gè)天氣 API key。 你可以從 worldweatheronline.com 獲取一個(gè)免費(fèi)的 API key。免費(fèi)注冊(cè)和使用。你只需要提供一個(gè)有效的郵箱地址。
你的 .wegorc 配置文件看起來會(huì)這樣:
除了 API key,你還可以把你想要查詢天氣的地方、使用的城市/國(guó)家名稱、語言配置在 ~/.wegorc 中。 注意,這個(gè)天氣 API 的使用有限制:每秒最多 5 次查詢,每天最多 250 次查詢。 當(dāng)你重新執(zhí)行 wego 命令,你將會(huì)看到最新的天氣預(yù)報(bào)(當(dāng)然是你的指定地方),如題圖顯示。
顯示出來的天氣信息包括:(1)溫度,(2)風(fēng)速和風(fēng)向,(3)可視距離,(4)降水量和降水概率 默認(rèn)情況下會(huì)顯示3 天的天氣預(yù)報(bào)。如果要進(jìn)行修改,可以通過參數(shù)改變天氣范圍(最多5天),比如要查看 5 天的天氣預(yù)報(bào):
$ wego 5
如果你想檢查另一個(gè)地方的天氣,只需要提供城市名即可:
$ wego Seattle
問題解決
可能會(huì)遇到下面的錯(cuò)誤:
當(dāng)你在一個(gè)不支持原生 Go 編譯器的環(huán)境下運(yùn)行 wego 時(shí)就會(huì)出現(xiàn)這個(gè)錯(cuò)誤。在這種情況下你只需要使用 gccgo ——一個(gè) Go 的編譯器前端來編譯程序即可。這一步可以通過下面的命令完成。
$ sudoyum install gcc-go
$ go get-compiler=gccgo github.com/schachmat/wego
user:Currentnot implemented on linux/amd64
安卓天氣軟件有很多,下面是小編收集的一些,推薦給樓主。下載可以再【安卓園】下載。
【桌面時(shí)間天氣插件】
簡(jiǎn)單、精致、實(shí)用的天氣預(yù)報(bào)軟件Fancy Widget,最接近hTc官方桌面天氣,支持多國(guó)語言。
【Android天氣通】
天氣通是一款免費(fèi)的手機(jī)天氣預(yù)報(bào)軟件,是國(guó)內(nèi)最早的專業(yè)手機(jī)天氣預(yù)報(bào)軟件。獨(dú)創(chuàng)的語音播報(bào)功能更使天氣通一躍成為手機(jī)天氣軟件的里程碑。詳盡的城市目錄,預(yù)報(bào)準(zhǔn)確,可實(shí)現(xiàn)分時(shí)段智能間隔更新和按次更新-節(jié)省流量。
【GO天氣 】
GO天氣作為Android系統(tǒng)最華麗的一款天氣軟件,近日v1.71已經(jīng)正式發(fā)布,相比之前的v1.70只是修改了一些潛藏的bug,喜歡的朋友可以更新一下。
【蜜蜂天氣-生活最佳伴侶】
天氣預(yù)報(bào)則是對(duì)未來一定時(shí)期內(nèi)的天氣狀況進(jìn)行預(yù)測(cè)。掌握天氣訊息十分重要。陰晴云雨,都與我們的工作生活息息相關(guān)。蜜蜂天氣是專門為安卓系統(tǒng)打造的貼心的小應(yīng)用,能及時(shí)提供全國(guó)主要城市最近四天內(nèi)的天氣情況,方便您適當(dāng)安排自己的工作生活!
【墨跡天氣 】
在此版本中加入了大家期待以久的新功能,首先,加入了TTS語音播報(bào)功能,所有聲音采用真人普通話為標(biāo)準(zhǔn)發(fā)音,讓用戶可以聽到清晰悅耳的音質(zhì)和連貫流暢的語調(diào),并且加入了定時(shí)播報(bào)天氣功能,突出墨跡天氣的人性化標(biāo)準(zhǔn);其次,支持國(guó)際城市,并支持城市名稱模糊搜索,
Unit 1 詞組 be from 來自 New York 紐約 in November 在十一月 the Unite States 美國(guó) the Unite Kindom 英國(guó) live in 居住 pen pal 筆友 at school 在學(xué)校 enjoy doing sth. 喜歡做某事 speak a little French 講一點(diǎn)法語 write to sb. 給某人寫信 tell sb. about sth. 告訴某人關(guān)于某事 her favorite subject 她最喜歡的科目 a very interesting country 一個(gè)很有趣的國(guó)家 years old….. ….歲 a little 一點(diǎn)兒 in November 在十一月 go to the movies 去看電影 play sports 做運(yùn)動(dòng) on weekends 在周末 action movies 動(dòng)作片 likes and dislikes 好惡, 愛憎 句型 where is your pen pal from 你的筆友是哪里人? He is from Korea. 他是朝鮮人。 Where do you live 你住在哪里 I live in Beijing. 我住在北京。 What language does he speak 他講什么語言? He speaks English. 他講英語。 Is that from your new pen pal 它是你筆友那兒來的嗎? Yes , it is. 是的,它是。 I want a pen pal in China. 我想在中國(guó)找一個(gè)筆友。 I think China is a very interesting country. 我認(rèn)為中國(guó)是一個(gè)很有趣的國(guó)家。 I can speak English and a little French. 我會(huì)說英語和一點(diǎn)法語。 I like going to the movies with my friends and playing sports. 我喜歡和朋友一起看電影,做運(yùn)動(dòng)。 My favorite subject in school is P.E. 我在學(xué)校最喜歡的科目是體育。 Can you write to me soon 你不久能給我寫信嗎? I play soccer on weekends. 我周末踢足球。 It’s my favrite sport. 這是我最喜愛的運(yùn)動(dòng)。 I like music at school. 在學(xué)校我喜歡音樂。 Please write and tell me about yourself. 請(qǐng)寫信告訴我你的情況。 Unit 2 詞組 post office 郵局 pay phone (投幣式)公用電話 across from 在…的對(duì)面 excuse me (打撹他人…)對(duì)不起 take a walk 散步 have fun 玩的高興,過的愉快 take a taxi 乘出租車, 打的 near here 在這兒附近 on Center Street 在中心大街 next to… 在…旁邊 between…and… 在…和…之間 go straight 一直走 in the neighborhood 在附近 on the lefe/ right 在左/右邊 turn lefe/right 向左/右拐 an old hotel 一家舊旅館 a small house with an interesting garden 帶有一個(gè)有趣花園的小房子 the beginning of …的開端 play games 做游戲 on the bench 在長(zhǎng)凳上 the way to… 去…的路 go down 沿/順著走 have a good trip 有一個(gè)愉快的旅行 a quiet street 一條安靜的街道 a big supermarket 一家大超市 a dirty park 一個(gè)臟的公園 句子 Is there a bank near here? 這兒附近有銀行嗎? Yes, there is. It’s on Center Street. 有,在中心大街。 The pay phone is across from the library. 公用電話在圖書館的對(duì)面。 Is there a hotel in the neighborhood 這附近有旅館嗎? Just go straight and turn left. 一直走再左拐。 Next to the hotel is a small house with an interesting garden. 旅館旁邊是一座帶有一個(gè)有趣花園的小房子。 This is the beginning of the garden tour.這只是我們花園旅程的開端。 Let me tell you the way to my house. 讓我來告訴你去我家的路。 Take a taxi from the airport. 在機(jī)場(chǎng)乘出租車。 I hope you have a good trip. 我希望你旅途愉快。 語法 詢問地點(diǎn)時(shí)用特殊疑問詞 where 加一般疑問句?;卮饡r(shí)常需用一些表示方位的介詞短語來回答。 如 1. 詢問來自哪里 Where is your pen pal from He’s from Australia. Where does your pen pal come from He comes from Australia. 2. 詢問住在哪里 Where does John live He lives in Paris. 3. 詢問去哪里 Where are you going I’m going to the supermarket. 4. 詢問物品的位置 Where is my key It’s in the drawer. 5. 詢問地點(diǎn) Where is the hospital It’s on First Avenue. 6. 詢問人的位置 Where is our English teacher She is on the playground. Unit 3 詞組 kind of 有點(diǎn)兒,稍微 at night 在夜里,在晚上 want to do sth. 想要做某事 South Africa 南非 be from 來自 play with 和…玩耍 eat grass 吃草 be quiet 安靜 during the day 在白天 句子 Why do you want to see the lions 你為什么要看獅子? Because they are cute. 因?yàn)樗鼈兛蓯邸?Why does he like koalas 他為什么喜歡考拉? Where are lions from 獅子出生在哪里? Lions are from Africa. 獅子出生在非洲。 What animals do you like 你喜歡什么動(dòng)物? What other animals do you like 你還喜歡其它什么動(dòng)物? She likes to play with her friends and eat grass. 它喜歡和朋友們玩耍,吃草。 She’s very beautiful, but she’s very shy, so please be quiet. 它非常美麗,但害羞。所以請(qǐng)保持安靜。 He sleeps during the day, but at night he gets up and eats leaves. 它白天睡覺,但晚上起來吃樹葉。 He usually sleeps and relaxes 20 hours every day. 它通常每天睡覺休息20個(gè)小時(shí)。 語法 why, what, where 引導(dǎo)的特殊疑問句 特殊疑問句的構(gòu)成 特殊疑問詞 + 一般疑問句 一般問句通常三類詞開頭 1,be動(dòng)詞。 is, am , are 2.助動(dòng)詞。 do, does 3.情態(tài)動(dòng)詞。 can 注意:一般疑問句應(yīng)該用Yes 或 No 來回答,特殊疑問句不能用。 why開始的疑問句,一般要用because 作答。 Unit 4 詞組 a shop assistant 售貨員 a bank clerk 銀行職員 work with 同…一起工作 give sb. sth. =give sth. to sb. 把某物給某人 get sth. from sb. 從某人處得到/獲得某物 wear a white uniform 穿白大褂 in the day 在白天 at night 在夜晚 kind of 有點(diǎn), 稍微 go out to dinners 外出就餐 like doing sth. 喜歡干某事 talk to/with sb. 與某人交談 every day 每天 in a hospital 在醫(yī)院(工作) in hospital (生病) 在醫(yī)院 work hard 努力工作 have a job for sb. 有工作給某人 write stories 寫故事 work for a magazine 為雜志社工作 a library assistant 圖書管理員 a P. E teacher 體育教師 句子 What do you do 你做什么工作? I’m a reporter. 我是記者。 What does he/she do 他/她做什么工作? He/She is a doctor. 他/她是醫(yī)生。 What do you want to be 你想做什么工作? I want to be an actor. 我想當(dāng)醫(yī)生。 What does he/she want to be 他/她想做什么工作? He/She wants to be a bank clerk. 他/她想當(dāng)銀行職員。 Where do you work 你在哪兒工作? I work in a restaurant. 我在飯店工作。 Where does he /she work 他/她在哪兒工作? He/She works in a hospital. 他/她在醫(yī)院工作。 I work with people and money. 我的工作是跟人和錢打交道。 People give me their money and get their money from me. 人們把錢存到我這兒或從我這兒把錢取走。 I wear a white uniform. 我穿件白大褂。 Sometimes I work in the day and sometimes at night. 有時(shí)我白天工作有時(shí)我夜晚工作。 My work is interesting but kind of dangerous. 我的工作雖然有趣,但是有點(diǎn)危險(xiǎn)。 Thieves don’t like me. 小偷不喜歡我。 I’m very busy when people go out to dinners. 當(dāng)人們外出吃飯時(shí)我很忙。 I like talking to people. 我喜歡和人們交談。 I meet interesting people every day and ask them questions. 我每天遇到些有趣的人并問他們問題。 語法 一般現(xiàn)在時(shí) 表示包括“現(xiàn)在“在內(nèi)的一段時(shí)間內(nèi)經(jīng)常發(fā)生的動(dòng)作或存在的狀態(tài)。 1. 表示習(xí)慣或經(jīng)常反復(fù)發(fā)生的動(dòng)作或存在的狀態(tài)。常和副詞often, always, usually, every day, sometimes 等詞連用。 2. 表示主語現(xiàn)在的身份,狀態(tài),特性,性格等。 3. 表示主語所具備的能力,性格等。 4. 表示普遍真理和客觀事實(shí)。 注意 ⑴當(dāng)主語是第三人稱單數(shù)時(shí),用 “主語+行為動(dòng)詞+其他” 句子時(shí)行為動(dòng)詞后要加-s. ⑵否定句中加了don’t, 或doesn’t, 后實(shí)義動(dòng)詞一定要變成原形。 ⑶一般疑問句句首加了do, does, 后面實(shí)義動(dòng)詞一定也要變成原形。 ⑷一般疑問句,一般要把第一人稱(I , we)變成第二人稱(you) ,把some 變成any. Unit 5 詞組 watch TV 看電視 sound good 聽起來很好 go to the movies 去看電影 TV show 電視節(jié)目 do homework 做家庭作業(yè) write a letter 寫信 read a book 看書 wait for 等待,等候 talk to 和…談話 talk about 談?wù)摚?討論 play basketball 打籃球 at the pool 在游泳池 eat dinner 吃飯 a photo of my family 我全家的一張照片 play soccer 踢足球 take photos 拍照 句型 what’s he doing 他在干什么? He’s reading. 他在看書。 What are you doing 你在干什么? I’m watching TV. 我在看電視。 Do you want to go to the movies. 你想看電影嗎? That sounds good. This TV shows is boring. 那聽起來不錯(cuò)。這個(gè)電視節(jié)目很無聊。 Is Nancy doing homework 南希在做作業(yè)嗎? No, she isn’t. She is writing a letter. 不,她在寫信。 When do you want to go 你們什么打算去? Let’s go at six o’clock. 我們六點(diǎn)去吧。 What’s he waiting for? 他在等什么? What are they talking about 他們?cè)谡務(wù)撌裁矗?Thanks for your letter and the photos. 謝謝你的來信和寄來的照片。 In the first photo, I’m playing basketball at school.在第一張照片里,我在學(xué)校打籃球。 In the second photo, I’m swimming at the pool. 在第二張照片里,我在游泳池里游泳。 She is doing homework. I’m watching TV. 她在做作業(yè),我在看電視。 Here’s a photo of my family. 這是我家人的一張照片。 語法 現(xiàn)在進(jìn)行時(shí) 1. 用法:⑴表示現(xiàn)在正在進(jìn)行的動(dòng)作。 ⑵表示當(dāng)前一段時(shí)期的活動(dòng)或現(xiàn)階段正在進(jìn)行的動(dòng)作。 2. 構(gòu)成:動(dòng)詞be+現(xiàn)在分詞。 3. 現(xiàn)在分詞的構(gòu)成 ⑴一般加-ing. 如 watch—watching do—doing ⑵以不發(fā)音的字母e 結(jié)尾,去e 再加-ing。 如 make—making have—having ⑶重讀閉音節(jié)結(jié)尾的詞,如詞尾只有一個(gè)輔音子母,應(yīng)雙寫這一輔音子母,再加-ing. 如: sit—sitting run—running . 5. 現(xiàn)在進(jìn)行時(shí)的標(biāo)志: 當(dāng)句中出現(xiàn)look, listen, now 等詞時(shí),句子往往用現(xiàn)在進(jìn)行時(shí)。 Unit 6 詞組: play computer games 玩電腦游戲 How’s it going 情況怎么樣? on vacation 度假 take photos 照相 a kind of 一種… have a good time 玩得高興 Eiffel Tower 艾菲爾鐵塔 句子 How’s the weather 天氣怎么樣? It’s raining. 正在下雨。 What are you doing 你在干什么? I’m watching TV. 我在看電視。 What are they doing 他們?cè)诟墒裁矗?They are studying. 他們?cè)趯W(xué)習(xí)。 What’s he doing 他在干什么? He’s playing basketball. 他在打籃球。 What’s she doing 她在干什么? She’s cooking. 她在做飯。 Thank you for joining CCTVs Around The World show. 謝謝你參加中央電視臺(tái)世界環(huán)球展。 I’m looking at five thousand years of history. 我正在看歷史五千年。 語法: 1. How 引導(dǎo)的特殊疑問句 ‘怎樣, 怎么,如何’ ⑴詢問天氣 How’s the weather It’s raining. ⑵詢問情況進(jìn)展如何 How’s it going Great. 2. 有少量動(dòng)詞的現(xiàn)在進(jìn)行時(shí)態(tài)可表示一最近按計(jì)劃或安排要進(jìn)行的動(dòng)作,如: do, come, go, arrive, start, leave, return, have, stay 等。 Unit 7 詞組: look like 看起來像 medium height 中等身材 the captain of the …team …隊(duì)的隊(duì)長(zhǎng) a little bit 有點(diǎn)兒,一點(diǎn)兒 tell jokes 講笑話 stop talking 停止談話 play chess 下棋 the rock singer 搖滾歌手 the pop singer 流行歌手 a new look 新形象,新面貌 句子: What does she look like 她長(zhǎng)得什么樣? She is medium build, and she has long hair. 她中等身材,留著長(zhǎng)發(fā)。 She is a little bit quiet. 她有點(diǎn)兒話少。 Xu Qian loves to tell jokes. 許茜愛講笑話。 He likes reading and playing chess. 他愛看書,愛下棋。 She never stops talking. 她總是講個(gè)不停。 The person is medium height. 這個(gè)人中等身材。 I don’t think he’s so great. 我認(rèn)為他沒那么偉大。 I’m very good-looking. 我很好看。 語法: ⑴do 和does 在一般現(xiàn)在時(shí)態(tài)的陳述句中,若無be動(dòng)詞或情態(tài)動(dòng)詞時(shí),構(gòu)成疑問句需加助動(dòng)詞do.當(dāng)主語是第三人稱單數(shù)時(shí)要用does.如: Does she look like her father What do you/they look like What does he/she look like ⑵be動(dòng)詞的用法 我用am, 你用are, is跟這他,她,它。凡是復(fù)數(shù)都用are. ⑶have 和has 在一般現(xiàn)在時(shí)態(tài)中,當(dāng)主語是第三人稱單數(shù)時(shí),用have的三單形式has,其他人稱不變(即用have).如: We have black hair. They both have a medium build. She has curly hair. Henry has a happy family. ⑷一般疑問句 一般疑問句常以be動(dòng)詞,情態(tài)動(dòng)詞,助動(dòng)詞開始,回答時(shí)應(yīng)用yes或no. Unit 8 詞組 would like 要,想要 what kind 什么種類 a bowl of noodles 一碗面條 beef noodles 牛肉面 what size 多大尺寸 a medium bowl 一個(gè)中碗 orange juice 桔子汁 green tea 綠茶 ice cream 冰淇淋 句子 I’d like some noodles. 我想吃點(diǎn)面條 What kind of noodles would you like 你想要那種面條? Beef and tomato noodles, please. 西紅柿牛肉面。 What size bowl of noodles would he like 他要多大碗的面條? He’d like a small/medium/large bowl of noodles 他想要一個(gè)小/中/大的面條。 We have some great specials! 我們有非常棒的特價(jià)餃子。 Special 1 has beef and onions, and is just RMB 10 for 15. 特價(jià)是牛肉,洋蔥(陷),10元人民幣就可以買到15個(gè)。 Come and get your dumplings today! 今天來那餃子。 語法 情態(tài)動(dòng)詞would ⑴情態(tài)動(dòng)詞后應(yīng)加動(dòng)詞原形,⑵情態(tài)動(dòng)詞無人稱和數(shù)的變化,適用于所有人稱。 What引導(dǎo)的特殊疑問句。1,what加一般問句。2,what后跟不同的名詞,構(gòu)成不同的問句。如:What club does he play for What size would you like What colour are their bikes 名詞:表示人,事物,地點(diǎn),或抽象概念的名稱的詞。 名詞分可數(shù)名詞,不可數(shù)名詞。