Hi, I’m trying to read the state of a gpio pin in my project to detect a button push using the recommended setup by Resin with pi-pins and their resin-electronjs project but I’m getting an error when the app tries to start in the Pi, it breaks when it gets to this line https://github.com/iGerli/clockOS/blob/dev/sgerli/app/main.js#L76 , I know that because when I remove that code it doesn’t gives me any error. I think that this error is caused by require-rebuild trying to rebuild one of the dependencies of pi-pins. Any idea on how to fix this?
Which one was the original commit (what SHA) that your Github link was pointing to? You’ve added changes to the dev/sgerli branch since you wrote this report, and now I’m not sure whether we are checking the same version you were. Would help checking things out, as I see that there are multiple things that you were experimenting with.
Checking this out. It seems if I connect to the container after the application starts running and try pi-pins in a separate script, they were totally fine…
@curcuz is debugging it further, it seems like there’s some issue upstream that resin-electronjs need to work around of.
@imrehg, @sGerli the issue was identified and fixed, expect the PR to be merged soon. Luckily it was an easy fix since the electron-rebuild maintainer fixed the issues that prevented us to rely on that module instead of require-rebuild. This is a big improvement since now the rebuild process happens on the builder at the push phase.
Though probably the buttons’ code need some logic / debouncing, a single press triggered multiple events, but I’m guessing that’s more on the library and just mentioning it as a side note Looking forward to see what you are making!
Cool project, by the way! I have been tinkering with something similar for a while. (Though it has been a long time since I worked on it – I should pick it back up!) It’s fun to have a clock you can push new code to
That’s awesome! (as a Kickstarter Pebble owner , and small-time (sic) developer:). I was thinking that it would be cool to see where are you headed with the project, what’s the projected form that you’d like to achieve on the long run.
Is there anything that you are looking for help on? Or just suggestions in general? I often see wishlist / help-wanted types of issues working out pretty well, would-be contributors know where to start . Just a thought.