Skip to content

Commit

Permalink
Directives to upload an image
Browse files Browse the repository at this point in the history
  • Loading branch information
wberube committed Apr 9, 2024
1 parent a00e406 commit ddc3c1b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,19 @@ Showing the time and customizing the time format is done this way:
curl 192.168.1.17:9000/api/time?fmt=%25Y/%25m/%25d%20%25H:%25M:%25S
curl 192.168.1.17:9000/api/osd/2?text=$t&posy=120
```
N.B. Percent signs have to be escaped with %25 in curl URL syntaxes

UTC date and time can be set using Unix timestamps:
```
curl 192.168.1.17:9000/api/time?ts=1712320920
```

Bitmap files (.bmp) can be uploaded to a region using this command:
```
curl -F data=@.\Desktop\myimage.bmp 192.168.1.17:9000/api/osd/3
```
N.B. curl already implies "-X POST" when passing a file with "-F"

### Technical support and donations

Please **_[support our project](https://openipc.org/support-open-source)_** with donations or orders for development or maintenance. Thank you!
Expand Down

0 comments on commit ddc3c1b

Please sign in to comment.