Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/viam-labs/wifi-sensor

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/viam-labs/wifi-sensor

  • v0.0.0-20241004171515-937e015e318e
  • Source
  • Go
  • Socket score

Version published
Created
Source

wifi-sensor

A Viam sensor implementation that reads the system's wifi information. This is an example repo to show how to:

  1. Make a Viam module with Go
  2. Build it in CI and upload to the registry

Running this with local exec

For iterative development, you can run a module locally (laptop or robot) and test it using a local instance of the RDK.

Create the binary with make wifi.

Your config will look something like this (replace /path/to/wifi-sensor with the actual path on your system):

{
  "components": [
    {
      "name": "whatever",
      "model": "viam:sensor:linux-wifi",
      "type": "sensor"
    }
  ],
  "modules": [
    {
      "name": "wifi",
      "executable_path": "/path/to/wifi-sensor/wifi",
      "type": "local"
    }
  ]
}

Our docs for running local modules are here.

What's in this repo

  • .github/workflows: CI and deploy logic
  • Makefile: instructions for building the binary and bundling it into a tarball
  • *.go: the implementation
  • meta.json: module configuration file

Forking this repo

If you fork this and want to deploy to the registry, you'll need to update namespaces and CI secrets. Full fork instructions are in the Python module example.

FAQs

Package last updated on 04 Oct 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc