Comments (1)
I feel foolish; a large part of the issue was that the Id:
selector was missing from the TGIF [DMR Network 4]
dmrgateway config stanza. I enabled error reporting in php-fpm to troubleshoot, which pointed me in the proper direction.
Also, the URL on line 61 seems to magically be working today, and I'm wondering if its being replaced with the new API URL. In that event, this snippet worked for me, which parses the new TGIF api json:
$json_data = file_get_contents("http://tgif.network:5040/api/sessions"); $json = json_decode($json_data, false); if ($json->sessions[1]->tg0 == "4000") { $slot1tg = "None"; } else { $slot1tg = "TG".$json->sessions[1]->tg0; } if ($json->sessions[1]->tg == "4000") { $slot2tg = "None"; } else { $slot2tg = "TG".$json->sessions[1]->tg; } $repeaterid = $json->sessions[1]->repeater_id;
Note that there's no stream_context_create()
with a timeout facility in that snippet, so beware! :-)
from pi-star_dv_dash.
Related Issues (20)
- P25 settings server cannot be saved HOT 4
- Add new field NAME on Dashboard.
- Allow missing BeaconInterval parameter in dmr config
- API to make larger and custom screen
- Way to search reflectors by ID number HOT 2
- Accessible mode statuses overview HOT 1
- Configure/YSF startup host HOT 1
- RemoteCommand syntax
- dstar select manual broken
- NanoPi NEO OS compile driver for USB WiFi with Chip RTL8818eus not success
- Reflector list glitch on small screens HOT 1
- "M17 Listening" Persists Beyond Hangtime Until Another Mode is Detected HOT 1
- P25 & NXDN Show Network "Not Linked" When They Are Still Linked
- OLED Display Not Working With MMDVM Firmware v1.6.0
- PR #152 issues HOT 4
- Report security issue - CVE-2022-45182 HOT 2
- YSF Network on dashboard shows "Not Linked" for some reflectors HOT 5
- Can you please add "460800"bps modem_speed to official PI-STAR dashboard?
- Please fix this bug regarding periods in wifi.php code HOT 2
- Hostname display is garbled and overwrites kernel version HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pi-star_dv_dash.