Open tripflex opened 6 years ago
Please add a little script to get geolocation from mobile browser and store it in "device": { "location": { "lat": 47.0056, "lon": 28.8575 } }
It helps to use @sunrise/@sunset expression in cron library.
<script>
var x = document.getElementById("demo");
function getLocation() {
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(showPosition);
} else {
x.innerHTML = "Geolocation is not supported by this browser.";
}
}
function showPosition(position) {
x.innerHTML = "Latitude: " + position.coords.latitude +
"<br>Longitude: " + position.coords.longitude;
}
</script>
@MydevOnline ahhhhh that's actually not a bad idea at all! I know mamuesp has released a timezone lib for handling timezone data, and we had discussed options for setting lat/long but i think this would be a good option to have as another way of setting these values
That would be incredibly useful, as I want to use the RPC capability but don’t want the html page to load automatically as I want to configure using an iOS app to set WiFi details.
COMPLETED! https://github.com/tripflex/captive-portal-wifi-stack
IS a combination of all of these libs: https://github.com/tripflex/captive-portal https://github.com/tripflex/captive-portal-wifi-setup https://github.com/tripflex/captive-portal-wifi-rpc https://github.com/tripflex/captive-portal-wifi-web
@needlerp you can open an issue on one of the new libraries if still intersetd in the GPS stuff
So after discussion regarding this library (https://forum.mongoose-os.com/discussion/2702/library-wifi-captive-portal-web-ui-list-ssids-test-configure-rpc-gzip-support) I think the best thing to do is to look at separating the functionality into multiple libs.
This will help keep bloat on projects to a minimum, and prevent this lib from being one large monolithic library that users may not need all included functionality for.
TODO