Skip to main content

A web connected screen control of Raspberry Pi

Project description

pi_screencontrol_webthing

A web connected screen control of Raspberry Pi

The screen control package exposes a http webthing endpoint which supports activating the screen. E.g.

# webthing has been started on host 192.168.0.23

curl http://192.168.0.23:9122/properties 

{
"activated": true,
"log": "[2022-02-25T14:40:18]  XAUTHORITY=~pi/.Xauthority DISPLAY=:0 xset s 180\n
        [2022-02-25T14:40:18]  XAUTHORITY=~pi/.Xauthority DISPLAY=:0 xset dpms 180 180  180\n
        [2022-02-25T14:40:18]  XAUTHORITY=~pi/.Xauthority DISPLAY=:0 xset s 180\n
        [2022-02-25T14:40:18]  XAUTHORITY=~pi/.Xauthority DISPLAY=:0 xset dpms 180 180  180"
}

To install this software you may use PIP package manager such as shown below

sudo pip install pi_screencontrol_webthing

After this installation you may start the webthing http endpoint inside your python code or via command line using

sudo screen --command listen --port 9832

Here, the webthing API will be bind to the local port 9832

Alternatively to the listen command, you can use the register command to register and start the webthing service as systemd unit. By doing this the webthing service will be started automatically on boot. Starting the server manually using the listen command is no longer necessary.

sudo screen --command register --port 9832

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pi_screencontrol_webthing-0.1.6.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pi_screencontrol_webthing-0.1.6-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file pi_screencontrol_webthing-0.1.6.tar.gz.

File metadata

File hashes

Hashes for pi_screencontrol_webthing-0.1.6.tar.gz
Algorithm Hash digest
SHA256 c040ae33460563dcf41ecdd9d717b1c0b10fdb9528bc9c24bde17a296856813c
MD5 a17038d326ae0deea0cbb7660c0eb6ae
BLAKE2b-256 200107e31123a04b30365c71b2f423d1cdc8cbd06f9b74e55d7d1c9929b133f9

See more details on using hashes here.

File details

Details for the file pi_screencontrol_webthing-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for pi_screencontrol_webthing-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9b43af0bab1af057cb582bd5650ec197e4ba530c4fc098265c93dc58d33a864a
MD5 2d10c6645263554d9bd2d1142339561b
BLAKE2b-256 2a8e02f5431b7fa990e1c22cdd303170d1f3fa3456e2696153cf323f98692812

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page