LowPowerLab Forum

Software support => Pi Gateway => Topic started by: jackkomo on May 14, 2017, 04:43:00 AM

Title: Put all *. js files locally for local web use
Post by: jackkomo on May 14, 2017, 04:43:00 AM
Hello, Felix! I used the Pigateway in home, and it works good. But sometime i faced a problem. When the internet is off,  i can not login the home page of Pigateway. So i checked the code, and found that some *.js files are loaded in 'index.html' from internet. Just like 'flot' js and 'curvedLines'.

Can we put the *. js files  locally for local web use,  like others?  How can i do it?  Thanks! :)

Have a nice day!
Title: Re: Put all *. js files locally for local web use
Post by: Felix on May 15, 2017, 06:18:01 PM
Yes you can. But internet access is almost an assumption.
Maybe a future patch can include a fallback although to me that's not useful.
Title: Re: Put all *. js files locally for local web use
Post by: Jason on November 09, 2018, 10:16:46 PM
Had the same goal. This was my solution.

https://lowpowerlab.com/forum/pi-gateway/how-to-configure-the-pi-gateway-to-run-locally-(with-no-internet-connection)/ (https://lowpowerlab.com/forum/pi-gateway/how-to-configure-the-pi-gateway-to-run-locally-(with-no-internet-connection)/)
Title: Re: Put all *. js files locally for local web use
Post by: Felix on November 12, 2018, 08:07:32 AM
Your contribution is appreciated. I would like others to chime in and offer their feedback on this topic.
Would not be hard to make everything load from the Pi, just wondering if there are any unwanted implications in some use cases.