Embed dashboard to webpage?

General support for the Pi-Star System
Post Reply
N7GWA
Posts: 13
Joined: Sat Dec 21, 2019 3:03 pm

Embed dashboard to webpage?

Post by N7GWA »

I would like to make the dashboard available to the public on my website. What's the best and safest way to go about doing this? Can i embed just the dashboard (without login options) into my site on wordpress?
I've searched for this already on here and cant seem to find anything.
W0CHP
Posts: 19
Joined: Mon Oct 12, 2020 2:33 pm

Re: Embed dashboard to webpage?

Post by W0CHP »

There's a json api interface at <your hotspot URI>/api/last_heard.php

If you're adept at PHP, you can open a file_get_contents function to the api, do a json_decode, format it and include it in a page.

The api interface also accepts an argument/query string to specify the number of last heard transmissions returned. e.g.:

/api/last_heard.php?num_transmissions=5
Post Reply