Dean151 / Aln-NodeJs

A remplacement for alnpet.com API to make HoneyGuaridan S25 more secure
MIT License
4 stars 1 forks source link

Trying to make it work with a Raspberry #20

Open Gilles-Clemenceau opened 2 years ago

Gilles-Clemenceau commented 2 years ago

Hi, I have the same cat feeder & it's stop to work a few days ago, so I'm trying your way.

// Disable or enable console.logs outputs 'debug_mode': false,

// Url 'base_url': 'http://example.com', // localhost ? The raspberry IP ?

// Local port to set in nginx reverse proxy 'local_port': 3000, // Port that will be called by the feeder (defined by the iptables rule that redirect the feeder calls) 'feeder_port': 9999,

// Mysql settings 'mysql_host': 'localhost', 'mysql_port': 3306, 'mysql_user': 'alnpet', 'mysql_password': 'Password1234!', 'mysql_database': 'alnpet',

// Session settings 'session_name': 'connect.sid', 'session_secret': '', // Where do I need this ?

'hmac_secret': '',

// Feeder emulator settings 'enable_emulator': false, // If we want to emulate a feeder to use with the original API. 'emulator_ip': undefined, // Optional ; To whom should the emulated feeder communicate to 'emulator_port': undefined, // Optional ; To whom should the emulated feeder communicate to 'emulator_identifier': 'XXX012345678', // The identifier that will be used for the emulated feeder. Emulation allow to use the original app with a fake feeder. 'empty_emulator': false, // Set as true if you want to simulate an emulator empty of any foo

// iOS app identifiers // Do I need them ? I'm an android user 'ios_bundle_identifier': '', 'ios_team_identifier': '',

Gilles-Clemenceau commented 2 years ago

Ok, now it seams to work. How can I create a user with AppleId ?

Dean151 commented 2 years ago

Hi Gilles. The project is setted up to use "Sign in with Apple" as it was the simplest for me at the time. Long time I didn't touched the project. But if you install an older version of the package, you might find an implementation without it

Dean151 commented 2 years ago

Latest commit without sign-in with apple was da3fcb3fee6388ff25c529bbd0b814c24292e092 I recommend you start from here for a custom installation. This project is a bit archived for me now, I'd love to take Time to make it better again. But for now I can't.

You might wanna fork the project ; and update dependencies a bit from this commit?

Gilles-Clemenceau commented 2 years ago

Hi, I made it work without the AppleId & it's perfect for me ! Thanks a lot for this, I can use my cat feeder again :-)

Dean151 commented 2 years ago

Nice ! Just in case, I created a branch "legacy-sign-in". It's my old login system with username/password. On this branch, I updated dependencies for reducing the possibilities of security issues.

If you wanna contribute to the repository, feel free about it. I'd love to make sign-in with apple less mandatory in a single branch, so that people might use what they prefer on their installations

natterstefan commented 2 years ago

Hi, I made it work without the AppleId & it's perfect for me ! Thanks a lot for this, I can use my cat feeder again :-)

Hi @Gilles-Clemenceau,

I am experiencing the same issue. Can you please describe the steps you took to make it work? I have trouble creating a user and signing in with it for instance. Not sure what I am missing. 😅

Dean151 commented 2 years ago

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