SwiftGarden Wrap up – After implementing SwiftGarden

Wrap up – After implementing SwiftGarden

This article is based on the session presented at iOSDC2023, Growing apples with Swift This is an article that summarizes the contents of the presentation.

This is a continuation of the article “4. Checking data in the iOS app – Implementing Swift Charts”. If you haven’t read it yet, please read it!

SwiftGarden 4.Check data in iOS app - Swift Charts implementationこの記事は、「Swiftでりんごを育ててみた」の4部「iOSアプリでデータを確認する - Swift Chartsの実装」の内容をまとめた記事になります!...

In this presentation, we used Swift&RaspberryPi to automate and save labor for home gardening tasks

  1. You can develop Raspberry Pi with Swift that you usually write
  2. There is a difference in Swift behavior between Raspberry Pi (Linux) and MacOS
  3. Hardware implementation requires experience and knowledge different from usual iOS development
    • I feel that the environment for normal iOS development is quite blessed
  4. Like last year, it’s fun to improve everyday issues with ideas and implementations
    • Hardware implementation + iOS application integration seems to be effective in various applications
  5. Growing vegetables is very difficult, I want to eat them more carefully than ever before

As I felt in last year’s announcement, hardware implementation requires different points and knowledge than usual application development, and while it has depth, I thought it needed experience
Bluetooth and so on. It seems that the width will spread more if you can use it!

I feel like I’m trying to grow vegetables myself, but it’s hard to grow vegetables as beautifully as they are sold at the supermarket, and I’m grateful that I can always buy them at the supermarket.
I thought I should eat more carefully

This time it was an alpha version development, so when I implemented it, there were various things I wanted to improve and additional things I wanted to implement

  1. Automatic execution with soil/temperature sensor data
    • I would like to be able to set conditions such as “when the moisture content of the soil falls below XX” and “when the temperature and humidity meet the conditions of XX”, and then use those conditions as triggers to execute.
  2. Customize the water supply tube (ensure uniform water supply)
  3. Resizing the photo size (currently several hundred KB to 1MB)
    • Since the image size is large now, it takes time to download, and the CloudStorage fee is also expensive
  4. How to take pictures at night (using an infrared camera, etc.)
    • When I first implemented it, it was pitch black at night, so even if I took a picture, I couldn’t see anything.
  5. Make it available outdoors
    • Additional measures such as ensuring power supply, waterproofing, dustproofing, insectproofing, heatproofing, and security are required
  6. Allow settings such as schedules from the app
    • It seems difficult to reflect the settings in real time, so if you implement things like getting the Firestore setting information from the Raspberry Pi side at the specified time, you can implement it at a low cost
    • Or maybe it would be possible to implement a mechanism to monitor changes on the Firestore side, which can be implemented as standard with the iOS SDK…?

In the future, when I move to a bigger house and become more immersed in it, I would like to evolve the beta version/production operation and implementation

By the way, about the pineapple I bought this time, it will take 2-3 years for it to be ready to be seen in supermarkets, so please wait until iOSDC2026 for the results~


  1. Raspberry Pi Documentation – Camera software
    • https://www.raspberrypi.com/documentation/computers/camera_software.html
  2. Overview of Google Cloud Storage JSON API
    • https://cloud.google.com/storage/docs/json_api
  3. Using the Cloud Firestore REST API
    • https://firebase.google.com/docs/firestore/use-rest-api
  4. ラズパイ – 水中ポンプを制御しよう
    • https://zenn.dev/kotaproj/articles/4903ba3b416269
  5. Creating a chart using Swift Charts
    • https://developer.apple.com/documentation/charts/creating-a-chart-using-swift-charts
  6. SwitchBot API v1.1
    • https://github.com/OpenWonderLabs/SwitchBotAPI


Your email address will not be published. Required fields are marked *