
Security News
Astral Launches pyx: A Python-Native Package Registry
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Adapter gem for Farmbot Web App API. Currently used in Raspberry Pi controller to support scheduling operations.
Need more than what's available? Raise an issue and we can add your resource to the list (PRs are also welcome).
First, you will need an API token.
token = FbResource::Client.get_token(email: 't@g.com',
password: 'shhh...',
# OPTIONAL: Defaults to "my.farmbot.io"
# if not specified.
url: "http://localhost:3000")
# Returns really long JSON Web Token...
# => 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9....'
Once you have an API token, you can create a 'client'.
client = FbResource::Client.new do |config|
config.token = token
end
Client objects can access API resources such as schedules and sequences.
# Simple use case: get all schedules
# Returns array of hashes
schedules = client.schedules.all
# Another use case: cache busting with fetch()
# Results are always cached until fetch() is called
sequences = client.sequences.fetch.all
The Farmbot web app issues an RSA public key. If you need to sign stuff, the key is accessible via client.public_key
See example.rb for a runnable sample.
FAQs
Unknown package
We found that farmbot-resource demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.