Lurker News

Comments (731) 147 threads

Earlier comments
gopikori1 reply#
My internet provider Hathway (in Pune, India) used to throw up a login page every now and then throwing all my networked devices out of gear. The captive portal required doing login via browser to start internet again. I wrote automation scripts on Raspberry Pi to figure out when internet access is gone and then to do auto-login. Here is the detailed blog -

http://gopi-kori.blogspot.com/2013/08/auto-login-to-hathway-...
I have also automated all bathroom lights and lights on basin to switch on based on motion sensing using these cheap switches
https://www.aliexpress.com/item/Home-LED-light-PIR-Infrared-...
This saves energy by solving my problem where I used to forget switching off the lights many times.

msravi#
Not as much fun, but you can request them for a static IP for no extra charge, and the requirement to periodically login will go away. At least, that used to be the case until I moved away from Hathway in Bangalore (about 2 years ago).
gingerlime3 replies#
The most useful thing I have is a little script that logs into my bank, downloads a CSV and sends me the latest transaction via email daily. Saves me time to login to online banking, and also serves as a useful way to search for previous transactions inside my mailbox from time to time.

Besides that I use Home Assistant[0] with a few simple automations. For example, when the lights are on in the bathroom, and it's after dark, increase the heating/towel warmer (using Tado[1]).
Tado has its own home/away detection, plus some schedule for the heaters. It's supposed to save on energy costs.
When we're on holiday, I switch on/off various lights (with some random offset) at night... Or some times I might leave a radio on timer / connected to an IoT power switch. (I don't use any burglar alarms, cameras etc, but I try to deter them with those simple fake occupancy tools)
Philips Hue has a nice way to slowly turn the lights on. Useful to wake up during the dark winter months.
[0] https://www.home-assistant.io/
[1] https://www.tado.com/

mehrdadn2 replies#
> a little script that logs into my bank

I've wanted to do something like this for so long but it just seems so painful. How do you do this with just a little script when there's so much Javascript involved in the page, as well as random interjections like random extra security verification steps? Do you have a particularly scrape-friendly bank?

vbezhenar#
Try to watch network requests in developer console of your browser. Sometimes there's a simple REST interface behind that JavaScript and all you need is to login and issue one request. Extra security verification steps probably won't let you do that, though, if implemented correctly.
uptown1 reply#
You can emulate a user driven browser using a headless instance of Chrome. Look up some “chromedriver” tutorials. Hooks together nicely with Selenium.
mehrdadn#
In theory, yeah. I actually did try Selenium and Chrome several months or maybe a ~year ago. I don't remember exactly what the pain points were but I remember it was really painful to figure out how to get it to work. Everything from figuring out how to inject JS into a page to figuring out how to wait for events, etc. it was just a massive pain. I don't think I ever figured it out entirely.
paublyrne3 replies#
For your banking script, are you able to use an API with a limited access token? Or does it use your normal credentials. I don't save my various banking credentials anywhere, not even 1password, as they're so sensitive, curious how you do this.
gizmo2 replies#
Your banking password isn't that sensitive, because banks are used by regular people who don't have any conception of good security practices. The worst case scenario of your bank login credentials leaking are really not that bad.

Your personal email account is probably a million times more sensitive. It contains enough personal information to get your identity stolen a thousand times over, and once your email has been compromised there is no way to ascertain the damage.

gingerlime#
Couldn't agree more. See my comment above. My online bank only provides readonly access with a password. Anything else requires a one-time-password anyway.

I'd be much more worried about my email getting hacked though.

HumanDrivenDev2 replies#
Your banking password isn't that sensitive, because banks are used by regular people who don't have any conception of good security practices. The worst case scenario of your bank login credentials leaking are really not that bad.

Huh? The worst case scenario of your bank login details is... someone depositing all your money to their account, surely.

Continue this thread — 2 replies

dzek693 replies#
I don't hear often about banks providing API access. Only big companies on special contracts may get something like that, but it is usually very limited - talking from my personal experience, but what I learnt from the internet - it's the same everywhere.

But... In Europe thanks to just another EU laws we should have every bank offering an API access for everyone starting from September 2018 IIRC. That would help a lot with automation, I hope generating few api keys with different access permissions would be possible with that.

IshKebab2 replies#
I'm going to be so amazed if the API (PSD2 if you want to Google it) turns out to be what we want.

I'm fully expecting banks to throw extreme security hurdles and probably registration fees in the way if they can.
Hopefully I will be wrong.

Continue this thread — 2 replies

kyriakos1 reply#
Can you please give some more info about this eu regulation? I'm really interested to see if my bank has an API in place.

Continue this thread — 1 reply

namibj#
There is a system for integrating with larg(er) corporate banking software, but here it seems to require a smartcard, likely with a PIN, and no way to restrict it to be readonly. It's horrible XML protocol stuff though.
gingerlime#
My bank gives only readonly access by default with the username/password. Any transaction (transfer, operation) requires a one-time pin (TAN) anyway. So I'm not particularly worried about leaking my password.

I wish they had an API but I just use a selenium script essentially. Luckily(?) logging in to this particular account only requires user/password and no fancy codes etc. I guess when the system is built with readonly default and OTP for anything else, then the login can be kept simple.

voltagex_#
I really want to like Home Assistant, but at least on Windows there's some gnarly concurrency issues with it the last time I looked: it launches two Python processes and one of them fails every time.

Also, there was no auto-discovery of LIFX lights and I was told I needed to re-implement the LIFX protocol from scratch because no extra dependencies were allowed in the discovery module.

cbanek1 reply#
Two things:

1. Automated indoor gardening. I used a raspberry pi hooked up to x10 devices as a way to monitor the temperature of my garden, and run the watering and light cycles. This meant I only had to worry about my garden maybe an hour a week when changing out the nutrients and reservoirs. This saved a huge amount of time, let me go on vacation for long periods of time without having to worry about things, and saved me from forgetfulness. It allowed for me to enjoy my garden a lot more, and look for real issues, like bugs/pests/nutrient deficiencies. Getting an automated process also made each cycle more reproducible.
https://github.com/cbanek/garden-squid
2. Automated billpay. This changed my life. By not having to worry about missing bills, it really just took them completely off my radar. Downside: If there was a problem with a bill, I might not notice right away, but in general, there was so little that wasn't actually my fault that it didn't matter. Fidelity has a great automated bill pay system that is free to use, and will send out checks and do e-bills for most utility / credit card companies.

ghaff#
I ended up going with a really simple turn a pump in a bucket on for a minute each day which did a lot for plants dying while I was on a 2 week business trip. But I'll check out your project!
schwarz3 replies#
Nice, but why do you turn it off?
adrianN1 reply#
They consume 10-20 Watts.

Continue this thread — 1 reply

paublyrne#
OP may want to feel disconnected during nighttime hours.
mixedbit1 reply#
It enforces no internet before sleep rule. Personally I find it hard to stick to such habits just by my own will. Too often I find some excuse to turn on my laptop just to check one thing, which then turns into one hour wasted browsing random junk.
humbleMouse1 reply#
I feel like this is also a good security precaution aswell, decreases attack surface for over 50% of the day.

Continue this thread — 1 reply

spuz1 reply#
Yes, same here except it turns off at quarter past midnight. I reprogrammed a Sonoff switch so that when it turns the main router off it turns on a wifi hotspot which allows me to turn the switch on again - but only for an extra 15 or 30 minutes. In terms of stopping me wasting time on the internet until late at night while still allowing access if I really need it, it seems to work well:

https://github.com/alexspurling/sonoff

BrandoElFollito#
I use a Sonoff to reboot my internet box if it lost internet access, currently via an external script which sends events to MQTT.

I have a vague plan to extend Espurna to have it built in.

Load more comments