Skip to content

Need help setting up basic html access #438

@enginician637

Description

@enginician637

Current Situation

Apologies in advance for maybe asking a dumb question.

I use LabVIEW to operate my own home-brew acquisition and control system.
I have Shelly switches and power monitors, and I can use html requests like this to control it via my LAN:
192.168.1.10/rpc/Switch.Set?id=0&on=true

I was hoping to be able to do something similarly simple to operate my SwitchBot, but...
I see a LOT of info about the API, generating a token and a secret key, but all the examples show python or C code or similar, and I'm confused because I don't use any of those.

I have the switchbot hub mini.
I just want to be able to execute a switchbot button press on command.
I'm wondering if there's a simpler way.
Do I really need a token and a secret key?
If so, is there a way to generate those with html, from a browser?
And what's the html syntax to generate a button press?

Thanks!

Logs

N/A

Configuration

N/A

Environment

  • OS:MacOS
  • Software:LabVIEW
  • Node:N/A
  • npm:N/A

Additional Context

No response

Metadata

Metadata

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions