Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Yet Another Perl Cooking

4,987 views

Published on

Slides of YAPC::Asia Tokyo 2015.
Talking about yet another cooking method with programming language.

Published in: Technology

Yet Another Perl Cooking

  1. 1. Yet Another Perl Cooking @moznion
  2. 2. Yet Another Perl Cooking @moznion
  3. 3. @moznion
  4. 4. Yet Another Perl Cooking @moznion
  5. 5. What is the Yet Another Cooking?
  6. 6. Yet Another Cooking -API Based -Via your gadget -Reproducible -And Automatic!
  7. 7. API Based We don’t have to manipulate with old-fashioned controllers (knobs, switches and etc…)
  8. 8. API Based “Cooking API is provided” means we can cooking with our favorite gadgets!
  9. 9. Reproducible No matter who cooks, the same dish will be ready
  10. 10. Automatic The life is short to cook elaborate meal. We should make cooking to be automatic!
  11. 11. Yet Another Cooking = Programmable Cooking
  12. 12. Automatic The life is short to cook elaborate meal. We should make cooking to be automatic! Nomiku has come
  13. 13. What is Nomiku -Low temperature cooking device -Keeps temperature of water -And provides API!
  14. 14. What is Nomiku -Low temperature cooking device -Keeps temperature of water -And provides API!
  15. 15. What is the low temperature Cooking?
  16. 16. Low temperature cooking -Also called “Sous-vide" -Putting a food into water tank which is controlled temperature constant
  17. 17. - Myosin (denatured @ 40℃) - Actin (denatured @ 66℃) For meat
  18. 18. For meat - Meat to be parched if actin gets denatured - But we must kill bacteria - Must keep 60-65℃ - (And collagen will hydrolyzes at about 65 degreed)
  19. 19. For Vegetable - Root vegetables indurate on 60℃ - Avoid to fall apart while boiling by parboiling - ref: http://www.netsubussei.jp/ group/kousai.pdf
  20. 20. Low temperature cooking It is difficult to keep water temperature constantly than I thought…
  21. 21. Low temperature cooking If mistake to keep temperature,
 it is DANGER cause by bacteria!!!!!
  22. 22. Nomiku solves them!!!
  23. 23. Great! But…
  24. 24. Nomiku ga konee!!!
  25. 25. It’s no good worrying. Okay, let’s construct Nomiku compatible device *** by hand ***
  26. 26. Features list - Keeping temperature of water long time - Controlable via web API
  27. 27. Features list - Keeping temperature of water long time - Controlable via web API Simple!
  28. 28. API Spec - Start heating - And stop - Change temperature - Get status
  29. 29. Architecture
  30. 30. Raspberry Pi in the water water temperature gauge heaterrelay controll on/off Monitor temperature power source
  31. 31. water temperature gauge Monitor Daemon (perl) GrowthForecast Post temperature
  32. 32. Control on/offServer (Amon2::Lite) GrowthForecast heater relay power source ConnectedGet current temperature (JSON API / 1min) Access to API
  33. 33. How to keep temperature? - A daemon monitors
 temperature of water
 and store it into GrowthForecast
  34. 34. How to keep temperature? - A server gets current temperature from GrowthForecast - If it is greater than target temperature, turn off relay - Less, turn on relay
  35. 35. Control on/offServer (Amon2::Lite) GrowthForecast heater relay power source ConnectedGet current temperature (JSON API / 1min) Access to API
  36. 36. Start
  37. 37. Heating
  38. 38. Keeping
  39. 39. 4 hours later…
  40. 40. Good and easy!
  41. 41. Yet Another Cooking; ✔ API Based ✔ Reproducible ✔ Automatic
  42. 42. API Based Provides web API on Raspberry Pi. It makes us able to cook with favorite thing! (My favorite is cURL)
  43. 43. Reproducible We only just share a source code which uses web API and run it.
  44. 44. Reproducible
  45. 45. Automatic It keeps temperature without our control.
  46. 46. Application Example
  47. 47. Use with slow cooker Using slow cooker instead heater is nice idea. You can cook almost the same. Ref: - Cooking for Geeks - http://blog.naotaco.com/archives/ 689#more-689
  48. 48. Other electronic devices - Hot Plate - It looks difficult to control… - Convection Oven - Looks good
  49. 49. Can we automate frying?
  50. 50. Can we automate frying? DANGER!!!!!
  51. 51. Future works - Cooperate with… - CI mechanism - crontab
  52. 52. Future works - Safety improvements
  53. 53. Future works - 画像ドーン
  54. 54. DANGER!!!!!
  55. 55. Future works - Generate convection
  56. 56. Conclusion
  57. 57. Conclusion Now gadget is a new cooking tool with using web API
  58. 58. Conclusion Sharing source code = Sharing recipe
  59. 59. Conclusion It is able to automate of cooking by power of device
  60. 60. Conclusion Nowadays such devices are on the market! (e.g. nomiku, anova)
  61. 61. Conclusion And we can make device by hands with a bit DIY splits!!
  62. 62. Conclusion It is fun!!!
  63. 63. Yum!!!!!
  64. 64. References - Cooking for Geeks
 (Jeff Potter) - 調理学
 (畑江敬子, 香西みどり)
  65. 65. References - http://blog.naotaco.com/ - http:// negineesan.hatenablog.co m/

×