Upgrade to Pro — share decks privately, control downloads, hide ads and more …

FunWater => 整合自動化建構 + 無伺服器應用在 Action on Google

demotascha
December 01, 2019

FunWater => 整合自動化建構 + 無伺服器應用在 Action on Google

#devfest19 #taipei
分享緣起,怎麼設計 AoG 應用,並透過『無伺服器』、『自動化建構』快速建構與整合服務,完成 project

demotascha

December 01, 2019
Tweet

Other Decks in Technology

Transcript

  1. About Me • Senior software engineer at IFCHIC • Interested

    in backend development, CI/CD • Able to build an environment / application with docker • Enjoy working on Google Cloud Platform @demotascha
  2. ➢ September 26-28, 2019 ➢ 85 cities ➢ 1,300 attendees

    2019 Global Voice Hackathon https://www.voicehackathon.org/
  3. ❖ Inspired by true story ❖ Demo ❖ How to

    implement & Architecture ▪ Open Data Taipei ▪ Cloud Functions ▪ Algolia ▪ Google Assistant ▪ Dialogflow ▪ Google Maps API ▪ Cloud Schedule ▪ Cloud Source Repository ▪ Cloud Build ▪ Hosting options ▪ CI / CD ❖ Summary Outline
  4. 12 8 million tons of plastic ends up in the

    ocean annually. 圖/@ rencontres.logrami.fr
  5. Problem 3. It takes three times the water to make

    the bottle as it does to fill it. 4. 8 million tons of plastic ends up in the ocean annually. 1. A million plastic bottles are bought around the world every minute. 2. Plastic bottles can take 450 years or more to break down and decompose. Some estimates push that number closer to 1,000 years.
  6. Goal ➢ Reduce plastic bottles (for human) ➢ Easy to

    get drinking water (for User) ➢ Easy to deploy to other cities(for developer)
  7. ➢ Based on “Google Assistant” and “Line” ➢ Use “Official

    Open Data” to get drinking fountain info (Outdoor) ➢ Use “Google Map” Solution
  8. * A million plastic bottles are bought around the world

    every minute. * It takes three times the water to make the bottle as it does to fill it. Usage rate 0.00001 0.00005 0.0001 Saved bottles/minute 10 50 100 Saved bottles/hour 600 3,000 6,000 Saved bottles/day 14,400 72,000 144,000 Saved bottles/year 525,600 26,280,000 525,600,000 Saved money/NT $20 10 M 525 M 10.5 B Saved water/gallon(US) 245980 12 M 245 M Expectation
  9. Cloud Function 1. No server management 2. Scales automatically 3.

    Runs code in response to events 4. Pay only while your code runs 5. Connects and extends cloud services
  10. “Our mission is to give development teams the building blocks

    to create a fast, relevant search experience.” Features: ❖ Fast, Sort, Filter, Group, GeoLocation, Synonyms Algolia
  11. Tips ❖ Resources: Google, Official Documents, Google Codelabs, Qwiklabs, Coursera

    ❖ Keywords: options, maps, flow (en / zh-TW) ❖ Scenario ❖ Free quota & limits ❖ Best practices
  12. Pros and Cons ❖ Does not support Comments and Ratings

    ❖ Does not support Feedback/Report. ❖ Cost ➢ Algolia - Free for non-commercial use ➢ Google Map API - daily free quota ➢ Cloud Function - Free quota ❖ Focus on getting drinking fountain resource. ❖ Focus on building great applications. ❖ Improve development efficiency and productivity
  13. The Future of Work ➢ Get More “Official Drinking fountain

    Data” (Outdoor/Indoor) ➢ Use “Cloud AutoML Vision” to add new drinking machine (Indoor) ➢ Implement Rating / Comment (Outdoor and Indoor) ➢ Join us
  14. References 1. https://developers.google.com/assistant 2. https://larrylu.blog/cloud-automl-vision-practice-b0d2c4377a87 3. https://medium.com/datainpoint/%E5%A6%82%E4%BD%95%E6%87%89%E7%94%A8-cloud-automl-vision-% E8%BE%A8%E8%AD%98%E8%94%A5%E8%96%91%E8%92%9C-8cb065830547 4. https://blog.gcp.expert/cloud-automl-vision-application-1/

    5. https://codelabs.developers.google.com/ 6. https://hiinstudio.com/ 7. https://www.bbc.co.uk/newsround/49422105 8. https://www.voicehackathon.org/ 9. https://www.facebook.com/SydneyWater/photos/a.172523166160391/1629899860422707/?type=1&theater 10. http://rencontres.logrami.fr/ocean-poster/ 11. https://watergo.teia.tw/ 12. https://gismobile.water.gov.taipei/WaterMap_drink/map/map.aspx 13. http://www.findafountain.org/ 14. https://data.taipei/api/getDatasetInfo/downloadResource?id=155999f2-3c5d-486b-af58-d7f4c0b0a4c9&rid=596 29791-5f4f-4c91-903b-e9ab9aa0653b 15. https://cloud.google.com/functions/ 16. https://www.algolia.com/ 17. https://dialogflow.com/ 18. https://cloud.google.com/stackdriver/?hl=zh-tw 19. https://www.michielrook.nl/2016/07/continuous-delivery-continuous-deployment/ 20. https://ithelp.ithome.com.tw/articles/10222318 21. https://cloud.google.com/solutions/continuous-integration/ 22. https://cloud.google.com/hosting-options/ 1. https://www.theguardian.com/environment/2017/jun/28/a-million-a-mi nute-worlds-plastic-bottle-binge-as-dangerous-as-climate-change 2. https://www.theguardian.com/environment/2017/jun/28/how-san-franc isco-is-leading-the-way-out-of-bottled-water-culture 3. https://www.theguardian.com/environment/2017/dec/04/sadiq-khan-pl ans-network-of-london-water-fountains-to-reduce-plastic-waste 4. https://www.theguardian.com/environment/2019/sep/30/girls-young-w omen-call-uk-reduce-single-use-plastic-girlguiding 5. https://www.drinklavit.com/blog/plastic-isnt-green 6. https://www.waterdocs.ca/water-talk/2018/4/7/facts-about-bottled-wate r 7. http://onelessbottle.org