ddvk / remarkable-hacks

additional functionality via binary patching
MIT License
1.65k stars 82 forks source link

Feature Request: Display local IP adress on the main menu #390

Closed naturale0 closed 2 years ago

naturale0 commented 2 years ago

Wirelessly connecting to rM devices will be much easier if the local IP address is visible on the home screen.

Since the local IP (something like 192.168.xxx.xxx) is changing frequently even connected to the same network, It would be very helpful to have the address displayed somewhere on the main menu.

If displaying the IP to the main menu is difficult, then it might be helpful to be able to see it in the menu bar (toggle between time and local IP).

(Originally posted by @naturale0 in https://github.com/ddvk/remarkable-hacks/issues/387#issuecomment-983324801)

Eeems commented 2 years ago

You could also just assign your tablet a static IP address on your wireless router.

martin-braun commented 2 years ago

@Eeems Not everybody has this setup though. For instance, I use my mobile hotspot with unlimited bandwidth and own no router, my phone is not rooted though.

Eeems commented 2 years ago

Ah, in that case, just use USB and connect over that instead.

martin-braun commented 2 years ago

Ah, in that case, just use USB and connect over that instead.

SSH over USB ... I'd rather get into the deep menu to find my IP over and over again. :)

(It's not always a matter of simply accessing the files)

Eeems commented 2 years ago

I find that the USB interface is much faster and more stable than using WiFi for interacting with the reMarkable.

naturale0 commented 2 years ago

I don't know what seems to be the problem of desiring easier access. @Eeems suggest two solutions: (1) Use a router setup or (2) connect via USB.

(1) is useful if you are usually on a single, configurable network. However, I (and presumably most of the users) move around between at least three different networks, two of which are definitely not configurable: lab network & mobile hotspot (not rooted).

(2) is not a solution. I know I can always get a reliable and fast wired connection. I just find it much more joyful to have cables off of my desk. Especially when streaming the screen while writing, which I do routinely, no cable on the desk means less distraction, more productivity.

Eeems commented 2 years ago

lab network & mobile hotspot (not rooted).

I assume that you also include work networks in lab network.

I don't know what seems to be the problem of desiring easier access.

Nothing is wrong with wanting easier access. It just feels like bloat for this project. The more things you add, the longer it takes to port changes between releases.

(2) is not a solution. I know I can always get a reliable and fast wired connection. I just find it much more joyful to have cables off of my desk. Especially when streaming the screen while writing, which I do routinely, no cable on the desk means less distraction, more productivity.

Just because you don't like the aesthetics of a solution doesn't mean it isn't a solution. It's just not one you like.

A third solution is that you use a launcher and write a simple application that just displays IP addresses so it's quicker to get at. I've written a tutorial in the past for how to write applications with SAS that could be used to accomplish this: https://eeems.website/writing-a-simple-oxide-application/

naturale0 commented 2 years ago

Just because you don't like the aesthetics of a solution doesn't mean it isn't a solution. It's just not one you like.

The whole point of this request is to have a way to make wireless connections more accessible, not heading back to the wired one. Your second suggestion is definitely not about wireless connection at all.

Nothing is wrong with wanting easier access. It just feels like bloat for this project. The more things you add, the longer it takes to port changes between releases.

I do understand such tradeoffs. It is just a small request and a question to a developer and the community who made me love my rM more. I thought It might change how we use the device daily (which is the point of hacks), yet the implementation might not be that hard. Though for the latter I am purely guessing.

I will definitely try the third suggestion if my request is indeed a hard-to-be-accepted one. Thank you for the resource!

Eeems commented 2 years ago

The whole point of this request is to have a way to make wireless connections more accessible, not heading back to the wired one. Your second suggestion is definitely not about wireless connection at all.

A solution that has nothing to do with the original ask, but addresses the root cause is still a solution. I've found that quite often I've been asked for a specific solution by clients because they think it is the right solution for the business need they have. When what they actually need is something completely different, that solves the business need way better than the technical solution they were asking for.

I do understand such tradeoffs. It is just a small request and a question to a developer and the community who made me love my rM more. I thought It might change how we use the device daily (which is the point of hacks), yet the implementation might not be that hard. Though for the latter I am purely guessing.

Who knows, maybe @ddvk will want to implement it. I'd recommend against it for him though, as these hacks are already big enough for porting to new versions.

I will definitely try the third suggestion if my request is indeed a hard-to-be-accepted one. Thank you for the resource!

Feel free to reach out on the community discord or the comments section of the linked article if you need more help.

Some important information you'll want to be aware of:

ddvk commented 2 years ago

tbh, i just use the hostname (remarkable) which my router running dnsmaskq registers

matteodelabre commented 2 years ago

You could also make a basic script that runs in the background, monitors the wlan connection state, and prints the current IP to the screen. In fact, I just wrote such a script! https://gist.github.com/matteodelabre/91f02eee2904c5f0cb75f0847ec045f9 It needs fbink (a package is available in Toltec). It’s a bit crude, but it works.

naturale0 commented 2 years ago

@matteodelabre It does exactly what I need. Such a solution. Thank you for sharing!