Martin Bogdanov
2c6523a372
Add floor() and ceil() ( #1315 )
...
* add floor() and ceil() functions to simplexpr, akin to round()
* document addition of floor() and ceil()
* remove unnecessary second argument for floor() and ceil()
* Update documentation
---------
Co-authored-by: Martin Bogdanov <github () martinbogdanov.com>
2025-05-11 15:08:43 +02:00
Lorenzo Bodini
593a4f4666
add log
to expressions ( #1271 )
...
* feat: add `log` to expressions
* changelog: add `log`
2025-01-14 20:11:56 +01:00
Wölfchen
6ee166707f
feat: add raw-output
for jq
( #1199 )
...
* feat: add raw-output arg to jq
Co-authored-by: Roman Hargrave <roman@hargrave.info>
* test: add some test cases for jq raw output
* refactor: improve run_jaq_function
* docs: document changes
---------
Co-authored-by: Roman Hargrave <roman@hargrave.info>
2024-12-27 23:49:28 +01:00
ovalkonia
c3b28d8fe5
powi
/powf
simplexpr functions (#1255 )
...
* Add `powi`/`powf` expressions
* Update docs
2024-12-27 00:29:26 +01:00
shobu13
86dc4a4636
Update expression_language.md ( #1231 )
...
add clarification for regex operator
2024-11-20 09:42:05 +01:00
Wölfchen
50ec181fc7
feat: support empty string for safe access operator ( #1176 )
...
* chore: apply pr #629
Co-authored-by: Roland Fredenhagen <dev@modprog.de>
* style: early return
* feat: err on empty json string
* docs: update docs
* test: update test in accordance with decision
* chore: attribution
* docs: improve wording
* docs: add breaking change notice to changelog
* fix(changelog): fix pr link
---------
Co-authored-by: Roland Fredenhagen <dev@modprog.de>
2024-10-12 07:49:50 +02:00
ovalkonia
9a7e699539
Some docs updates ( #1179 )
...
* Export magic constants during server initialization
* `docs`: add `magic constants` descriptions (or at least try)
* `docs`: add `min` and `max` simplexpr functions entries
* `docs`: `expander` should contain single child
* Update docs/src/magic-vars.md
Co-authored-by: Wölfchen <w-lfchen@posteo.net>
* `docs`: fix the heat units typo
* Revert "Export magic constants during server initialization"
This reverts commit 09fbdde6c99a4c4c8af39b76496878f99a28d568.
* Revert "Update docs/src/magic-vars.md"
This reverts commit b3dbfadfb2143cc0d3e2e21c0cf43ed0a96a53cf.
* Revert "`docs`: add `magic constants` descriptions (or at least try)"
This reverts commit f03aebf0dd2fba10c67c608f72570c230d0eb8ea.
---------
Co-authored-by: Wölfchen <w-lfchen@posteo.net>
2024-10-11 13:15:32 +02:00
Jacob
f1ec00a1c9
add get_env function to yuck ( #779 )
...
* added basic get_env function to yuck
* added get_env to changelog
* added get_env to docs
* changed key to string in doc
* changed suggested code
* credit myself in CHANGELOG.md
2024-03-20 12:45:08 +01:00
elkowar
4450ef55fa
Add substring function
2023-08-18 10:46:12 +02:00
end-4
9d0b667dea
Add trigonometric functions ( #823 )
2023-08-16 13:40:24 +02:00
elkowar
b31e397e97
Cleanup EWW_TIME API and code
2023-06-09 17:21:21 +02:00
Eren Önen
4d63f6deec
add EWW_TIME
magic variable ( #792 )
2023-06-09 17:17:41 +02:00
Chan Wei Qi
028f315ba8
docs: fix typo ( #781 )
...
Fixed a typo: withing --> within
2023-06-03 22:38:19 +02:00
Azad
45154bbf59
Add regex match operator (=~
) to documentation ( #702 )
2023-03-08 20:25:50 +01:00
ElKowar
7290b9bb8d
Add jq function ( #695 )
2023-02-25 16:27:32 +01:00
Roland Fredenhagen
6a64a28629
Add support for null safe indexing e.g. for arrays ( #631 )
...
* Add support for null safe indexing e.g. for arrays
This follows the JavaScript syntax:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining#syntax
* add docs
* Add test for safe access index to non indexable
Co-authored-by: Josiah Hilden <jhilden13@gmail.com>
Co-authored-by: Josiah Hilden <jhilden13@gmail.com>
Co-authored-by: ElKowar <5300871+elkowar@users.noreply.github.com>
2023-01-05 20:21:29 +01:00
Josiah Hilden
37fc231761
Safe Access Operator ( #577 )
...
Co-authored-by: elkowar <5300871+elkowar@users.noreply.github.com>
2022-10-01 17:03:54 +02:00
elkowar
776dc787e7
Add matches function to simplexpr
2022-04-19 13:49:28 +02:00
MartinJM
0f9847c518
Add several functions for simple expressions ( #407 )
...
Co-authored-by: elkowar <5300871+elkowar@users.noreply.github.com>
Co-authored-by: MartinJM <>
2022-04-19 13:29:17 +02:00
viandox
3fc24a9c72
Add more operators ( #401 )
2022-02-15 10:12:35 +01:00
Mae Mosich
0fa5c92e04
Documentation proofreading. ( #349 )
2021-11-15 14:31:23 +01:00
elkowar
3d6e9a9ba1
Reformat markdown
2021-08-17 13:07:52 +02:00
elkowar
e750abf38c
Fix eww expression and start page, add includes to configuration page
2021-08-17 13:07:52 +02:00
elkowar
ba092622d2
Move to mdbook
2021-06-22 23:45:54 +02:00