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

Read location coordinates from Loxone #1477

Open
christianTF opened this issue Mar 18, 2024 · 2 comments
Open

Read location coordinates from Loxone #1477

christianTF opened this issue Mar 18, 2024 · 2 comments

Comments

@christianTF
Copy link
Collaborator

christianTF commented Mar 18, 2024

… and save it in general.json

https://www.loxforum.com/forum/projektforen/loxberry/allgemeines-aa/426311-loxberry-core-geographischen-koordinaten?p=427056#post427056

  • Show Field in the Miniserver widget
  • Field is allowed to stay empty
  • Show button to request data
  • No automatic update of location data (user needs to refresh the data himself by pressing the button again)
  • Add data on Perl/PHP GetMiniserver functions
@mschlenstedt
Copy link
Owner

mschlenstedt commented Mar 18, 2024

Hatte schon daran gedacht eine Lib-Funktion zu machen und die Koordinaten nicht noch mit in die general.json zu bringen. Ist ja doch eher eine Spezialanwendung, daher auch nicht zu schlimm wenn der Abruf der Koordinaten länger dauert.

In etwa:

$geocoord = LoxBerry::System::get_geolocation($msnr);

Die Funktion holt die LoxAPP3.json, extrahiert die Location und gibt sie aus.

@nufke
Copy link
Contributor

nufke commented Mar 20, 2024

Note that the Lox2MQTT plugin already publishes the structure file over MQTT ( if enabled in the configuration) so any MQTT based plugin can grab it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants