julisa99 / Lovebox

DIY project to lasercut a lovebox on your own (see https://en.lovebox.love/), which would cost almost $100.
https://lisaih.de/Lovebox/
MIT License
110 stars 45 forks source link

Wemos D1 mini Pro isn't able to retrieve message from Gist file #5

Closed HerbGlrt closed 3 years ago

HerbGlrt commented 3 years ago

Hi! I was trying to replicate this project on my D1 mini Pro and realised that it wasn´t being able to fetch the message from my gist file in any way. I even tested all the componnents to look for any flaw on their connctions, but there is any and the Servo, Display and light sensor are working correctly. I am really lost, because it is indeed connecting to the WiFi (If I use my cellphone's conection as a router, it appears as a connected device) and my Gist url is written as /GitHub-username/Hash-Value/raw, but it still doesn't work. Can somebody help me PLEASE? Thanks :)

Xatonic commented 3 years ago

So I just figured out why mine wasn't doing anything... the wrong board was selected. Now I know you probably aren't as dumb as me but I figured it out because nothing was being written to the serial monitor, open that up and see if everything works. While I'm still stuck in the "Fetching message . . ." phase, at least I know what the problem is! P.S. I'm using the Marcelstoer branch as they added some functionality and debugging things Github: https://github.com/marcelstoer/Lovebox Article: https://frightanic.com/iot/the-lovebox-a-gift-from-a-maker/#comments

julisa99 commented 3 years ago

Hey @HerbGlrt

You mentioned that you wrote the Gist url as /GitHub-username/Hash-Value/raw but afterwards you need also the file name. Please look here for an example: https://github.com/julisa99/Lovebox/issues/7

Merry Christmas! 🎄🎁

julisa99 commented 3 years ago

Hey @Xatonic

I had actually updated the code, so that the Lovebox connects again with the WLAN, if the connection breaks. Of course, it can always take a while until the new message is retrieved, but only a few minutes.

Merry Christmas! 🤶

HerbGlrt commented 3 years ago

Thank you so much guys! It worked, and I guess that it was really a problem with the URL writing, because when the file name was put at the end of it, the message was finally able to appear! I am going to give this project as a gift for my girlfriend this chrtistmas, so you saved my life just in time :):) Thank you!