Raspberry Pi Extra Web Files Help Needed
Posted: Wed 29 May 2019 10:08 pm
I know this should be simple but I can't get it to work despite numerous attempts and going over the wiki. I had something similar working with v1 on a Windows box but I am moving everything to CumulusMX on a Raspberry Pi.
At this point I just need one custom template that returns a JSON page (just formatted in JSON with the webtags). It's only being pulled by me on my local network for processing by my custom app (i.e. - it can be served by the Cumulus webserver, it doesn't need to go to another server. That's phase 2.). I've tried numerous versions of the extra web files page and nothing works.
I would like this setup or frankly anything similar that works:
Directory /home/pi/CumulusMX/templates (can be anywhere else, just wanted it in a separate directory)
Input filename: stationdata.tpl (can be anything, any extension)
Output filename: stationdata.json (can be anything)
I assume Process and Realtime should be checked. I'm guessing FTP shouldn't if I am writing the file locally somewhere on the pi for Cumulus to serve.
How would I configure that on the Pi?
If I have to run Apache on the Pi just to serve the page, that's fine. I was just thinking I could hit http://<myip>:8998/stationdata.json.
Also, do the webtags get populated if I don't have a station connected to it yet? I'm still running it on my old box until the Pi is completely configured perfectly.
Any help would be greatly appreciated. Thanks!
At this point I just need one custom template that returns a JSON page (just formatted in JSON with the webtags). It's only being pulled by me on my local network for processing by my custom app (i.e. - it can be served by the Cumulus webserver, it doesn't need to go to another server. That's phase 2.). I've tried numerous versions of the extra web files page and nothing works.
I would like this setup or frankly anything similar that works:
Directory /home/pi/CumulusMX/templates (can be anywhere else, just wanted it in a separate directory)
Input filename: stationdata.tpl (can be anything, any extension)
Output filename: stationdata.json (can be anything)
I assume Process and Realtime should be checked. I'm guessing FTP shouldn't if I am writing the file locally somewhere on the pi for Cumulus to serve.
How would I configure that on the Pi?
If I have to run Apache on the Pi just to serve the page, that's fine. I was just thinking I could hit http://<myip>:8998/stationdata.json.
Also, do the webtags get populated if I don't have a station connected to it yet? I'm still running it on my old box until the Pi is completely configured perfectly.
Any help would be greatly appreciated. Thanks!