Skip to content

Commit

Permalink
Update Berry.md
Browse files Browse the repository at this point in the history
Adding tasmota.scale_uint function
  • Loading branch information
sfromis authored Nov 30, 2024
1 parent 07ce0a9 commit 7a0b1c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/Berry.md
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,8 @@ tasmota.remove\_driver<a class="cmnd" id="tasmota_remove_driver"></a>|`(instance
tasmota.gc<a class="cmnd" id="tasmota_gc"></a>|`() -> int`<br>Triggers garbage collection of Berry objects and returns the bytes currently allocated. This is for debug only and shouldn't be normally used. `gc` is otherwise automatically triggered when necessary.
tasmota.urlfetch<a class="cmnd" id="tasmota_urlfetch"></a>|`(url:string [, filename:string]) -> bytes:int`<br>Download a url (http or https) and store the content in the filesystem<br>`filename` is optional, needed if you want to change the name of the file from the url suffix. Returns the number of bytes downloaded or -1 if failed.
tasmota.urlbecload<a class="cmnd" id="tasmota_urlbecload"></a>|`(url:string) -> bool`<br>Download `.bec` file from a url and run it, return `true` if sucessful. This allows to run complementary code like Partition Wizard from precompiled Berry.
tasmota.scale\_uint<a class="cmnd" id="tasmota_scale_uint"></a>|`(value:int, fromMin:int, fromMax:int, toMin:int, toMax:int) -> Linear scaling of an integer range, based on two points on the line, typically min and max for "from" and "to" ranges.


#### Functions used to retrieve Tasmota configuration

Expand Down

0 comments on commit 7a0b1c0

Please sign in to comment.