Running an android app in a docker container
So my local council has a mobile app for their bin collection, eg which weeks are green waste and which are recycling. It also has a messaging portion that they (I assume anyway, it’s only new) would be for things like service disruption or annual services…
So my local council has a mobile app for their bin collection, eg which weeks are green waste and which are recycling. It also has a messaging portion that they (I assume anyway, it’s only new) would be for things like service disruption or annual services etc. It has push notifications for these messages, but I personally dislike almost all app notifications as a general rule. What I was thinking is, could you emulate android in a container, install the app and maybe get the push notifications to discord or a management screen? I tried to find info on if there was a public api or something you could attach to a web app or something but couldn’t come up with much, but I also have no idea what I’m doing so it could be bad web searching. I understand that it could depend on the app, or I would need to route the push notifications through some other services to get it to discord or a management screen, but it kinda sounded like an interesting idea to me so I thought I would ask. EDIT: I am in Australia (I had been awake for about 48hrs when I wrote this, missed this important info)
已收录讨论
Expand the replies to this comment to learn how AI was used in this post/project.
I would have no idea how to even start doing this lol, and they have not actually used the message system so I’m not sure if it would even show anything yet
I did consider that, I only thought of it just before going to bed and didn’t want to forget
I’m not in the UK but that widget looks dope
My council (Ipswich) is listed, that’s wild to me. I’ll take a closer look at the git page, I’m more interested in the messages (the green/recycling cycle is alternating weeks so just a calendar would be enough for that) but it still looks very cool
Yeah that is the best option for the collection days, I’m more interested in the messages they might potentially send, I would rather get an email or discord notification than a push from a random app, even though it will probably be less than once a year so it’s not even particularly useful, just a thought I had
dissect the traffic, i’m sure you’ll find all the information you need from a structured web request
The hacs integration is amazing, I didn't even think there was a thing to solve that so I hacked something together but this is so much better. Thank you for sharing !
Depending on your council and if it’s supported, https://github.com/mampfes/hacs_waste_collection_schedule might have the api handled already. If you’re in the UK, it’s likely your council is using Cloud9’s services for the app. Waste collection schedule has a canned service for councils using that service: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/custom_components/waste_collection_schedule/waste_collection_schedule/service/uk_cloud9_apps.py https://play.google.com/store/apps/details?id=com.cloud9technologies.rugbybc&hl=en cloud9 apps look like this one! You just need to find out what the ‘authority’ string value should be - can get that by sending the app through a proxy. If you want / if this applies to you, I can sniff that out for you - just let me know the council
If you ask your council, they might give you details of the api that the app uses.
I’ve been using https://github.com/robbrad/UKBinCollectionData and it’s been working well. I haven’t tried the other one mentioned on the thread.
There's tools like budtmo/docker-android which run a full android emulator in docker. Or redroid (Remote anDROID) which runs Android as a container process. You could also skip the self-hosting part (I know, I know) and use Appetize.io But those terms/names should get you started.
Just put the dates into your calendar. So much easier. Google calendar will send you notifications, emails and set alarms if you want.