Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SysVars] Add conversions to get remote-unit info #5039

Conversation

tonhuisman
Copy link
Contributor

@tonhuisman tonhuisman commented Apr 21, 2024

From a forum request

Features:

  • Add conversions to retrieve information about a remote unit, available/visible via ESPEasy P2P:
    • %c_uname%(<unit>) Get the name of the remote unit, empty if not available.
    • %c_uage%(<unit>) Get the age of the remote unit, -1 if not available, 0 or positive value is 'last-seen' in seconds.
    • %c_ubuild%(<unit>) Get the buildnumber of the remote unit. 0 if not available.
    • %c_ubuildstr%(<unit>) Get the build of the remote unit.
      When newer than build 20200, it is formatted like a date: 20240421, as displayed on the Node List of the ESPEasy main page, older builds are in the range 20000..20199 (theoretically).
    • %c_uload%(<unit>) Get the CPU load of the remote unit.
    • %c_utype%(<unit>) Get the numeric ESP/etc type. (see docs for list)
    • %c_utypestr%(<unit>) Get the ESP/etc Type name as shown on the Main tab.
  • Updated documentation

TODO:

  • Confirmation by requester (confirmed)
  • Update EasyColorCode with new variables (and some corrections)

@TD-er TD-er merged commit 0b38ed1 into letscontrolit:mega May 1, 2024
0 of 2 checks passed
@tonhuisman tonhuisman deleted the feature/Sysvars-add-remote-unit-conversions branch May 1, 2024 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants