Skip to content

how this will work #2

@drewbharris

Description

@drewbharris

there will be a web server on the Pi with a RESTful API that it hit by the web application (the single page JS desktop browser application or the mobile application). on boot up, the web server will attempt to open a websocket client connection to the cloud server - the handshake process will include the UID of the client. then, calls made to the cloud API will be forwarded through the websocket connection to the client (the rpi).

local API:
/api/v1/:plug/:state

remote API:
/api/v1/:clientid/:plug/:state

if there's no active websocket connection, it means that the client (the rpi) is not internet connected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions