farmbot v6.0.0 Farmbot.Repo.Regimen View Source
A Regimen is a schedule to run sequences on.
Link to this section Summary
Functions
Fetch all Elixir.Farmbot.Repo.Regimen’s from the Repo
Syncs all Regimen’s from the Farmbot Web App.
1) Fetches JSON from the API.
2) Parses JSON as a list of Regimen's.
3) For each record in the list, checks if the item exists already,
4) Inserts or Updates each item in the list into the Repo
Link to this section Functions
Fetch all Elixir.Farmbot.Repo.Regimen’s from the Repo.
Syncs all Regimen’s from the Farmbot Web App.
1) Fetches JSON from the API.
2) Parses JSON as a list of Regimen's.
3) For each record in the list, checks if the item exists already,
4) Inserts or Updates each item in the list into the Repo.