-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Self-Host Web Viewer #71
Comments
Hey @duncanam, this website is a Solid app, so you could host it based of the SolidJS docs. Although a Docker file would be much easier - I'll add one in the following days. |
Could you try reloading the tab a few times with the generated link? I know it sounds dumb but that did the trick for me 😂 Gonna have to fix this too |
Note for me:
|
I tried both in something chrome-based as well as firefox and releaded the page around 10 times and got the same page as above :/ |
I think this might be due to the selected Nostr relay. I haven't figured out why, but some relays do not seem to be storing the data properly. Could you try using a different relay? |
I am attempting to try this- unfortunately, it now is not pulling location at all for me while a task is running. I used the "test location pulling feature" in the settings menu, and it was successful, so I'm puzzled. I tried with both an existing as well as new task. |
@duncanam Could you try using the relay "relay.damus.io"? I have tested it just now and it definitely works for me. Note that you can trigger a manual location update by long pressing the launcher icon and then tapping on "Update location now". |
Okay, something wonky is up, but could be my misunderstanding of the infra. So, the existing task I selected 5 random relays, and it did not find pull any locations, but the new task pulled a location around 10 minutes in, and that also had a location. Okay, back to the question at hand- I generated a link for that, popped it into 2 different browsers, and I am still getting the webpage in the screenshot above. |
Can do! And good to know. |
Okay I'm facing the issue too now, gotta fix this in the next few hours |
Using this relay, copying the generated link, and pasting into my mobile chrome / firefox browser shows me the same webpage as before. Also notably the "Update location now" spun indefinitely on my phone, but the running task in the background was able to pull a few locations though. Not sure if intended behavior. |
I have pushed the update, could you try it again?
Strange, it shouldn't take long if the background location fetches don't take long either. Could you tell me what OS you are using and whether you have Google Play Services installed? |
Sure, I'll update here once done.
I am using GrapheneOS, and have Google Play Services installed through their sandbox. I have installed Locus through Droid-ify, which pulls from Izzy's builds as far as I know. |
Okay that's exactly the same setup I'm also using. Have you also disabled location rerouting and enabled Location Accuracy? Normally GrapheneOS reroutes location requests to the OS (instead of using Play Services). This is better for privacy, but personally I have disabled it (meaning that location requests are sent to Google) and even allowed Location Accuracy, as I've installed Play Services anyway and FLOSS locations did not work at all for me unfortunately. I think this might be an issue on your side, as the almost exact same setup works on my side |
How can I check these things? I'm seeing a "precise location" setting under each app's location permissions, and searching for the terms you mentioned did not pull anything up on my settings. If possible I'd love to avoid routing location through Google. |
If you want to route your location through Google, you can do so by following these steps:
You should also see a "Google Location Accuracy" setting here.
I understand and it's totally your decision what to do. However, Locus might only work outside then. I know this isn't great and I'm not happy either, but there doesn't seem to be a good FLOSS location fetcher library available for Flutter yet. But if you do not need location access inside buildings, it should even be okay, because from what I have heard about others with a pure FLOSS phone, outside location fetching should work fine. |
Ah! Got it. Yes- quite familiar with having to wait for GPS to find sats overhead inside buildings haha. Can live with that- thanks for explaining to me what is going on here. Also I still owe you a test on your latest release, I'll try that next. |
Well, pasting in the link still brings me to the "file upload" page. I am curious- do you have any examples of what it should look like? I was expecting a map, but maybe my understanding is totally off here |
Yes it should normally show you a map. Could you inspect the website send me the console logs? I'll take a look what's wrong here. |
@Myzel394 Huh, installed your latest update, went to the link in my browser, and looks like it indeed worked! (Scrolled to ocean for privacy here). Is this the intended overall view you were wanting? Also, the browser wanted my location as well, is that to enable showing the end user how close they are to you? |
Ah, just turned the phone sideways, looks like it has a lot more info. I wonder if there's a way to optimize for mobile browsers- for context, the reason I'm so interested in the browser view here is because I have family on iOS and friends that would be considerably simpler to just send a link rather than get the app on their end. |
Exactly! You do not need to allow it if you don't want to see how far you are away.
I currently do not plan to optimize it for mobile to be honest. I was developing the website more as the "desktop variant" for Locus. However:
This indeed would make things much simpler. I will probably not optimize the website in the near future, because I want to focus on making the app more useful and more reliable, but I'll think again about optimizing the website! Also, if you're interested, one person wrote me in an email that they managed to load the app onto iOS using AltStore. I haven't tried it out myself, but if you're interested, I can upload the |
I think your targets focusing near-term on Locus itself instead of Locus web are totally reasonable- if you plan to eventually push this to the iOS app store that may also make this much easier. That said, displaying only the map when the browser detects a mobile browser I think is sufficient- the other information is neat, but min viable product could just be the map and dot. |
@duncanam just so that you know, I have deleted your screenshot to avoid any location leaks.
May I ask what browser you used? The map shouldn't work at all on mobile actually currently :O |
Thanks for looking out for me :)
I used Vanadium, GrapheneOS's native browser, with mobile webpage view option checked as normal.
…-------- Original Message --------
On Jul 5, 2023, 9:40 AM, Myzel394 wrote:
***@***.***(https://github.com/duncanam) just so that you know, I have deleted your screenshot to avoid any location leaks.
> That said, displaying only the map when the browser detects a mobile browser I think is sufficient- the other information is neat, but min viable product could just be the map and dot.
May I ask what browser you used? The map shouldn't work at all on mobile actually currently :O
—
Reply to this email directly, [view it on GitHub](#71 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AFNZ22FPLBOFE23CBO7KSADXOWKHXANCNFSM6AAAAAAZUI3QOM).
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
I would like to add another use-case, that is personally important for me - sharing my location just on a single occasion, to people who I don't normally share location with. It could be I'm meeting a friend in the city, and I want them to find me, or to show them how close I am to the agreed meeting point. It would be an overkill to ask them to install an app, just for this one occasion, but a link would be just perfect! An app would confine me to using this awesome tool only with people who I often share my location with, but a useful mobile link (agree with @duncanam, just a map, a dot, and perhaps a button to open the latest dot in a navigation app) is more than enough as a starting point. And who knows, maybe some of my friends will end up installing the app and using it with their friends and family, after using the link! |
Is your feature request related to a problem? Please describe.
No, although a functional web viewer for those without the app would be slick.
Describe the solution you'd like
The ability to self host this web viewer- perhaps a docker file that we can build that gets the server and configs set up.
Describe alternatives you've considered
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: