Open natterstefan opened 2 years ago
The API is not the same ; meaning that even if you re-route alnpet routes to your aln-nodejs implementation ; the original app will not work.
Indeed, there are a lot of similar apps that use the same API, with just different branding. I don't exactly know what was the history of the company that brought the feeder to life, but I'm pretty sure they shut down and then a Chinese company produced & sold the prototype.
Regarding the iOS app ; I'm using my own private application ; that is basic and unfinished. The code is for now private and I'm not sure it'll change soon enough for you. But using postman you can send request to your server for setting up your device.
If you really need to, you can use my server : https://alnpet.thomasdurand.fr
Regarding the iOS app ; I'm using my own private application ; that is basic and unfinished. The code is for now private and I'm not sure it'll change soon enough for you. But using postman you can send request to your server for setting up your device.
That'd be very interesting. I hope that one day it will be public. ;) It's too bad that they shut down the old app(s) and make the devices useless. I was so glad to find your repository. Thanks a lot!
But using postman you can send request to your server for setting up your device.
That's what I do at the moment.
If you really need to, you can use my server : alnpet.thomasdurand.fr
Thanks, at the moment I only expose the API in my local network.
PS: do you have any idea how I can reset the old feeding plan on the device? Even if the server is down they still trigger it. The problem is that they seem to be in a different time zone, so I am not sure where I get a list of my old feeding plan (app is down) and how I can reset it on the device. 🤔
Let's provide a bit of informations.
The feeder connect to a websocket. this websocket provide the time (Toronto time) every 10 seconds or so. This is what's keeping the machine up to date. When the socket is down, the time of the machine start drifting (yeah, really)...
My server simulate that.
This socket is also used to trigger some orders to the machine, like changing the planning, or triggering a meal.
If you make the machine connect to your own socket, you can erase your meal program by sending: [157, 161, 45, 196, 00] to it.
Since it's a bit chunky to do that manually, if you make the machine connect to my API, then you can erase the planning with : PUT /api/feeder/{id}/planning And in the body:
{ meals: [] }
For your information, I'm deprecating this repository. I cannot maintain it anymore due to lack of test & testability. Wasn't a pro with nodejs and I'll never be.
A started a pure php reimplementation ; with a strong test suite https://github.com/Dean151/Aln-Symfony
Hi @Dean151,
I'm glad I found your article "How anyone could feed my cat" because it looks like
us1.dev.alnpet.com
is down and they discontinued the for it. Thanks to your second article "Build a privacy-safe home network using Pi-hole" I found this repository.At the moment, I am trying to set it up in my local network. But what I've seen already is that not all API endpoints are available (e.g.
/feeder/getall
, accessed by the Ohana app). Do you still have and use the same cat feeder as in the first article (the one with the Ohana app*)? Or does this setup require no app anymore and doesn't support it?Would you mind creating a tutorial/article with a step-by-step guide on how to use your repo and the device in a local environment?
Btw, thanks a lot!
*: It looks like the app you used with the "honeyguaridan S25" (amazon) is different to the one I bought, but they look similar and used the same API routes.